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

Side by Side Diff: chrome/browser/profiles/profile.h

Issue 1055863002: ChromeOS: switch UI language before apps are loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 5 years, 8 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 // Changes application locale for a profile. 272 // Changes application locale for a profile.
273 virtual void ChangeAppLocale( 273 virtual void ChangeAppLocale(
274 const std::string& locale, AppLocaleChangedVia via) = 0; 274 const std::string& locale, AppLocaleChangedVia via) = 0;
275 275
276 // Called after login. 276 // Called after login.
277 virtual void OnLogin() = 0; 277 virtual void OnLogin() = 0;
278 278
279 // Initializes Chrome OS's preferences. 279 // Initializes Chrome OS's preferences.
280 virtual void InitChromeOSPreferences() = 0; 280 virtual void InitChromeOSPreferences() = 0;
281
282 // This hook interrupts initialization flow.
robliao 2015/04/13 17:32:30 It seems what we really want to do is wait for all
gab 2015/04/13 17:44:57 We have the concept of a PrefFilter which can be a
robliao 2015/04/13 17:49:38 This could be make asynchronous, but I would rathe
Alexander Alekseev 2015/04/14 14:20:44 Hmm. What do you mean? UI language switch means c
robliao 2015/04/14 17:33:20 I guess the main question here is why does the cur
Alexander Alekseev 2015/04/14 18:01:15 ChromeOS signin UI flow is like this: 1) We usuall
robliao 2015/04/15 22:07:29 May I suggest this structure then? The UserSession
283 // It will be called from OnPrefsLoaded() on successful load,
284 // and it must call given closure to proceed profile initialization.
285 // This is needed to switch UI language before apps are initialized.
286 virtual void SetOnPrefsLoadedHook(
287 const base::Callback<void(Profile*, const base::Closure&)>& callback) = 0;
281 #endif // defined(OS_CHROMEOS) 288 #endif // defined(OS_CHROMEOS)
282 289
283 // Returns the helper object that provides the proxy configuration service 290 // Returns the helper object that provides the proxy configuration service
284 // access to the the proxy configuration possibly defined by preferences. 291 // access to the the proxy configuration possibly defined by preferences.
285 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; 292 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0;
286 293
287 // Returns the Predictor object used for dns prefetch. 294 // Returns the Predictor object used for dns prefetch.
288 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; 295 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0;
289 296
290 // Returns the DevToolsNetworkController for this profile. 297 // Returns the DevToolsNetworkController for this profile.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 407
401 DISALLOW_COPY_AND_ASSIGN(Profile); 408 DISALLOW_COPY_AND_ASSIGN(Profile);
402 }; 409 };
403 410
404 // The comparator for profile pointers as key in a map. 411 // The comparator for profile pointers as key in a map.
405 struct ProfileCompare { 412 struct ProfileCompare {
406 bool operator()(Profile* a, Profile* b) const; 413 bool operator()(Profile* a, Profile* b) const;
407 }; 414 };
408 415
409 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 416 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698