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

Unified Diff: ios/chrome/browser/web/early_page_script_perftest.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_unittest.mm ('k') | ios/web/public/test/fakes/test_web_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/early_page_script_perftest.mm
diff --git a/ios/chrome/browser/web/early_page_script_perftest.mm b/ios/chrome/browser/web/early_page_script_perftest.mm
index 424503033e95d966c78913bd82842f9db8a6f439..87cf2f1040b245054e3bac17bdb1a08f1f648aa6 100644
--- a/ios/chrome/browser/web/early_page_script_perftest.mm
+++ b/ios/chrome/browser/web/early_page_script_perftest.mm
@@ -26,7 +26,7 @@ class EarlyPageScriptPerfTest : public PerfTest {
// Injects early script into WKWebView.
void InjectEarlyScript() {
- web::ExecuteJavaScript(web_view_, web::GetEarlyPageScript());
+ web::ExecuteJavaScript(web_view_, web::GetEarlyPageScript(&browser_state_));
}
// BrowserState required for web view creation.
@@ -40,7 +40,7 @@ TEST_F(EarlyPageScriptPerfTest, ScriptLoading) {
RepeatTimedRuns("Loading",
^base::TimeDelta(int) {
base::ElapsedTimer timer;
- web::GetEarlyPageScript();
+ web::GetEarlyPageScript(&browser_state_);
return timer.Elapsed();
},
nil);
« no previous file with comments | « ios/chrome/browser/web/chrome_web_client_unittest.mm ('k') | ios/web/public/test/fakes/test_web_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698