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

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

Issue 1075273002: Handle ListAccount fetches from within the GaiaCookieManagerService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a test post rebase Created 5 years, 8 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
Index: chrome/browser/signin/fake_account_reconcilor.cc
diff --git a/chrome/browser/signin/fake_account_reconcilor.cc b/chrome/browser/signin/fake_account_reconcilor.cc
deleted file mode 100644
index ea1573ef5390d8147271987cd762cf1459ceb837..0000000000000000000000000000000000000000
--- a/chrome/browser/signin/fake_account_reconcilor.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 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/fake_account_reconcilor.h"
-
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/signin/chrome_signin_client_factory.h"
-#include "chrome/browser/signin/gaia_cookie_manager_service_factory.h"
-#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
-#include "chrome/browser/signin/signin_manager_factory.h"
-
-FakeAccountReconcilor::FakeAccountReconcilor(
- ProfileOAuth2TokenService* token_service,
- SigninManagerBase* signin_manager,
- SigninClient* client,
- GaiaCookieManagerService* cookie_manager_service) :
- AccountReconcilor(
- token_service, signin_manager, client, cookie_manager_service) {}
-
-
-// static
-KeyedService* FakeAccountReconcilor::Build(content::BrowserContext* context) {
- Profile* profile = Profile::FromBrowserContext(context);
- AccountReconcilor* reconcilor = new FakeAccountReconcilor(
- ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
- SigninManagerFactory::GetForProfile(profile),
- ChromeSigninClientFactory::GetForProfile(profile),
- GaiaCookieManagerServiceFactory::GetForProfile(profile));
- reconcilor->Initialize(true /* start_reconcile_if_tokens_available */);
- return reconcilor;
-}
-
-void FakeAccountReconcilor::GetAccountsFromCookie(
- GetAccountsFromCookieCallback callback) {
- std::vector<std::pair<std::string, bool> > gaia_accounts;
- callback.Run(GoogleServiceAuthError::AuthErrorNone(), gaia_accounts);
-}
« no previous file with comments | « chrome/browser/signin/fake_account_reconcilor.h ('k') | chrome/browser/signin/fake_gaia_cookie_manager_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698