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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index dcdd6796655934fc433b4d3b19ad7f092ef5ff3c..57dc7306804ca658aa5b2aaf6fb5bb9358e127ff 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -278,6 +278,13 @@ class Profile : public content::BrowserContext {
// Initializes Chrome OS's preferences.
virtual void InitChromeOSPreferences() = 0;
+
+ // 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
+ // It will be called from OnPrefsLoaded() on successful load,
+ // and it must call given closure to proceed profile initialization.
+ // This is needed to switch UI language before apps are initialized.
+ virtual void SetOnPrefsLoadedHook(
+ const base::Callback<void(Profile*, const base::Closure&)>& callback) = 0;
#endif // defined(OS_CHROMEOS)
// Returns the helper object that provides the proxy configuration service

Powered by Google App Engine
This is Rietveld 408576698