diff options
author | blundell@chromium.org <blundell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-13 05:28:20 +0000 |
---|---|---|
committer | blundell@chromium.org <blundell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-13 05:28:20 +0000 |
commit | 12b7af356ea046e14f0c070d5368591ea6accefa (patch) | |
tree | fe91fb1d39ae239862a2bb3421748b0a58baf988 /apps/app_window_geometry_cache.h | |
parent | cd61254edabc1fb6ba6c42e8338010f5c0518b81 (diff) | |
download | chromium_src-12b7af356ea046e14f0c070d5368591ea6accefa.zip chromium_src-12b7af356ea046e14f0c070d5368591ea6accefa.tar.gz chromium_src-12b7af356ea046e14f0c070d5368591ea6accefa.tar.bz2 |
Move clients of BrowserContextKeyedService to using KeyedService (#3)
This CL moves the following clients of BCKS to using the KeyedService
component:
- //apps
- //chrome/browser/apps
- //chrome/browser/chromeos
- //chrome/browser/managed_mode
BUG=351704
TBR=yoz,jochen
Review URL: https://codereview.chromium.org/197733002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256756 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_window_geometry_cache.h')
-rw-r--r-- | apps/app_window_geometry_cache.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/app_window_geometry_cache.h b/apps/app_window_geometry_cache.h index 372be6d..1bc69fa 100644 --- a/apps/app_window_geometry_cache.h +++ b/apps/app_window_geometry_cache.h @@ -15,8 +15,8 @@ #include "base/time/time.h" #include "base/timer/timer.h" #include "base/values.h" -#include "components/browser_context_keyed_service/browser_context_keyed_service.h" -#include "components/browser_context_keyed_service/browser_context_keyed_service_factory.h" +#include "components/keyed_service/content/browser_context_keyed_service_factory.h" +#include "components/keyed_service/core/keyed_service.h" #include "content/public/browser/notification_observer.h" #include "content/public/browser/notification_registrar.h" #include "ui/base/ui_base_types.h" @@ -33,7 +33,7 @@ namespace apps { // A cache for persisted geometry of app windows, both to not have to wait // for IO when creating a new window, and to not cause IO on every window // geometry change. -class AppWindowGeometryCache : public BrowserContextKeyedService, +class AppWindowGeometryCache : public KeyedService, public content::NotificationObserver { public: class Factory : public BrowserContextKeyedServiceFactory { @@ -51,7 +51,7 @@ class AppWindowGeometryCache : public BrowserContextKeyedService, virtual ~Factory(); // BrowserContextKeyedServiceFactory - virtual BrowserContextKeyedService* BuildServiceInstanceFor( + virtual KeyedService* BuildServiceInstanceFor( content::BrowserContext* context) const OVERRIDE; virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; virtual content::BrowserContext* GetBrowserContextToUse( @@ -91,7 +91,7 @@ class AppWindowGeometryCache : public BrowserContextKeyedService, gfx::Rect* screen_bounds, ui::WindowShowState* state); - // BrowserContextKeyedService + // KeyedService virtual void Shutdown() OVERRIDE; void AddObserver(Observer* observer); |