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

Unified Diff: chrome/browser/profiles/profile_impl.h

Issue 541103002: Introduce ChromeZoomLevelPref, make zoom level prefs independent of profile prefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete access of ZoomController from WebUILoginView. Created 6 years, 2 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 | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.h
diff --git a/chrome/browser/profiles/profile_impl.h b/chrome/browser/profiles/profile_impl.h
index ae087553094849e5861151d43dcd6583d7ba8d03..ccefbda60e1cbd2d3afd74c664acd5dbefb78271 100644
--- a/chrome/browser/profiles/profile_impl.h
+++ b/chrome/browser/profiles/profile_impl.h
@@ -17,6 +17,7 @@
#include "base/timer/timer.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_impl_io_data.h"
+#include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/host_zoom_map.h"
@@ -111,6 +112,7 @@ class ProfileImpl : public Profile {
virtual ExtensionSpecialStoragePolicy*
GetExtensionSpecialStoragePolicy() override;
virtual PrefService* GetPrefs() override;
+ virtual chrome::ChromeZoomLevelPrefs* GetZoomLevelPrefs() override;
virtual PrefService* GetOffTheRecordPrefs() override;
virtual net::URLRequestContextGetter*
GetRequestContextForExtensions() override;
@@ -172,12 +174,10 @@ class ProfileImpl : public Profile {
// Does final initialization. Should be called after prefs were loaded.
void DoFinalInit();
+ // TODO(wjmaclean): Delete this once the HostZoomMap moves to
+ // StoragePartition.
void InitHostZoomMap();
- void OnDefaultZoomLevelChanged();
- void OnZoomLevelChanged(
- const content::HostZoomMap::ZoomLevelChange& change);
-
// Does final prefs initialization and calls Init().
void OnPrefsLoaded(bool success);
@@ -208,7 +208,6 @@ class ProfileImpl : public Profile {
scoped_ptr<domain_reliability::DomainReliabilityMonitor>
CreateDomainReliabilityMonitor(PrefService* local_state);
- scoped_ptr<content::HostZoomMap::Subscription> zoom_subscription_;
PrefChangeRegistrar pref_change_registrar_;
base::FilePath path_;
@@ -241,6 +240,10 @@ class ProfileImpl : public Profile {
scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_;
scoped_ptr<PrefServiceSyncable> prefs_;
scoped_ptr<PrefServiceSyncable> otr_prefs_;
+ // TODO(wjmaclean): This is only here temporarily until HostZoomMap moves
+ // into StoragePartition, after which it will also move to StoragePartition.
+ // Must declare this here so it is destroyed before the profile prefs service.
+ scoped_ptr<chrome::ChromeZoomLevelPrefs> zoom_level_prefs_;
ProfileImplIOData::Handle io_data_;
#if defined(ENABLE_EXTENSIONS)
scoped_refptr<ExtensionSpecialStoragePolicy>
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698