| Index: chrome/browser/extensions/api/tabs/tabs_windows_api.cc
|
| diff --git a/chrome/browser/extensions/api/tabs/tabs_windows_api.cc b/chrome/browser/extensions/api/tabs/tabs_windows_api.cc
|
| index 038451082eda7d7de181c0e209309f9bfeadfa49..24cb81dc078aa63681102dcc572f971252d72315 100644
|
| --- a/chrome/browser/extensions/api/tabs/tabs_windows_api.cc
|
| +++ b/chrome/browser/extensions/api/tabs/tabs_windows_api.cc
|
| @@ -40,19 +40,17 @@ void TabsWindowsAPI::Shutdown() {
|
| ExtensionSystem::Get(profile_)->event_router()->UnregisterObserver(this);
|
| }
|
|
|
| -void TabsWindowsAPI::OnListenerAdded(
|
| - const extensions::EventListenerInfo& details) {
|
| - windows_event_router();
|
| - ExtensionSystem::Get(profile_)->event_router()->UnregisterObserver(this);
|
| -}
|
| -
|
| static base::LazyInstance<ProfileKeyedAPIFactory<TabsWindowsAPI> >
|
| g_factory = LAZY_INSTANCE_INITIALIZER;
|
|
|
| -template <>
|
| -ProfileKeyedAPIFactory<TabsWindowsAPI>*
|
| -ProfileKeyedAPIFactory<TabsWindowsAPI>::GetInstance() {
|
| +ProfileKeyedAPIFactory<TabsWindowsAPI>* TabsWindowsAPI::GetFactoryInstance() {
|
| return &g_factory.Get();
|
| }
|
|
|
| +void TabsWindowsAPI::OnListenerAdded(
|
| + const extensions::EventListenerInfo& details) {
|
| + windows_event_router();
|
| + ExtensionSystem::Get(profile_)->event_router()->UnregisterObserver(this);
|
| +}
|
| +
|
| } // namespace extensions
|
|
|