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

Unified Diff: chrome/browser/extensions/install_tracker_factory.h

Issue 12298015: Change NotifyAppList*() functions into observers on a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments Created 7 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/install_tracker_factory.h
diff --git a/chrome/browser/extensions/install_tracker_factory.h b/chrome/browser/extensions/install_tracker_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..1055d585af2ae6735d9355479adf203d6fe9dcca
--- /dev/null
+++ b/chrome/browser/extensions/install_tracker_factory.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
tfarina 2013/02/25 23:43:02 no (c)
koz (OOO until 15th September) 2013/02/26 00:10:51 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_INSTALL_TRACKER_FACTORY_H_
+#define CHROME_BROWSER_EXTENSIONS_INSTALL_TRACKER_FACTORY_H_
+
+#include "base/memory/singleton.h"
tfarina 2013/02/25 23:43:02 forward declare this: template <typename T> struc
koz (OOO until 15th September) 2013/02/26 00:10:51 Done.
+#include "chrome/browser/profiles/profile_keyed_service_factory.h"
+
+class Profile;
+
+namespace extensions {
+
+class InstallTracker;
+
+class InstallTrackerFactory : public ProfileKeyedServiceFactory {
+ public:
+ static InstallTracker* GetForProfile(Profile* profile);
+ static InstallTrackerFactory* GetInstance();
+
+ private:
+ friend struct DefaultSingletonTraits<InstallTrackerFactory>;
+
+ InstallTrackerFactory();
+ virtual ~InstallTrackerFactory();
+
+ // ProfileKeyedServiceFactory overrides:
+ virtual ProfileKeyedService* BuildServiceInstanceFor(
+ Profile* profile) const OVERRIDE;
+
+ virtual bool ServiceRedirectedInIncognito() const OVERRIDE;
+};
tfarina 2013/02/25 23:43:02 DISALLOW_COPY_AND_ASSING...
koz (OOO until 15th September) 2013/02/26 00:10:51 Done.
+
+} // namespace extensions;
+
+#endif // CHROME_BROWSER_EXTENSIONS_INSTALL_TRACKER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698