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

Unified Diff: chrome/browser/intents/web_intents_registry_factory.cc

Issue 10546083: Convert ProtocolHandlerRegistry to be a ProfileKeyedService. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update ProtocolHandlerRegistry to be a ProfileKeyedService in lieu of a refcounted pointer. Created 8 years, 6 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/intents/web_intents_registry_factory.cc
diff --git a/chrome/browser/intents/web_intents_registry_factory.cc b/chrome/browser/intents/web_intents_registry_factory.cc
index 7bbbdb456632f3e0f0170b3ee9441c28f37b94b7..58ed05ae855f9368b6d9c45ebde46208826f5847 100644
--- a/chrome/browser/intents/web_intents_registry_factory.cc
+++ b/chrome/browser/intents/web_intents_registry_factory.cc
@@ -12,6 +12,11 @@
#include "chrome/browser/webdata/web_data_service_factory.h"
// static
+WebIntentsRegistryFactory* WebIntentsRegistryFactory::GetInstance() {
+ return Singleton<WebIntentsRegistryFactory>::get();
+}
+
+// static
WebIntentsRegistry* WebIntentsRegistryFactory::GetForProfile(Profile* profile) {
return static_cast<WebIntentsRegistry*>(
GetInstance()->GetServiceForProfile(profile, true));
@@ -27,11 +32,6 @@ WebIntentsRegistryFactory::WebIntentsRegistryFactory()
WebIntentsRegistryFactory::~WebIntentsRegistryFactory() {
}
-// static
-WebIntentsRegistryFactory* WebIntentsRegistryFactory::GetInstance() {
- return Singleton<WebIntentsRegistryFactory>::get();
-}
-
ProfileKeyedService* WebIntentsRegistryFactory::BuildServiceInstanceFor(
Profile* profile) const {
WebIntentsRegistry* registry = new WebIntentsRegistry;

Powered by Google App Engine
This is Rietveld 408576698