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

Unified Diff: ios/chrome/browser/passwords/ios_chrome_password_manager_client.mm

Issue 2106353003: Enable Update Password UI on iOS behind a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_controller
Patch Set: Remove heuristics changes Created 4 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: ios/chrome/browser/passwords/ios_chrome_password_manager_client.mm
diff --git a/ios/chrome/browser/passwords/ios_chrome_password_manager_client.mm b/ios/chrome/browser/passwords/ios_chrome_password_manager_client.mm
index f24d098b23fa96cebb9cc813118274b4803b46b4..57af08940c5f031f85839c4f2aa442da6f13577f 100644
--- a/ios/chrome/browser/passwords/ios_chrome_password_manager_client.mm
+++ b/ios/chrome/browser/passwords/ios_chrome_password_manager_client.mm
@@ -74,7 +74,14 @@ bool IOSChromePasswordManagerClient::PromptUserToSaveOrUpdatePassword(
bool update_password) {
if (form_to_save->IsBlacklisted())
return false;
- [delegate_ showSavePasswordInfoBar:std::move(form_to_save)];
+
+ if (ios_internal::experimental_flags::IsUpdatePasswordUIEnabled() &&
sdefresne 2016/07/05 13:29:55 I think this should be "experimental_flags::IsUpda
Jackie Quinn 2016/07/05 13:52:34 Yes, thanks. Done.
+ update_password) {
+ [delegate_ showUpdatePasswordInfoBar:std::move(form_to_save)];
+ } else {
+ [delegate_ showSavePasswordInfoBar:std::move(form_to_save)];
+ }
+
return true;
}

Powered by Google App Engine
This is Rietveld 408576698