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

Unified Diff: chrome/browser/signin/account_tracker_service_factory.cc

Issue 490403002: Revert of Create a new AccountTrackerService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « chrome/browser/signin/account_tracker_service_factory.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/account_tracker_service_factory.cc
diff --git a/chrome/browser/signin/account_tracker_service_factory.cc b/chrome/browser/signin/account_tracker_service_factory.cc
deleted file mode 100644
index 12964277b36926c0629502e1aa124acfe06ec9e7..0000000000000000000000000000000000000000
--- a/chrome/browser/signin/account_tracker_service_factory.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2014 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/signin/account_tracker_service_factory.h"
-
-#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
-#include "components/keyed_service/content/browser_context_dependency_manager.h"
-#include "components/pref_registry/pref_registry_syncable.h"
-#include "components/signin/core/browser/account_tracker_service.h"
-#include "components/signin/core/browser/profile_oauth2_token_service.h"
-
-AccountTrackerServiceFactory::AccountTrackerServiceFactory()
- : BrowserContextKeyedServiceFactory(
- "AccountTrackerServiceFactory",
- BrowserContextDependencyManager::GetInstance()) {
- DependsOn(ProfileOAuth2TokenServiceFactory::GetInstance());
-}
-
-AccountTrackerServiceFactory::~AccountTrackerServiceFactory() {
-}
-
-// static
-AccountTrackerService*
-AccountTrackerServiceFactory::GetForProfile(Profile* profile) {
- return static_cast<AccountTrackerService*>(
- GetInstance()->GetServiceForBrowserContext(profile, true));
-}
-
-// static
-AccountTrackerServiceFactory* AccountTrackerServiceFactory::GetInstance() {
- return Singleton<AccountTrackerServiceFactory>::get();
-}
-
-void AccountTrackerServiceFactory::RegisterProfilePrefs(
- user_prefs::PrefRegistrySyncable* registry) {
- registry->RegisterListPref(
- AccountTrackerService::kAccountInfoPref,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
-}
-
-KeyedService* AccountTrackerServiceFactory::BuildServiceInstanceFor(
- content::BrowserContext* context) const {
- Profile* profile = static_cast<Profile*>(context);
- AccountTrackerService* service = new AccountTrackerService();
- service->Initialize(
- ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
- profile->GetPrefs(),
- profile->GetRequestContext());
- return service;
-}
« no previous file with comments | « chrome/browser/signin/account_tracker_service_factory.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698