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

Unified Diff: chrome/browser/extensions/api/managed_mode/managed_mode_api.h

Issue 11682005: Remove some Profile-keyed factory boilerplate: management omnibox preference push_messaging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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/managed_mode/managed_mode_api.h
diff --git a/chrome/browser/extensions/api/managed_mode/managed_mode_api.h b/chrome/browser/extensions/api/managed_mode/managed_mode_api.h
index af635ab2442a6cdf05da7980597ea20564bac34e..8085b7af12e390c521f4e362b895239ccaafa3b6 100644
--- a/chrome/browser/extensions/api/managed_mode/managed_mode_api.h
+++ b/chrome/browser/extensions/api/managed_mode/managed_mode_api.h
@@ -90,6 +90,9 @@ class ManagedModeAPI : public ProfileKeyedAPI,
// ProfileKeyedService implementation.
virtual void Shutdown() OVERRIDE;
+ // ProfileKeyedAPIFactory implementation.
+ static ProfileKeyedAPIFactory<ManagedModeAPI>* GetFactoryInstance();
+
// EventRouter::Observer implementation.
virtual void OnListenerAdded(const extensions::EventListenerInfo& details)
OVERRIDE;
@@ -111,10 +114,6 @@ class ManagedModeAPI : public ProfileKeyedAPI,
DISALLOW_COPY_AND_ASSIGN(ManagedModeAPI);
};
-template <>
-ProfileKeyedAPIFactory<ManagedModeAPI>*
-ProfileKeyedAPIFactory<ManagedModeAPI>::GetInstance();
-
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_MANAGED_MODE_MANAGED_MODE_API_H_

Powered by Google App Engine
This is Rietveld 408576698