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

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

Issue 1870943002: Revert "Ship the Credential Management API by default" from M50. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 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 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 374e6e58cbb0ef2d542f7ce6e16df26bc80b1d5d..574b981bb4ed2a29a3fd6293bfa3e1d622570ad2 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/feature_list.h"
+#include "base/command_line.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_features.h"
+#include "content/public/common/content_switches.h"
#include "content/public/common/origin_util.h"
#include "ui/base/l10n/l10n_util.h"
@@ -149,7 +149,8 @@ void PasswordManagerHandler::GetLocalizedValues(
localized_strings->SetBoolean("disableShowPasswords", disable_show_passwords);
localized_strings->SetBoolean(
"enableCredentialManagerAPI",
- base::FeatureList::IsEnabled(features::kCredentialManagementAPI));
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableCredentialManagerAPI));
}
void PasswordManagerHandler::RegisterMessages() {

Powered by Google App Engine
This is Rietveld 408576698