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

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

Issue 2710683007: Rename CRIWVBrowserState to CWVBrowserState. (Closed)
Patch Set: 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/cwv_browser_state.h ('k') | ios/web_view/internal/cwv_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/cwv_browser_state.mm
diff --git a/ios/web_view/internal/criwv_browser_state.mm b/ios/web_view/internal/cwv_browser_state.mm
similarity index 84%
rename from ios/web_view/internal/criwv_browser_state.mm
rename to ios/web_view/internal/cwv_browser_state.mm
index d581ab985ac4db67be84726f0ce4d77cc2d53ae7..4a83d771531f855049514deffdc31031e47de555 100644
--- a/ios/web_view/internal/criwv_browser_state.mm
+++ b/ios/web_view/internal/cwv_browser_state.mm
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ios/web_view/internal/criwv_browser_state.h"
+#include "ios/web_view/internal/cwv_browser_state.h"
#include <memory>
@@ -32,7 +32,7 @@ const char kPreferencesFilename[] = FILE_PATH_LITERAL("Preferences");
namespace ios_web_view {
-CRIWVBrowserState::CRIWVBrowserState(bool off_the_record)
+CWVBrowserState::CWVBrowserState(bool off_the_record)
: web::BrowserState(), off_the_record_(off_the_record) {
CHECK(PathService::Get(base::DIR_APP_DATA, &path_));
@@ -58,32 +58,32 @@ CRIWVBrowserState::CRIWVBrowserState(bool off_the_record)
prefs_ = factory.Create(pref_registry.get());
}
-CRIWVBrowserState::~CRIWVBrowserState() {}
+CWVBrowserState::~CWVBrowserState() {}
-PrefService* CRIWVBrowserState::GetPrefs() {
+PrefService* CWVBrowserState::GetPrefs() {
DCHECK(prefs_);
return prefs_.get();
}
// static
-CRIWVBrowserState* CRIWVBrowserState::FromBrowserState(
+CWVBrowserState* CWVBrowserState::FromBrowserState(
web::BrowserState* browser_state) {
- return static_cast<CRIWVBrowserState*>(browser_state);
+ return static_cast<CWVBrowserState*>(browser_state);
}
-bool CRIWVBrowserState::IsOffTheRecord() const {
+bool CWVBrowserState::IsOffTheRecord() const {
return off_the_record_;
}
-base::FilePath CRIWVBrowserState::GetStatePath() const {
+base::FilePath CWVBrowserState::GetStatePath() const {
return path_;
}
-net::URLRequestContextGetter* CRIWVBrowserState::GetRequestContext() {
+net::URLRequestContextGetter* CWVBrowserState::GetRequestContext() {
return request_context_getter_.get();
}
-void CRIWVBrowserState::RegisterPrefs(
+void CWVBrowserState::RegisterPrefs(
user_prefs::PrefRegistrySyncable* pref_registry) {
// TODO(crbug.com/679895): Find a good value for the kAcceptLanguages pref.
// TODO(crbug.com/679895): Pass this value to the network stack somehow, for
« no previous file with comments | « ios/web_view/internal/cwv_browser_state.h ('k') | ios/web_view/internal/cwv_web_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698