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

Unified Diff: chrome/browser/tabs/pinned_tab_service.h

Issue 6820065: Profile shouldn't own PinnedTabService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, fix compile error Created 9 years, 8 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_impl.cc ('k') | chrome/browser/tabs/pinned_tab_service_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tabs/pinned_tab_service.h
diff --git a/chrome/browser/tabs/pinned_tab_service.h b/chrome/browser/tabs/pinned_tab_service.h
index 8eff427be0916cd7303a83aaf17152a00ab615da..be802e9d4f970181e2b84a9604973b77e0fb5fbc 100644
--- a/chrome/browser/tabs/pinned_tab_service.h
+++ b/chrome/browser/tabs/pinned_tab_service.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_TABS_PINNED_TAB_SERVICE_H_
#pragma once
+#include "chrome/browser/profiles/profile_keyed_service.h"
#include "content/common/notification_observer.h"
#include "content/common/notification_registrar.h"
@@ -14,7 +15,8 @@ class Profile;
// PinnedTabService is responsible for updating preferences with the set of
// pinned tabs to restore at startup. PinnedTabService listens for the
// appropriate set of notifications to know it should update preferences.
-class PinnedTabService : public NotificationObserver {
+class PinnedTabService : public NotificationObserver,
+ public ProfileKeyedService {
public:
explicit PinnedTabService(Profile* profile);
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/tabs/pinned_tab_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698