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

Unified Diff: ios/web/web_state/js/page_script_util.h

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/crw_js_window_id_manager_unittest.mm ('k') | ios/web/web_state/js/page_script_util.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.h
diff --git a/ios/web/web_state/js/page_script_util.h b/ios/web/web_state/js/page_script_util.h
index 451a38e99e8146648e1d7d0ed1fec464bcfdcffb..53d67cb89a877c59e99b2e5f02ccddcebcbb51ce 100644
--- a/ios/web/web_state/js/page_script_util.h
+++ b/ios/web/web_state/js/page_script_util.h
@@ -10,13 +10,15 @@
namespace web {
+class BrowserState;
+
// Returns an autoreleased string containing the JavaScript loaded from a
// bundled resource file with the given name (excluding extension).
NSString* GetPageScript(NSString* script_file_name);
// Returns an autoreleased string containing the JavaScript to be injected into
// the web view as early as possible.
-NSString* GetEarlyPageScript();
+NSString* GetEarlyPageScript(BrowserState* browser_state);
} // namespace web
« no previous file with comments | « ios/web/web_state/js/crw_js_window_id_manager_unittest.mm ('k') | ios/web/web_state/js/page_script_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698