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

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

Issue 2720073003: Wire up Finch experiment to MojoLoading flag (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | content/public/common/content_features.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 358
359 if (base::FeatureList::IsEnabled(features::kFasterLocationReload)) 359 if (base::FeatureList::IsEnabled(features::kFasterLocationReload))
360 WebRuntimeFeatures::enableFasterLocationReload(true); 360 WebRuntimeFeatures::enableFasterLocationReload(true);
361 361
362 // Enable features which VrShell depends on. 362 // Enable features which VrShell depends on.
363 if (base::FeatureList::IsEnabled(features::kVrShell)) { 363 if (base::FeatureList::IsEnabled(features::kVrShell)) {
364 WebRuntimeFeatures::enableGamepadExtensions(true); 364 WebRuntimeFeatures::enableGamepadExtensions(true);
365 WebRuntimeFeatures::enableWebVR(true); 365 WebRuntimeFeatures::enableWebVR(true);
366 } 366 }
367 367
368 if (base::FeatureList::IsEnabled(features::kLoadingWithMojo))
369 WebRuntimeFeatures::enableLoadingWithMojo(true);
370
368 // Enable explicitly enabled features, and then disable explicitly disabled 371 // Enable explicitly enabled features, and then disable explicitly disabled
369 // ones. 372 // ones.
370 if (command_line.HasSwitch(switches::kEnableBlinkFeatures)) { 373 if (command_line.HasSwitch(switches::kEnableBlinkFeatures)) {
371 std::vector<std::string> enabled_features = base::SplitString( 374 std::vector<std::string> enabled_features = base::SplitString(
372 command_line.GetSwitchValueASCII(switches::kEnableBlinkFeatures), 375 command_line.GetSwitchValueASCII(switches::kEnableBlinkFeatures),
373 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 376 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
374 for (const std::string& feature : enabled_features) 377 for (const std::string& feature : enabled_features)
375 WebRuntimeFeatures::enableFeatureFromString(feature, true); 378 WebRuntimeFeatures::enableFeatureFromString(feature, true);
376 } 379 }
377 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 380 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
378 std::vector<std::string> disabled_features = base::SplitString( 381 std::vector<std::string> disabled_features = base::SplitString(
379 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 382 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
380 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 383 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
381 for (const std::string& feature : disabled_features) 384 for (const std::string& feature : disabled_features)
382 WebRuntimeFeatures::enableFeatureFromString(feature, false); 385 WebRuntimeFeatures::enableFeatureFromString(feature, false);
383 } 386 }
384 } 387 }
385 388
386 } // namespace content 389 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698