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