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

Unified Diff: chrome/browser/chromeos/login/oauth_login_manager.cc

Issue 23678007: OAuth2LoginManager+MergeSessionThrottle hardening, multi-profle support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/chromeos/login/oauth_login_manager.cc
diff --git a/chrome/browser/chromeos/login/oauth_login_manager.cc b/chrome/browser/chromeos/login/oauth_login_manager.cc
deleted file mode 100644
index 8ca0456db0fbc56607580e23c2b8cdd27cca9bc7..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/oauth_login_manager.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 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.
-
-#include "chrome/browser/chromeos/login/oauth_login_manager.h"
-
-#include "base/command_line.h"
-#include "chrome/browser/chromeos/login/oauth2_login_manager.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/signin/token_service.h"
-#include "chrome/browser/signin/token_service_factory.h"
-#include "chrome/common/chrome_switches.h"
-#include "content/public/browser/browser_thread.h"
-
-using content::BrowserThread;
-
-namespace chromeos {
-
-// OAuthLoginManager.
-
-// static.
-OAuthLoginManager* OAuthLoginManager::Create(
- OAuthLoginManager::Delegate* delegate) {
- return new OAuth2LoginManager(delegate);
-}
-
-void OAuthLoginManager::CompleteAuthentication() {
- delegate_->OnCompletedAuthentication(user_profile_);
- TokenService* token_service =
- TokenServiceFactory::GetForProfile(user_profile_);
- if (token_service->AreCredentialsValid())
- token_service->StartFetchingTokens();
-}
-
-OAuthLoginManager::OAuthLoginManager(Delegate* delegate)
- : delegate_(delegate),
- user_profile_(NULL),
- restore_strategy_(RESTORE_FROM_COOKIE_JAR),
- state_(SESSION_RESTORE_NOT_STARTED) {
-}
-
-OAuthLoginManager::~OAuthLoginManager() {
-}
-
-} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/oauth_login_manager.h ('k') | chrome/browser/chromeos/login/test_login_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698