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

Side by Side Diff: chrome/browser/signin/profile_identity_provider.cc

Issue 502343002: Add account_id to signin manager notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@isauth
Patch Set: Fix android trybots Created 6 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/profile_identity_provider.h ('k') | chrome/browser/signin/signin_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698