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

Unified Diff: chrome/browser/ui/webui/options/password_manager_handler.cc

Issue 1720403003: Ship the Credential Management API by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test. Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/password_manager_handler.cc
diff --git a/chrome/browser/ui/webui/options/password_manager_handler.cc b/chrome/browser/ui/webui/options/password_manager_handler.cc
index efba08513cb04bb8b5019a3225ac0b82de6731d2..77256a75a4b64261adbeb47a2992a9b10e036f54 100644
--- a/chrome/browser/ui/webui/options/password_manager_handler.cc
+++ b/chrome/browser/ui/webui/options/password_manager_handler.cc
@@ -5,7 +5,7 @@
#include "chrome/browser/ui/webui/options/password_manager_handler.h"
#include "base/bind.h"
-#include "base/command_line.h"
+#include "base/feature_list.h"
#include "base/macros.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
@@ -32,7 +32,7 @@
#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
-#include "content/public/common/content_switches.h"
+#include "content/public/common/content_features.h"
#include "content/public/common/origin_util.h"
#include "ui/base/l10n/l10n_util.h"
@@ -149,8 +149,7 @@ void PasswordManagerHandler::GetLocalizedValues(
localized_strings->SetBoolean("disableShowPasswords", disable_show_passwords);
localized_strings->SetBoolean(
"enableCredentialManagerAPI",
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableCredentialManagerAPI));
+ base::FeatureList::IsEnabled(features::kCredentialManagementAPI));
}
void PasswordManagerHandler::RegisterMessages() {

Powered by Google App Engine
This is Rietveld 408576698