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

Side by Side Diff: chrome/browser/chromeos/login/user_manager.h

Issue 23095006: If user profile doesn't contain language setting, default to his Google account settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment on "list of preferred languages". Created 7 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/login/user.h" 10 #include "chrome/browser/chromeos/login/user.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // Saves user's oauth token status in local state preferences. 202 // Saves user's oauth token status in local state preferences.
203 virtual void SaveUserOAuthStatus( 203 virtual void SaveUserOAuthStatus(
204 const std::string& username, 204 const std::string& username,
205 User::OAuthTokenStatus oauth_token_status) = 0; 205 User::OAuthTokenStatus oauth_token_status) = 0;
206 206
207 // Saves user's displayed name in local state preferences. 207 // Saves user's displayed name in local state preferences.
208 // Ignored If there is no such user. 208 // Ignored If there is no such user.
209 virtual void SaveUserDisplayName(const std::string& username, 209 virtual void SaveUserDisplayName(const std::string& username,
210 const string16& display_name) = 0; 210 const string16& display_name) = 0;
211 211
212 // Updates data upon User Account download.
213 virtual void UpdateUserAccountData(const std::string& username,
214 const string16& display_name,
215 const std::string& locale) = 0;
216
212 // Returns the display name for user |username| if it is known (was 217 // Returns the display name for user |username| if it is known (was
213 // previously set by a |SaveUserDisplayName| call). 218 // previously set by a |SaveUserDisplayName| call).
214 // Otherwise, returns an empty string. 219 // Otherwise, returns an empty string.
215 virtual string16 GetUserDisplayName( 220 virtual string16 GetUserDisplayName(
216 const std::string& username) const = 0; 221 const std::string& username) const = 0;
217 222
218 // Saves user's displayed (non-canonical) email in local state preferences. 223 // Saves user's displayed (non-canonical) email in local state preferences.
219 // Ignored If there is no such user. 224 // Ignored If there is no such user.
220 virtual void SaveUserDisplayEmail(const std::string& username, 225 virtual void SaveUserDisplayEmail(const std::string& username,
221 const std::string& display_email) = 0; 226 const std::string& display_email) = 0;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 ScopedTestUserManager(); 394 ScopedTestUserManager();
390 ~ScopedTestUserManager(); 395 ~ScopedTestUserManager();
391 396
392 private: 397 private:
393 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); 398 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager);
394 }; 399 };
395 400
396 } // namespace chromeos 401 } // namespace chromeos
397 402
398 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ 403 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698