Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Side by Side Diff: content/child/runtime_features.cc

Issue 2283013002: Adding chrome flag to disable implicit capture (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/child/runtime_features.h" 5 #include "content/child/runtime_features.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator)) 235 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator))
236 WebRuntimeFeatures::enableDocumentWriteEvaluator(true); 236 WebRuntimeFeatures::enableDocumentWriteEvaluator(true);
237 237
238 WebRuntimeFeatures::enableMediaDocumentDownloadButton( 238 WebRuntimeFeatures::enableMediaDocumentDownloadButton(
239 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton)); 239 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton));
240 240
241 if (base::FeatureList::IsEnabled(features::kPointerEvents)) 241 if (base::FeatureList::IsEnabled(features::kPointerEvents))
242 WebRuntimeFeatures::enablePointerEvent(true); 242 WebRuntimeFeatures::enablePointerEvent(true);
243 243
244 if (base::FeatureList::IsEnabled(features::kPointerEventsNoImplicitCapture))
245 WebRuntimeFeatures::enablePointerEventNoImplicitCapture(true);
246
244 if (base::FeatureList::IsEnabled(features::kPassiveDocumentEventListeners)) 247 if (base::FeatureList::IsEnabled(features::kPassiveDocumentEventListeners))
245 WebRuntimeFeatures::enablePassiveDocumentEventListeners(true); 248 WebRuntimeFeatures::enablePassiveDocumentEventListeners(true);
246 249
247 if (base::FeatureList::IsEnabled(features::kPassiveEventListenersDueToFling)) 250 if (base::FeatureList::IsEnabled(features::kPassiveEventListenersDueToFling))
248 WebRuntimeFeatures::enablePassiveEventListenersDueToFling(true); 251 WebRuntimeFeatures::enablePassiveEventListenersDueToFling(true);
249 252
250 WebRuntimeFeatures::enableFeatureFromString( 253 WebRuntimeFeatures::enableFeatureFromString(
251 "FontCacheScaling", 254 "FontCacheScaling",
252 base::FeatureList::IsEnabled(features::kFontCacheScaling)); 255 base::FeatureList::IsEnabled(features::kFontCacheScaling));
253 256
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 290 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
288 std::vector<std::string> disabled_features = base::SplitString( 291 std::vector<std::string> disabled_features = base::SplitString(
289 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 292 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
290 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 293 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
291 for (const std::string& feature : disabled_features) 294 for (const std::string& feature : disabled_features)
292 WebRuntimeFeatures::enableFeatureFromString(feature, false); 295 WebRuntimeFeatures::enableFeatureFromString(feature, false);
293 } 296 }
294 } 297 }
295 298
296 } // namespace content 299 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698