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

Unified Diff: ios/web/web_state/ui/wk_web_view_configuration_provider.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
Index: ios/web/web_state/ui/wk_web_view_configuration_provider.h
diff --git a/ios/web/web_state/ui/wk_web_view_configuration_provider.h b/ios/web/web_state/ui/wk_web_view_configuration_provider.h
index 84191f74ab00bb77772d945a84312f46c7b3e87b..d85ad22d36c4685fc399eddbd2725da8508d6b9a 100644
--- a/ios/web/web_state/ui/wk_web_view_configuration_provider.h
+++ b/ios/web/web_state/ui/wk_web_view_configuration_provider.h
@@ -45,14 +45,13 @@ class WKWebViewConfigurationProvider : public base::SupportsUserData::Data {
void Purge();
private:
- explicit WKWebViewConfigurationProvider(bool is_off_the_record);
+ explicit WKWebViewConfigurationProvider(BrowserState* browser_state);
WKWebViewConfigurationProvider() = delete;
~WKWebViewConfigurationProvider() override;
base::scoped_nsobject<WKWebViewConfiguration> configuration_;
base::scoped_nsobject<CRWWKScriptMessageRouter> router_;
- // Result of |web::BrowserState::IsOffTheRecord| call.
- bool is_off_the_record_;
+ BrowserState* browser_state_;
DISALLOW_COPY_AND_ASSIGN(WKWebViewConfigurationProvider);
};
« no previous file with comments | « ios/web/web_state/js/page_script_util_unittest.mm ('k') | ios/web/web_state/ui/wk_web_view_configuration_provider.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698