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

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

Issue 2788823002: Add the Mojo implementation of authenticator.mojom's MakeCredential. (Closed)
Patch Set: Removed dispose method Created 3 years, 8 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 } 368 }
369 369
370 if (base::FeatureList::IsEnabled(features::kLoadingWithMojo)) 370 if (base::FeatureList::IsEnabled(features::kLoadingWithMojo))
371 WebRuntimeFeatures::EnableLoadingWithMojo(true); 371 WebRuntimeFeatures::EnableLoadingWithMojo(true);
372 372
373 if (!base::FeatureList::IsEnabled(features::kBlockCredentialedSubresources)) { 373 if (!base::FeatureList::IsEnabled(features::kBlockCredentialedSubresources)) {
374 WebRuntimeFeatures::EnableFeatureFromString("BlockCredentialedSubresources", 374 WebRuntimeFeatures::EnableFeatureFromString("BlockCredentialedSubresources",
375 false); 375 false);
376 } 376 }
377 377
378 if (!base::FeatureList::IsEnabled(features::kWebAuth))
379 WebRuntimeFeatures::EnableWebAuth(false);
380
378 // Enable explicitly enabled features, and then disable explicitly disabled 381 // Enable explicitly enabled features, and then disable explicitly disabled
379 // ones. 382 // ones.
380 if (command_line.HasSwitch(switches::kEnableBlinkFeatures)) { 383 if (command_line.HasSwitch(switches::kEnableBlinkFeatures)) {
381 std::vector<std::string> enabled_features = base::SplitString( 384 std::vector<std::string> enabled_features = base::SplitString(
382 command_line.GetSwitchValueASCII(switches::kEnableBlinkFeatures), 385 command_line.GetSwitchValueASCII(switches::kEnableBlinkFeatures),
383 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 386 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
384 for (const std::string& feature : enabled_features) 387 for (const std::string& feature : enabled_features)
385 WebRuntimeFeatures::EnableFeatureFromString(feature, true); 388 WebRuntimeFeatures::EnableFeatureFromString(feature, true);
386 } 389 }
387 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 390 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
388 std::vector<std::string> disabled_features = base::SplitString( 391 std::vector<std::string> disabled_features = base::SplitString(
389 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 392 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
390 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 393 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
391 for (const std::string& feature : disabled_features) 394 for (const std::string& feature : disabled_features)
392 WebRuntimeFeatures::EnableFeatureFromString(feature, false); 395 WebRuntimeFeatures::EnableFeatureFromString(feature, false);
393 } 396 }
394 } 397 }
395 398
396 } // namespace content 399 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698