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

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

Issue 707173004: Refactor Autofill for out of process iframes (OOPIF). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mem leak Created 6 years 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/chrome_password_manager_client_unittest.cc
diff --git a/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc b/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc
index b4bc1293f0b6f003ee3c81074404f5688a83fc7f..fb35ebb2b5c7aab85ab9f0004f38beec859ceaa7 100644
--- a/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc
+++ b/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc
@@ -172,7 +172,8 @@ TEST_F(ChromePasswordManagerClientTest, AnswerToPingsAboutLoggingState_Active) {
// Ping the client for logging activity update.
AutofillHostMsg_PasswordAutofillAgentConstructed msg(0);
- static_cast<IPC::Listener*>(GetClient())->OnMessageReceived(msg);
+ static_cast<content::WebContentsObserver*>(GetClient())->OnMessageReceived(
+ msg, web_contents()->GetMainFrame());
bool logging_active = false;
EXPECT_TRUE(WasLoggingActivationMessageSent(&logging_active));
@@ -187,7 +188,8 @@ TEST_F(ChromePasswordManagerClientTest,
// Ping the client for logging activity update.
AutofillHostMsg_PasswordAutofillAgentConstructed msg(0);
- static_cast<IPC::Listener*>(GetClient())->OnMessageReceived(msg);
+ static_cast<content::WebContentsObserver*>(GetClient())->OnMessageReceived(
+ msg, web_contents()->GetMainFrame());
bool logging_active = true;
EXPECT_TRUE(WasLoggingActivationMessageSent(&logging_active));
« no previous file with comments | « chrome/browser/password_manager/chrome_password_manager_client.cc ('k') | chrome/browser/prerender/prerender_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698