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

Unified Diff: chrome/browser/autofill/content_autofill_driver_browsertest.cc

Issue 707173004: Refactor Autofill for out of process iframes (OOPIF). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: FirstUserGesture Created 6 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/autofill/content_autofill_driver_browsertest.cc
diff --git a/chrome/browser/autofill/content_autofill_driver_browsertest.cc b/chrome/browser/autofill/content_autofill_driver_browsertest.cc
index 1b150949cce74aa37a1803050db6187a41fa4ef5..d7a0e0982036ea818ccf68885e0b1594fd8b97cf 100644
--- a/chrome/browser/autofill/content_autofill_driver_browsertest.cc
+++ b/chrome/browser/autofill/content_autofill_driver_browsertest.cc
@@ -58,10 +58,10 @@ class MockAutofillClient : public TestAutofillClient {
// instance.
class TestContentAutofillDriver : public ContentAutofillDriver {
public:
- TestContentAutofillDriver(content::WebContents* web_contents,
+ TestContentAutofillDriver(content::RenderFrameHost* rfh,
AutofillClient* client)
: ContentAutofillDriver(
- web_contents,
+ rfh,
client,
g_browser_process->GetApplicationLocale(),
AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER) {}
@@ -86,8 +86,8 @@ class ContentAutofillDriverBrowserTest : public InProcessBrowserTest,
Observe(web_contents);
AutofillManager::RegisterProfilePrefs(autofill_client_.GetPrefRegistry());
- autofill_driver_.reset(
- new TestContentAutofillDriver(web_contents, &autofill_client_));
+ autofill_driver_.reset(new TestContentAutofillDriver(
+ web_contents->GetMainFrame(), &autofill_client_));
}
// Normally the WebContents will automatically delete the driver, but here

Powered by Google App Engine
This is Rietveld 408576698