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

Unified Diff: chrome/browser/password_manager/password_form_manager.h

Issue 10704147: Always query for the latest RenderViewHost from WebContents before sending the NOtBlacklistedMessag… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_form_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/password_form_manager.h
diff --git a/chrome/browser/password_manager/password_form_manager.h b/chrome/browser/password_manager/password_form_manager.h
index 8de86a10bff565810f00d40a63c1cc0604534949..f12141903496c7991ae53eb993e4903c7c767868 100644
--- a/chrome/browser/password_manager/password_form_manager.h
+++ b/chrome/browser/password_manager/password_form_manager.h
@@ -16,7 +16,7 @@
#include "webkit/forms/password_form.h"
namespace content {
-class RenderViewHost;
+class WebContents;
} // namespace content
class PasswordManager;
@@ -35,7 +35,7 @@ class PasswordFormManager : public PasswordStoreConsumer {
// used to filter login results from database.
PasswordFormManager(Profile* profile,
PasswordManager* password_manager,
- content::RenderViewHost* host,
+ content::WebContents* web_contents,
const webkit::forms::PasswordForm& observed_form,
bool ssl_valid);
virtual ~PasswordFormManager();
@@ -243,8 +243,9 @@ class PasswordFormManager : public PasswordStoreConsumer {
// The profile from which we get the PasswordStore.
Profile* profile_;
- // Render view host for sending messages to the corresponding renderer.
- content::RenderViewHost* host_;
+ // Web contents from which we get the RenderViewHost for sending messages to
+ // the corresponding renderer.
+ content::WebContents* web_contents_;
// These three fields record the "ActionsTaken" by the browser and
// the user with this form, and the result. They are combined and
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_form_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698