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

Unified Diff: chrome/browser/password_manager/chrome_password_manager_client.cc

Issue 1151373006: Update Confirmation UI for saved password change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit test compilation error, updated comments Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/password_manager/chrome_password_manager_client.cc
diff --git a/chrome/browser/password_manager/chrome_password_manager_client.cc b/chrome/browser/password_manager/chrome_password_manager_client.cc
index 01cd5b4d3b9e0313ef930763249ff34c67663b79..7abac5301365238f16a0fd367e0ade63e74d5b07 100644
--- a/chrome/browser/password_manager/chrome_password_manager_client.cc
+++ b/chrome/browser/password_manager/chrome_password_manager_client.cc
@@ -539,6 +539,16 @@ bool ChromePasswordManagerClient::IsTheHotNewBubbleUIEnabled() {
return group_name != "Infobar";
}
+bool ChromePasswordManagerClient::IsUpdatePasswordUIEnabled() const {
+ if (!ChromePasswordManagerClient::IsTheHotNewBubbleUIEnabled()) {
+ // Currently Password update UI is implemented only for Bubble UI.
+ return false;
+ }
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+ return command_line->HasSwitch(
+ password_manager::switches::kEnablePasswordChangeSupport);
+}
+
bool ChromePasswordManagerClient::EnabledForSyncSignin() {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(

Powered by Google App Engine
This is Rietveld 408576698