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

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

Issue 259153004: Password bubble: Give users the option of unblacklisting a site. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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/passwords/manage_passwords_bubble_model.h
diff --git a/chrome/browser/ui/passwords/manage_passwords_bubble_model.h b/chrome/browser/ui/passwords/manage_passwords_bubble_model.h
index f16a07ba1b8e8542c35aea31b300750f51e91134..6c212fb16f4f3576681784a253e5e9bc1c9e30a0 100644
--- a/chrome/browser/ui/passwords/manage_passwords_bubble_model.h
+++ b/chrome/browser/ui/passwords/manage_passwords_bubble_model.h
@@ -49,6 +49,9 @@ class ManagePasswordsBubbleModel : public content::WebContentsObserver {
// by the user.
void OnNeverForThisSiteClicked();
+ // Called by the view code when the site is unblacklisted.
+ void OnUnblacklistClicked();
+
// Called by the view code when the save button in clicked by the user.
void OnSaveClicked();
@@ -72,7 +75,11 @@ class ManagePasswordsBubbleModel : public content::WebContentsObserver {
}
bool WaitingToSavePassword() const {
- return manage_passwords_bubble_state() == PASSWORD_TO_BE_SAVED;
+ return manage_passwords_bubble_state_ == PASSWORD_TO_BE_SAVED;
+ }
+
+ bool NeverSavingPasswords() const {
+ return manage_passwords_bubble_state_ == NEVER_SAVE_PASSWORDS;
}
const base::string16& title() const { return title_; }

Powered by Google App Engine
This is Rietveld 408576698