| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/signin/profile_identity_provider.h" | 5 #include "chrome/browser/signin/profile_identity_provider.h" |
| 6 | 6 |
| 7 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 7 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
| 8 | 8 |
| 9 #if !defined(OS_ANDROID) | 9 #if !defined(OS_ANDROID) |
| 10 #include "chrome/browser/ui/webui/signin/login_ui_service.h" | 10 #include "chrome/browser/ui/webui/signin/login_ui_service.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 bool ProfileIdentityProvider::RequestLogin() { | 39 bool ProfileIdentityProvider::RequestLogin() { |
| 40 #if defined(OS_ANDROID) | 40 #if defined(OS_ANDROID) |
| 41 return false; | 41 return false; |
| 42 #else | 42 #else |
| 43 login_ui_service_->ShowLoginPopup(); | 43 login_ui_service_->ShowLoginPopup(); |
| 44 return true; | 44 return true; |
| 45 #endif | 45 #endif |
| 46 } | 46 } |
| 47 | 47 |
| 48 void ProfileIdentityProvider::GoogleSigninSucceeded( | 48 void ProfileIdentityProvider::GoogleSigninSucceeded( |
| 49 const std::string& account_id, |
| 49 const std::string& username, | 50 const std::string& username, |
| 50 const std::string& password) { | 51 const std::string& password) { |
| 51 FireOnActiveAccountLogin(); | 52 FireOnActiveAccountLogin(); |
| 52 } | 53 } |
| 53 | 54 |
| 54 void ProfileIdentityProvider::GoogleSignedOut(const std::string& username) { | 55 void ProfileIdentityProvider::GoogleSignedOut(const std::string& account_id, |
| 56 const std::string& username) { |
| 55 FireOnActiveAccountLogout(); | 57 FireOnActiveAccountLogout(); |
| 56 } | 58 } |
| OLD | NEW |