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

Side by Side Diff: chrome/browser/ui/app_list/app_list_view_delegate.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/app_list_view_delegate.h" 5 #include "chrome/browser/ui/app_list/app_list_view_delegate.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "apps/custom_launcher_page_contents.h" 9 #include "apps/custom_launcher_page_contents.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 void AppListViewDelegate::SigninManagerShutdown(SigninManagerBase* manager) { 302 void AppListViewDelegate::SigninManagerShutdown(SigninManagerBase* manager) {
303 if (scoped_observer_.IsObserving(manager)) 303 if (scoped_observer_.IsObserving(manager))
304 scoped_observer_.Remove(manager); 304 scoped_observer_.Remove(manager);
305 } 305 }
306 306
307 void AppListViewDelegate::GoogleSigninFailed( 307 void AppListViewDelegate::GoogleSigninFailed(
308 const GoogleServiceAuthError& error) { 308 const GoogleServiceAuthError& error) {
309 SetUpProfileSwitcher(); 309 SetUpProfileSwitcher();
310 } 310 }
311 311
312 void AppListViewDelegate::GoogleSigninSucceeded(const std::string& username, 312 void AppListViewDelegate::GoogleSigninSucceeded(const std::string& account_id,
313 const std::string& username,
313 const std::string& password) { 314 const std::string& password) {
314 SetUpProfileSwitcher(); 315 SetUpProfileSwitcher();
315 } 316 }
316 317
317 void AppListViewDelegate::GoogleSignedOut(const std::string& username) { 318 void AppListViewDelegate::GoogleSignedOut(const std::string& account_id,
319 const std::string& username) {
318 SetUpProfileSwitcher(); 320 SetUpProfileSwitcher();
319 } 321 }
320 322
321 void AppListViewDelegate::OnProfileAdded(const base::FilePath& profile_path) { 323 void AppListViewDelegate::OnProfileAdded(const base::FilePath& profile_path) {
322 SetUpProfileSwitcher(); 324 SetUpProfileSwitcher();
323 } 325 }
324 326
325 void AppListViewDelegate::OnProfileWasRemoved( 327 void AppListViewDelegate::OnProfileWasRemoved(
326 const base::FilePath& profile_path, 328 const base::FilePath& profile_path,
327 const base::string16& profile_name) { 329 const base::string16& profile_name) {
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 614
613 void AppListViewDelegate::AddObserver( 615 void AppListViewDelegate::AddObserver(
614 app_list::AppListViewDelegateObserver* observer) { 616 app_list::AppListViewDelegateObserver* observer) {
615 observers_.AddObserver(observer); 617 observers_.AddObserver(observer);
616 } 618 }
617 619
618 void AppListViewDelegate::RemoveObserver( 620 void AppListViewDelegate::RemoveObserver(
619 app_list::AppListViewDelegateObserver* observer) { 621 app_list::AppListViewDelegateObserver* observer) {
620 observers_.RemoveObserver(observer); 622 observers_.RemoveObserver(observer);
621 } 623 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.h ('k') | chrome/browser/ui/auto_login_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698