diff options
author | mad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-06 14:13:00 +0000 |
---|---|---|
committer | mad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-06 14:13:00 +0000 |
commit | 4abde49fed3bb3c861be1512a0e4e8ee32818493 (patch) | |
tree | 6c3c5f5728bb782f953f36d0915070bf7128d042 /apps/app_lifetime_monitor_factory.h | |
parent | f80ae2cd0f480a856c8a7689d4b6f1cf547061ec (diff) | |
download | chromium_src-4abde49fed3bb3c861be1512a0e4e8ee32818493.zip chromium_src-4abde49fed3bb3c861be1512a0e4e8ee32818493.tar.gz chromium_src-4abde49fed3bb3c861be1512a0e4e8ee32818493.tar.bz2 |
Revert 204487 "Factor out AppLifetimeMonitor."
Was causing BrowserCommandControllerTest.IncognitoModeOnSigninAllowedPrefChange to crash.
> Factor out AppLifetimeMonitor.
>
> AppLifetimeMonitor listens to extension host notifications and observes
> ShellWindowRegistry. It sends out notifications when:
> - an app starts
> - the first shell window opens
> - the last shell window closes
> - the app stops
>
> BUG=
>
> Review URL: https://chromiumcodereview.appspot.com/16412002
TBR=jackhou@chromium.org
Review URL: https://codereview.chromium.org/16554002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_lifetime_monitor_factory.h')
-rw-r--r-- | apps/app_lifetime_monitor_factory.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/apps/app_lifetime_monitor_factory.h b/apps/app_lifetime_monitor_factory.h deleted file mode 100644 index c55ba71..0000000 --- a/apps/app_lifetime_monitor_factory.h +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef APPS_APP_LIFETIME_MONITOR_FACTORY_H_ -#define APPS_APP_LIFETIME_MONITOR_FACTORY_H_ - -#include "base/memory/singleton.h" -#include "components/browser_context_keyed_service/browser_context_keyed_service_factory.h" - -class Profile; - -namespace apps { - -class AppLifetimeMonitor; - -// Singleton that owns all AppLifetimeMonitors and associates them with -// Profiles. Listens for the Profile's destruction notification and cleans up -// the associated AppLifetimeMonitor. -class AppLifetimeMonitorFactory : public BrowserContextKeyedServiceFactory { - public: - static AppLifetimeMonitor* GetForProfile(Profile* profile); - - static AppLifetimeMonitorFactory* GetInstance(); - - private: - friend struct DefaultSingletonTraits<AppLifetimeMonitorFactory>; - - AppLifetimeMonitorFactory(); - virtual ~AppLifetimeMonitorFactory(); - - // BrowserContextKeyedServiceFactory: - virtual BrowserContextKeyedService* BuildServiceInstanceFor( - content::BrowserContext* profile) const OVERRIDE; - virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE; - virtual content::BrowserContext* GetBrowserContextToUse( - content::BrowserContext* context) const OVERRIDE; -}; - -} // namespace apps - -#endif // APPS_APP_LIFETIME_MONITOR_FACTORY_H_ |