diff options
author | saintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-01 17:44:28 +0000 |
---|---|---|
committer | saintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-01 17:44:28 +0000 |
commit | a189eb230939a522cd8e904519c4e2a1d97510f2 (patch) | |
tree | d48e8c77006600cc20c97a45766d06dcbe790390 /chrome/browser/background | |
parent | e42b0f132c86de281275bc8a53a38b391926c68d (diff) | |
download | chromium_src-a189eb230939a522cd8e904519c4e2a1d97510f2.zip chromium_src-a189eb230939a522cd8e904519c4e2a1d97510f2.tar.gz chromium_src-a189eb230939a522cd8e904519c4e2a1d97510f2.tar.bz2 |
Remove dangling files and clean up gyp.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8763011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112480 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/background')
-rw-r--r-- | chrome/browser/background/background_mode_manager_factory.cc | 34 | ||||
-rw-r--r-- | chrome/browser/background/background_mode_manager_factory.h | 35 |
2 files changed, 0 insertions, 69 deletions
diff --git a/chrome/browser/background/background_mode_manager_factory.cc b/chrome/browser/background/background_mode_manager_factory.cc deleted file mode 100644 index 393a349..0000000 --- a/chrome/browser/background/background_mode_manager_factory.cc +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2011 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. - -#include "chrome/browser/background/background_mode_manager_factory.h" - -#include "base/command_line.h" -#include "chrome/browser/background/background_mode_manager.h" -#include "chrome/browser/profiles/profile.h" -#include "chrome/browser/profiles/profile_dependency_manager.h" - -// static -BackgroundModeManager* BackgroundModeManagerFactory::GetForProfile( - Profile* profile) { - return static_cast<BackgroundModeManager*>( - GetInstance()->GetServiceForProfile(profile, true)); -} - -// static -BackgroundModeManagerFactory* BackgroundModeManagerFactory::GetInstance() { - return Singleton<BackgroundModeManagerFactory>::get(); -} - -BackgroundModeManagerFactory::BackgroundModeManagerFactory() - : ProfileKeyedServiceFactory(ProfileDependencyManager::GetInstance()) { -} - -BackgroundModeManagerFactory::~BackgroundModeManagerFactory() { -} - -ProfileKeyedService* BackgroundModeManagerFactory::BuildServiceInstanceFor( - Profile* profile) const { - return new BackgroundModeManager(profile, CommandLine::ForCurrentProcess()); -} diff --git a/chrome/browser/background/background_mode_manager_factory.h b/chrome/browser/background/background_mode_manager_factory.h deleted file mode 100644 index f4e31fa..0000000 --- a/chrome/browser/background/background_mode_manager_factory.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2011 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 CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_FACTORY_H_ -#define CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_FACTORY_H_ - -#include "base/compiler_specific.h" -#include "base/memory/singleton.h" -#include "chrome/browser/profiles/profile_keyed_service_factory.h" - -class BackgroundModeManager; -class Profile; - -// Singleton that owns all BackgroundModeManagers and associates them with -// Profiles. Listens for the Profile's destruction notification and cleans up -// the associated BackgroundModeManager. -class BackgroundModeManagerFactory : public ProfileKeyedServiceFactory { - public: - static BackgroundModeManager* GetForProfile(Profile* profile); - - static BackgroundModeManagerFactory* GetInstance(); - - private: - friend struct DefaultSingletonTraits<BackgroundModeManagerFactory>; - - BackgroundModeManagerFactory(); - virtual ~BackgroundModeManagerFactory(); - - // ProfileKeyedServiceFactory: - virtual ProfileKeyedService* BuildServiceInstanceFor( - Profile* profile) const OVERRIDE; -}; - -#endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_FACTORY_H_ |