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

Unified Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 506073002: Rename HostZoomMap::GetForBrowserContext() to GetDefaultForBrowserContext(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: chrome/browser/profiles/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index d8ee11cff55fe78dec27833cacdba2a5506976bc..bae469f1c463af19ef64f766876d80ebdff19c7f 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -194,9 +194,9 @@ void OffTheRecordProfileImpl::InitIoData() {
}
void OffTheRecordProfileImpl::InitHostZoomMap() {
- HostZoomMap* host_zoom_map = HostZoomMap::GetForBrowserContext(this);
+ HostZoomMap* host_zoom_map = HostZoomMap::GetDefaultForBrowserContext(this);
HostZoomMap* parent_host_zoom_map =
- HostZoomMap::GetForBrowserContext(profile_);
+ HostZoomMap::GetDefaultForBrowserContext(profile_);
host_zoom_map->CopyFrom(parent_host_zoom_map);
// Observe parent's HZM change for propagating change of parent's
// change to this HZM.
@@ -515,7 +515,7 @@ Profile* Profile::CreateOffTheRecordProfile() {
void OffTheRecordProfileImpl::OnZoomLevelChanged(
const HostZoomMap::ZoomLevelChange& change) {
- HostZoomMap* host_zoom_map = HostZoomMap::GetForBrowserContext(this);
+ HostZoomMap* host_zoom_map = HostZoomMap::GetDefaultForBrowserContext(this);
switch (change.mode) {
case HostZoomMap::ZOOM_CHANGED_TEMPORARY_ZOOM:
return;
« no previous file with comments | « chrome/browser/profiles/host_zoom_map_browsertest.cc ('k') | chrome/browser/profiles/off_the_record_profile_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698