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

Unified Diff: ios/chrome/browser/web/chrome_web_client_unittest.mm

Issue 2741343015: Add a BrowserState* parameter to GetEarlyPageScript(). (Closed)
Patch Set: Apply review comments. Created 3 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
« no previous file with comments | « ios/chrome/browser/web/chrome_web_client.mm ('k') | ios/chrome/browser/web/early_page_script_perftest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/chrome_web_client_unittest.mm
diff --git a/ios/chrome/browser/web/chrome_web_client_unittest.mm b/ios/chrome/browser/web/chrome_web_client_unittest.mm
index 80c6a15fd03f98d2f58c3457ec48906a91d630a4..fc3763e2737ecded0cafc0b70d5ea5053e6b82b0 100644
--- a/ios/chrome/browser/web/chrome_web_client_unittest.mm
+++ b/ios/chrome/browser/web/chrome_web_client_unittest.mm
@@ -76,7 +76,7 @@ TEST_F(ChromeWebClientTest, WKWebViewEarlyPageScript) {
web::ExecuteJavaScript(web_view, @"__gCrWeb = {};");
web::ScopedTestingWebClient web_client(base::MakeUnique<ChromeWebClient>());
- NSString* script = web_client.Get()->GetEarlyPageScript();
+ NSString* script = web_client.Get()->GetEarlyPageScript(&browser_state);
web::ExecuteJavaScript(web_view, script);
EXPECT_NSEQ(@"object",
web::ExecuteJavaScript(web_view, @"typeof __gCrWeb.print"));
« no previous file with comments | « ios/chrome/browser/web/chrome_web_client.mm ('k') | ios/chrome/browser/web/early_page_script_perftest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698