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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_ui_controller.h

Issue 399573002: [Password Generation] Trigger confirmation bubble when a password is saved (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/ui/passwords/manage_passwords_ui_controller.h
diff --git a/chrome/browser/ui/passwords/manage_passwords_ui_controller.h b/chrome/browser/ui/passwords/manage_passwords_ui_controller.h
index 309fc74c257f6ffe6fd5c131ca6631e531716639..8ab7a6804c77c2dfdab88db04c280ec287026972 100644
--- a/chrome/browser/ui/passwords/manage_passwords_ui_controller.h
+++ b/chrome/browser/ui/passwords/manage_passwords_ui_controller.h
@@ -37,6 +37,12 @@ class ManagePasswordsUIController
// prompt the user about whether they would like to save the password.
void OnPasswordSubmitted(password_manager::PasswordFormManager* form_manager);
+ // Called when the password will be saved automatically, but we still wish to
+ // visually inform the user that the save has occured. Currently shows the
+ // manage password UI.
+ void ShowSaveConfirmation(
Garrett Casto 2014/07/16 06:29:00 I don't like the fact that this name is prescripti
Mike West 2014/07/16 07:55:03 "OnAutomaticPasswordSave"? Best I can come up with
Garrett Casto 2014/07/17 06:42:45 It'll do. Changed.
+ scoped_ptr<password_manager::PasswordFormManager> form_manager);
+
// Called when a form is autofilled with login information, so we can manage
// password credentials for the current site which are stored in
// |password_form_map|. This stores a copy of |password_form_map| and shows
@@ -103,10 +109,10 @@ class ManagePasswordsUIController
const content::LoadCommittedDetails& details,
const content::FrameNavigateParams& params) OVERRIDE;
- // All previously stored credentials for a specific site. Set by
- // OnPasswordSubmitted(), OnPasswordAutofilled(), or
- // OnBlacklistBlockedAutofill(). Protected, not private, so we can mess with
- // the value in ManagePasswordsUIControllerMock.
+ // All previously stored credentials for a specific site. This is not
+ // physically const, but the contents of the maps should be treated as const.
Mike West 2014/07/16 07:55:03 Would it be worth creating an `autofill::ConstPass
Garrett Casto 2014/07/17 06:42:45 I thought about that, but was wasn't sure how vira
+ // Protected, not private, so we can mess with the value in
+ // ManagePasswordsUIControllerMock.
autofill::PasswordFormMap password_form_map_;
// We create copies of PasswordForm objects that come in via OnLoginsChanged()

Powered by Google App Engine
This is Rietveld 408576698