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

Side by Side Diff: chrome/browser/profiles/profiles_state.cc

Issue 297853006: Make sure auth error reporting handles guest mode correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 6 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/profiles/profiles_state.h" 5 #include "chrome/browser/profiles/profiles_state.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/prefs/pref_registry_simple.h" 8 #include "base/prefs/pref_registry_simple.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void UpdateGaiaProfilePhotoIfNeeded(Profile* profile) { 115 void UpdateGaiaProfilePhotoIfNeeded(Profile* profile) {
116 // If the --google-profile-info flag isn't used, then the 116 // If the --google-profile-info flag isn't used, then the
117 // GAIAInfoUpdateService isn't initialized, and we can't download the picture. 117 // GAIAInfoUpdateService isn't initialized, and we can't download the picture.
118 if (!switches::IsGoogleProfileInfo()) 118 if (!switches::IsGoogleProfileInfo())
119 return; 119 return;
120 120
121 DCHECK(profile); 121 DCHECK(profile);
122 GAIAInfoUpdateServiceFactory::GetInstance()->GetForProfile(profile)->Update(); 122 GAIAInfoUpdateServiceFactory::GetInstance()->GetForProfile(profile)->Update();
123 } 123 }
124 124
125 SigninErrorController* GetSigninErrorController(Profile* profile) {
126 ProfileOAuth2TokenService* token_service =
127 ProfileOAuth2TokenServiceFactory::GetForProfile(profile);
128 return token_service ? token_service->signin_error_controller() : NULL;
129 }
130
125 } // namespace profiles 131 } // namespace profiles
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profiles_state.h ('k') | chrome/browser/ui/views/profiles/new_avatar_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698