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

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

Issue 2788823002: Add the Mojo implementation of authenticator.mojom's MakeCredential. (Closed)
Patch Set: Export authenticator_impl Created 3 years, 5 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 WebRuntimeFeatures::EnableFeatureFromString("IdleTimeSpellChecking", true); 384 WebRuntimeFeatures::EnableFeatureFromString("IdleTimeSpellChecking", true);
385 385
386 if (media::GetEffectiveAutoplayPolicy(command_line) != 386 if (media::GetEffectiveAutoplayPolicy(command_line) !=
387 switches::autoplay::kNoUserGestureRequiredPolicy) { 387 switches::autoplay::kNoUserGestureRequiredPolicy) {
388 WebRuntimeFeatures::EnableAutoplayMutedVideos(true); 388 WebRuntimeFeatures::EnableAutoplayMutedVideos(true);
389 } 389 }
390 390
391 WebRuntimeFeatures::EnableLocationHardReload( 391 WebRuntimeFeatures::EnableLocationHardReload(
392 base::FeatureList::IsEnabled(features::kLocationHardReload)); 392 base::FeatureList::IsEnabled(features::kLocationHardReload));
393 393
394 if (!base::FeatureList::IsEnabled(features::kWebAuth) &&
395 !enableExperimentalWebPlatformFeatures)
396 WebRuntimeFeatures::EnableWebAuth(false);
397
394 // Enable explicitly enabled features, and then disable explicitly disabled 398 // Enable explicitly enabled features, and then disable explicitly disabled
395 // ones. 399 // ones.
396 if (command_line.HasSwitch(switches::kEnableBlinkFeatures)) { 400 if (command_line.HasSwitch(switches::kEnableBlinkFeatures)) {
397 std::vector<std::string> enabled_features = base::SplitString( 401 std::vector<std::string> enabled_features = base::SplitString(
398 command_line.GetSwitchValueASCII(switches::kEnableBlinkFeatures), 402 command_line.GetSwitchValueASCII(switches::kEnableBlinkFeatures),
399 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 403 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
400 for (const std::string& feature : enabled_features) 404 for (const std::string& feature : enabled_features)
401 WebRuntimeFeatures::EnableFeatureFromString(feature, true); 405 WebRuntimeFeatures::EnableFeatureFromString(feature, true);
402 } 406 }
403 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 407 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
404 std::vector<std::string> disabled_features = base::SplitString( 408 std::vector<std::string> disabled_features = base::SplitString(
405 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 409 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
406 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 410 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
407 for (const std::string& feature : disabled_features) 411 for (const std::string& feature : disabled_features)
408 WebRuntimeFeatures::EnableFeatureFromString(feature, false); 412 WebRuntimeFeatures::EnableFeatureFromString(feature, false);
409 } 413 }
410 } 414 }
411 415
412 } // namespace content 416 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/webauth/authenticator_impl_unittest.cc ('k') | content/public/app/mojo/content_browser_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698