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

Unified Diff: ios/web/web_state/js/page_script_util.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/web/web_state/js/page_script_util.h ('k') | ios/web/web_state/js/page_script_util_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/js/page_script_util.mm
diff --git a/ios/web/web_state/js/page_script_util.mm b/ios/web/web_state/js/page_script_util.mm
index fd7aeb906b6066c501efafdd7d8cbd25e9c7f447..1660c80a725ce7f5a8b6559e9e120446c6f25dff 100644
--- a/ios/web/web_state/js/page_script_util.mm
+++ b/ios/web/web_state/js/page_script_util.mm
@@ -32,9 +32,10 @@ NSString* GetPageScript(NSString* script_file_name) {
return content;
}
-NSString* GetEarlyPageScript() {
+NSString* GetEarlyPageScript(BrowserState* browser_state) {
DCHECK(GetWebClient());
- NSString* embedder_page_script = GetWebClient()->GetEarlyPageScript();
+ NSString* embedder_page_script =
+ GetWebClient()->GetEarlyPageScript(browser_state);
DCHECK(embedder_page_script);
// Make sure that script is injected only once. For example, content of
« no previous file with comments | « ios/web/web_state/js/page_script_util.h ('k') | ios/web/web_state/js/page_script_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698