| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |