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

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

Issue 1009953002: Integrate ManagePasswordsState into ManagePasswordsUIController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android Created 5 years, 9 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_state.h
diff --git a/chrome/browser/ui/passwords/manage_passwords_state.h b/chrome/browser/ui/passwords/manage_passwords_state.h
index beeda3c20b1d33238e95bd487884b524779954d1..9168731591a41a97efacd2989a95aba40a0b703e 100644
--- a/chrome/browser/ui/passwords/manage_passwords_state.h
+++ b/chrome/browser/ui/passwords/manage_passwords_state.h
@@ -14,10 +14,13 @@
#include "components/password_manager/core/common/password_manager_ui.h"
#include "url/gurl.h"
+namespace content {
+class WebContents;
+}
+
namespace password_manager {
struct CredentialInfo;
class PasswordFormManager;
-class PasswordManagerClient;
}
@@ -31,9 +34,8 @@ class ManagePasswordsState {
ManagePasswordsState();
~ManagePasswordsState();
- // Set the client for logging.
- void set_client(password_manager::PasswordManagerClient* client) {
- client_ = client;
+ void set_web_content(content::WebContents* web_contents) {
+ web_contents_ = web_contents;
}
// The methods below discard the current state/data of the object and move it
@@ -138,8 +140,8 @@ class ManagePasswordsState {
// The current state of the password manager UI.
password_manager::ui::State state_;
- // The client used for logging.
- password_manager::PasswordManagerClient* client_;
+ // Used to retrieve the client for logging.
+ content::WebContents* web_contents_;
DISALLOW_COPY_AND_ASSIGN(ManagePasswordsState);
};

Powered by Google App Engine
This is Rietveld 408576698