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

Side by Side Diff: chrome/browser/ui/app_list/chrome_signin_delegate.cc

Issue 12502017: signin: pull basic SigninManager functionality into new SigninManagerBase class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deal with new enterprise_platform_keys_private_api Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/app_list/chrome_signin_delegate.h" 5 #include "chrome/browser/ui/app_list/chrome_signin_delegate.h"
6 6
7 #include "chrome/browser/extensions/extension_service.h" 7 #include "chrome/browser/extensions/extension_service.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/signin/signin_manager.h" 9 #include "chrome/browser/signin/signin_manager.h"
10 #include "chrome/browser/signin/signin_manager_factory.h" 10 #include "chrome/browser/signin/signin_manager_factory.h"
11 #include "chrome/browser/ui/browser_finder.h" 11 #include "chrome/browser/ui/browser_finder.h"
12 #include "chrome/browser/ui/browser_navigator.h" 12 #include "chrome/browser/ui/browser_navigator.h"
13 #include "chrome/browser/ui/chrome_pages.h" 13 #include "chrome/browser/ui/chrome_pages.h"
14 #include "chrome/browser/ui/extensions/application_launch.h" 14 #include "chrome/browser/ui/extensions/application_launch.h"
15 #include "chrome/browser/ui/host_desktop.h" 15 #include "chrome/browser/ui/host_desktop.h"
16 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" 16 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h"
17 #include "chrome/common/extensions/extension_constants.h" 17 #include "chrome/common/extensions/extension_constants.h"
18 #include "content/public/common/page_transition_types.h" 18 #include "content/public/common/page_transition_types.h"
19 #include "grit/chromium_strings.h" 19 #include "grit/chromium_strings.h"
20 #include "grit/generated_resources.h" 20 #include "grit/generated_resources.h"
21 #include "ui/app_list/signin_delegate_observer.h" 21 #include "ui/app_list/signin_delegate_observer.h"
22 #include "ui/base/resource/resource_bundle.h" 22 #include "ui/base/resource/resource_bundle.h"
23 23
24 namespace { 24 namespace {
25 25
26 SigninManager* GetSigninManager(Profile* profile) { 26 SigninManagerBase* GetSigninManager(Profile* profile) {
27 return SigninManagerFactory::GetForProfile(profile); 27 return SigninManagerFactory::GetForProfile(profile);
28 } 28 }
29 29
30 } // namespace 30 } // namespace
31 31
32 ChromeSigninDelegate::ChromeSigninDelegate(Profile* profile) 32 ChromeSigninDelegate::ChromeSigninDelegate(Profile* profile)
33 : profile_(profile) {} 33 : profile_(profile) {}
34 34
35 bool ChromeSigninDelegate::NeedSignin() { 35 bool ChromeSigninDelegate::NeedSignin() {
36 #if defined(OS_CHROMEOS) 36 #if defined(OS_CHROMEOS)
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 void ChromeSigninDelegate::GaiaCredentialsValid() {} 103 void ChromeSigninDelegate::GaiaCredentialsValid() {}
104 104
105 ChromeSigninDelegate::~ChromeSigninDelegate() {} 105 ChromeSigninDelegate::~ChromeSigninDelegate() {}
106 106
107 void ChromeSigninDelegate::SigninFailed(const GoogleServiceAuthError& error) {} 107 void ChromeSigninDelegate::SigninFailed(const GoogleServiceAuthError& error) {}
108 108
109 void ChromeSigninDelegate::SigninSuccess() { 109 void ChromeSigninDelegate::SigninSuccess() {
110 NotifySigninSuccess(); 110 NotifySigninSuccess();
111 } 111 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/test_profile_sync_service.cc ('k') | chrome/browser/ui/auto_login_prompter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698