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

Unified Diff: ios/web_view/internal/criwv_web_main_parts.mm

Issue 2679003002: Initialize CRIWVWebView with Configuration object instead of browserState. (Closed)
Patch Set: Rebase. Respond to comments. Fix duplicate unique_ptr. Created 3 years, 10 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_view/internal/criwv_web_main_parts.h ('k') | ios/web_view/internal/criwv_web_view.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web_view/internal/criwv_web_main_parts.mm
diff --git a/ios/web_view/internal/criwv_web_main_parts.mm b/ios/web_view/internal/criwv_web_main_parts.mm
index b1ec766e8caa41b69710e637bbbc3f163234311a..dd491d1cce36dbc8c1c0be3e7f6ca2e859767e5c 100644
--- a/ios/web_view/internal/criwv_web_main_parts.mm
+++ b/ios/web_view/internal/criwv_web_main_parts.mm
@@ -32,7 +32,8 @@ void CRIWVWebMainParts::PreMainMessageLoopRun() {
ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath(
pak_file, ui::SCALE_FACTOR_NONE);
- browser_state_ = base::MakeUnique<CRIWVBrowserState>();
+ browser_state_ = base::MakeUnique<CRIWVBrowserState>(false);
+ off_the_record_browser_state_ = base::MakeUnique<CRIWVBrowserState>(true);
// Initialize translate.
translate::TranslateDownloadManager* download_manager =
« no previous file with comments | « ios/web_view/internal/criwv_web_main_parts.h ('k') | ios/web_view/internal/criwv_web_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698