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

Unified Diff: ios/web_view/internal/criwv_browser_state.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_browser_state.h ('k') | ios/web_view/internal/criwv_web_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web_view/internal/criwv_browser_state.mm
diff --git a/ios/web_view/internal/criwv_browser_state.mm b/ios/web_view/internal/criwv_browser_state.mm
index 5833f9965a453b24c4dbbfc1a49a53d85999215e..4c4f16ac6f025263d5ae787423d365dfb327ce6d 100644
--- a/ios/web_view/internal/criwv_browser_state.mm
+++ b/ios/web_view/internal/criwv_browser_state.mm
@@ -28,7 +28,8 @@ const char kPreferencesFilename[] = FILE_PATH_LITERAL("Preferences");
namespace ios_web_view {
-CRIWVBrowserState::CRIWVBrowserState() : web::BrowserState() {
+CRIWVBrowserState::CRIWVBrowserState(bool off_the_record)
+ : web::BrowserState(), off_the_record_(off_the_record) {
CHECK(PathService::Get(base::DIR_APP_DATA, &path_));
request_context_getter_ = new CRIWVURLRequestContextGetter(
@@ -67,7 +68,7 @@ CRIWVBrowserState* CRIWVBrowserState::FromBrowserState(
}
bool CRIWVBrowserState::IsOffTheRecord() const {
- return false;
+ return off_the_record_;
}
base::FilePath CRIWVBrowserState::GetStatePath() const {
« no previous file with comments | « ios/web_view/internal/criwv_browser_state.h ('k') | ios/web_view/internal/criwv_web_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698