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

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

Issue 15742010: Use MediaGalleryPreferences directly in GalleryWatchStateTracker interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make sure to get all call sites Created 7 years, 7 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 5bd4ed8af2e9beac04bb08580f84b71df9ab946e..c3b7815d2f563b7abe2eca6b79cb317696c16754 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
@@ -74,7 +74,7 @@ class MediaGalleriesPrivateAPI : public ProfileKeyedAPI,
private:
friend class ProfileKeyedAPIFactory<MediaGalleriesPrivateAPI>;
- void MaybeInitializeEventRouter();
+ void MaybeInitializeEventRouterAndTracker();
// ProfileKeyedAPI implementation.
static const char* service_name() {
@@ -85,7 +85,7 @@ class MediaGalleriesPrivateAPI : public ProfileKeyedAPI,
// Current profile.
Profile* profile_;
- GalleryWatchStateTracker tracker_;
+ scoped_ptr<GalleryWatchStateTracker> tracker_;
// Created lazily on first access.
scoped_ptr<MediaGalleriesPrivateEventRouter>

Powered by Google App Engine
This is Rietveld 408576698