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

Side by Side Diff: chrome/browser/profiles/profile.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: Fix shared build. Created 7 years, 4 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 // This class gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 // From login screen. 286 // From login screen.
287 APP_LOCALE_CHANGED_VIA_LOGIN, 287 APP_LOCALE_CHANGED_VIA_LOGIN,
288 // Source unknown. 288 // Source unknown.
289 APP_LOCALE_CHANGED_VIA_UNKNOWN 289 APP_LOCALE_CHANGED_VIA_UNKNOWN
290 }; 290 };
291 291
292 // Changes application locale for a profile. 292 // Changes application locale for a profile.
293 virtual void ChangeAppLocale( 293 virtual void ChangeAppLocale(
294 const std::string& locale, AppLocaleChangedVia via) = 0; 294 const std::string& locale, AppLocaleChangedVia via) = 0;
295 295
296 // Mark profile creation complete (i.e. initial load complete).
297 virtual void MarkCreated() = 0;
298
296 // Called after login. 299 // Called after login.
297 virtual void OnLogin() = 0; 300 virtual void OnLogin() = 0;
298 301
299 // Creates ChromeOS's EnterpriseExtensionListener. 302 // Creates ChromeOS's EnterpriseExtensionListener.
300 virtual void SetupChromeOSEnterpriseExtensionObserver() = 0; 303 virtual void SetupChromeOSEnterpriseExtensionObserver() = 0;
301 304
302 // Initializes Chrome OS's preferences. 305 // Initializes Chrome OS's preferences.
303 virtual void InitChromeOSPreferences() = 0; 306 virtual void InitChromeOSPreferences() = 0;
307
308 // Select "best match" locale.
309 virtual void RespectLocalePreference() = 0;
310
311 // Sets locale to G+ if use preferences are not loaded.
312 virtual void SetGPlusProfileLocale(const std::string& gplus_locale) = 0;
304 #endif // defined(OS_CHROMEOS) 313 #endif // defined(OS_CHROMEOS)
305 314
306 // Returns the helper object that provides the proxy configuration service 315 // Returns the helper object that provides the proxy configuration service
307 // access to the the proxy configuration possibly defined by preferences. 316 // access to the the proxy configuration possibly defined by preferences.
308 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; 317 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0;
309 318
310 // Returns the Predictor object used for dns prefetch. 319 // Returns the Predictor object used for dns prefetch.
311 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; 320 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0;
312 321
313 // Deletes all network related data since |time|. It deletes transport 322 // Deletes all network related data since |time|. It deletes transport
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 struct hash<Profile*> { 416 struct hash<Profile*> {
408 std::size_t operator()(Profile* const& p) const { 417 std::size_t operator()(Profile* const& p) const {
409 return reinterpret_cast<std::size_t>(p); 418 return reinterpret_cast<std::size_t>(p);
410 } 419 }
411 }; 420 };
412 421
413 } // namespace BASE_HASH_NAMESPACE 422 } // namespace BASE_HASH_NAMESPACE
414 #endif 423 #endif
415 424
416 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 425 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698