Index: chrome/browser/extensions/api/processes/processes_api.cc |
diff --git a/chrome/browser/extensions/api/processes/processes_api.cc b/chrome/browser/extensions/api/processes/processes_api.cc |
index b601f3494409035a383bc050385daa671a7193a7..30420513f42353cb75d256ca7eaa4a6790106824 100644 |
--- a/chrome/browser/extensions/api/processes/processes_api.cc |
+++ b/chrome/browser/extensions/api/processes/processes_api.cc |
@@ -503,6 +503,14 @@ void ProcessesAPI::Shutdown() { |
ExtensionSystem::Get(profile_)->event_router()->UnregisterObserver(this); |
} |
+static base::LazyInstance<ProfileKeyedAPIFactory<ProcessesAPI> > |
+g_factory = LAZY_INSTANCE_INITIALIZER; |
+ |
+// static |
+ProfileKeyedAPIFactory<ProcessesAPI>* ProcessesAPI::GetFactoryInstance() { |
+ return &g_factory.Get(); |
+} |
+ |
// static |
ProcessesAPI* ProcessesAPI::Get(Profile* profile) { |
return ProfileKeyedAPIFactory<ProcessesAPI>::GetForProfile(profile); |
@@ -527,15 +535,6 @@ void ProcessesAPI::OnListenerRemoved(const EventListenerInfo& details) { |
processes_event_router()->ListenerRemoved(); |
} |
-static base::LazyInstance<ProfileKeyedAPIFactory<ProcessesAPI> > |
-g_factory = LAZY_INSTANCE_INITIALIZER; |
- |
-template <> |
-ProfileKeyedAPIFactory<ProcessesAPI>* |
-ProfileKeyedAPIFactory<ProcessesAPI>::GetInstance() { |
- return &g_factory.Get(); |
-} |
- |
GetProcessIdForTabFunction::GetProcessIdForTabFunction() : tab_id_(-1) { |
} |