Add a kWebMeasureMemoryViaPerformanceManager feature flag

The flag guards the new implementation of performance.measureMemory
that queries PerformanceManager in the browser process.

Bug: 1085129
Change-Id: Ic38e5593637bdb894d0780ee5aa463d2844c4bbe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2428241
Reviewed-by: Kentaro Hara <[email protected]>
Commit-Queue: Ulan Degenbaev <[email protected]>
Cr-Commit-Position: refs/heads/master@{#810600}
diff --git a/third_party/blink/common/features.cc b/third_party/blink/common/features.cc
index d3d78d3a..06f534e6 100644
--- a/third_party/blink/common/features.cc
+++ b/third_party/blink/common/features.cc
@@ -59,9 +59,6 @@
 const base::Feature kFtpProtocol{"FtpProtocol",
                                  base::FEATURE_ENABLED_BY_DEFAULT};
 
-const base::Feature kMeasureMemoryExperiment{"MeasureMemoryExperiment",
-                                             base::FEATURE_DISABLED_BY_DEFAULT};
-
 // Enable Display Locking JavaScript APIs.
 const base::Feature kDisplayLocking{"DisplayLocking",
                                     base::FEATURE_DISABLED_BY_DEFAULT};
@@ -201,6 +198,11 @@
 const base::Feature kV8OptimizeWorkersForPerformance{
     "V8OptimizeWorkersForPerformance", base::FEATURE_ENABLED_BY_DEFAULT};
 
+// Controls whether the implementation of the performance.measureMemory
+// web API uses PerformanceManager or not.
+const base::Feature kWebMeasureMemoryViaPerformanceManager{
+    "WebMeasureMemoryViaPerformanceManager", base::FEATURE_DISABLED_BY_DEFAULT};
+
 // Enables negotiation of experimental multiplex codec in SDP.
 const base::Feature kWebRtcMultiplexCodec{"WebRTC-MultiplexCodec",
                                           base::FEATURE_DISABLED_BY_DEFAULT};