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

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

Issue 10696177: Revert 146164 - Always query for the latest RenderViewHost from WebContents before sending the NOtB… (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
Index: chrome/browser/password_manager/password_form_manager.cc
===================================================================
--- chrome/browser/password_manager/password_form_manager.cc (revision 146191)
+++ chrome/browser/password_manager/password_form_manager.cc (working copy)
@@ -15,7 +15,6 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/autofill_messages.h"
#include "content/public/browser/render_view_host.h"
-#include "content/public/browser/web_contents.h"
#include "webkit/forms/password_form_dom_manager.h"
using base::Time;
@@ -24,7 +23,7 @@
PasswordFormManager::PasswordFormManager(Profile* profile,
PasswordManager* password_manager,
- content::WebContents* web_contents,
+ content::RenderViewHost* host,
const PasswordForm& observed_form,
bool ssl_valid)
: best_matches_deleter_(&best_matches_),
@@ -36,7 +35,7 @@
preferred_match_(NULL),
state_(PRE_MATCHING_PHASE),
profile_(profile),
- web_contents_(web_contents),
+ host_(host),
manager_action_(kManagerActionNone),
user_action_(kUserActionNone),
submit_result_(kSubmitResultNotSubmitted) {
@@ -508,7 +507,6 @@
}
void PasswordFormManager::SendNotBlacklistedToRenderer() {
- content::RenderViewHost* host = web_contents_->GetRenderViewHost();
- host->Send(new AutofillMsg_FormNotBlacklisted(host->GetRoutingID(),
+ host_->Send(new AutofillMsg_FormNotBlacklisted(host_->GetRoutingID(),
observed_form_));
}
« no previous file with comments | « chrome/browser/password_manager/password_form_manager.h ('k') | chrome/browser/password_manager/password_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698