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

Unified Diff: chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.h

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 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
Index: chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.h
diff --git a/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.h b/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.h
index 06069802e6f5dbfdcb277fcf775c989deac00c40..cb7cd0eee5e9ed2132922e463b32838d32ac68dc 100644
--- a/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.h
+++ b/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.h
@@ -11,10 +11,10 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/extensions/api/media_galleries_private/gallery_watch_state_tracker.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/browser/media_galleries/media_galleries_preferences.h"
#include "chrome/common/extensions/api/media_galleries_private.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "extensions/browser/event_router.h"
class Profile;
@@ -29,7 +29,7 @@ class MediaGalleriesPrivateEventRouter;
// The profile-keyed service that manages the media galleries private extension
// API. Created at the same time as the Profile.
-class MediaGalleriesPrivateAPI : public ProfileKeyedAPI,
+class MediaGalleriesPrivateAPI : public BrowserContextKeyedAPI,
public EventRouter::Observer {
public:
explicit MediaGalleriesPrivateAPI(content::BrowserContext* context);
@@ -38,8 +38,9 @@ class MediaGalleriesPrivateAPI : public ProfileKeyedAPI,
// BrowserContextKeyedService implementation.
virtual void Shutdown() OVERRIDE;
- // ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<MediaGalleriesPrivateAPI>* GetFactoryInstance();
+ // BrowserContextKeyedAPI implementation.
+ static BrowserContextKeyedAPIFactory<MediaGalleriesPrivateAPI>*
+ GetFactoryInstance();
// Convenience method to get the MediaGalleriesPrivateAPI for a profile.
static MediaGalleriesPrivateAPI* Get(content::BrowserContext* context);
@@ -51,11 +52,11 @@ class MediaGalleriesPrivateAPI : public ProfileKeyedAPI,
GalleryWatchStateTracker* GetGalleryWatchStateTracker();
private:
- friend class ProfileKeyedAPIFactory<MediaGalleriesPrivateAPI>;
+ friend class BrowserContextKeyedAPIFactory<MediaGalleriesPrivateAPI>;
void MaybeInitializeEventRouterAndTracker();
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
static const char* service_name() {
return "MediaGalleriesPrivateAPI";
}

Powered by Google App Engine
This is Rietveld 408576698