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

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

Issue 87853004: Refactoring Manage Passwords Bubble Code to exclude TabSpecificContentSettings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@movingclasses
Patch Set: adding controller files Created 7 years, 1 month 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 d409c467bda2915f1651e4babd68330a9e16e6eb..502aae058fa60d781a51cc96527ce2094796c502 100644
--- a/chrome/browser/ui/passwords/manage_passwords_bubble_model.h
+++ b/chrome/browser/ui/passwords/manage_passwords_bubble_model.h
@@ -5,7 +5,14 @@
#ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_
#define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_
-#include "chrome/browser/content_settings/tab_specific_content_settings.h"
+#include "components/autofill/core/common/password_form.h"
+#include "content/public/browser/web_contents_observer.h"
+
+class ManagePasswordsIconController;
+
+namespace autofill {
+class PasswordForm;
+}
namespace content {
class WebContents;
@@ -35,7 +42,7 @@ class ManagePasswordsBubbleModel : public content::WebContentsObserver {
// Called by the view code to delete or add a password form to the
// PasswordStore.
- void PasswordAction(autofill::PasswordForm password_form, bool remove);
+ void AddOrRemovePassword(autofill::PasswordForm password_form, bool remove);
markusheintz_ 2013/11/26 12:44:37 "Add" or "Remove" are two contradicting verbs that
npentrel 2013/11/26 14:25:55 Done.
// Called by the view code when the ManagePasswordItemView is destroyed and
// the user chose to delete the password.
@@ -48,6 +55,7 @@ class ManagePasswordsBubbleModel : public content::WebContentsObserver {
}
bool password_submitted() { return password_submitted_; }
+
markusheintz_ 2013/11/26 12:44:37 nit: remove this empty line
npentrel 2013/11/26 14:25:55 Done.
const string16& title() { return title_; }
const autofill::PasswordForm& pending_credentials() {
return pending_credentials_;

Powered by Google App Engine
This is Rietveld 408576698