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

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

Issue 1055863002: ChromeOS: switch UI language before apps are loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_IMPL_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 static int create_readme_delay_ms; 158 static int create_readme_delay_ms;
159 159
160 ProfileImpl(const base::FilePath& path, 160 ProfileImpl(const base::FilePath& path,
161 Delegate* delegate, 161 Delegate* delegate,
162 CreateMode create_mode, 162 CreateMode create_mode,
163 base::SequencedTaskRunner* sequenced_task_runner); 163 base::SequencedTaskRunner* sequenced_task_runner);
164 164
165 // Does final initialization. Should be called after prefs were loaded. 165 // Does final initialization. Should be called after prefs were loaded.
166 void DoFinalInit(); 166 void DoFinalInit();
167 167
168 // Check |success| and proceed to SwitchUILanguage.
169 void OnPrefsLoaded(bool success);
170
171 // Switches UI language if possible.
172 void SwitchUILanguage();
173
168 // Does final prefs initialization and calls Init(). 174 // Does final prefs initialization and calls Init().
169 void OnPrefsLoaded(bool success); 175 void OnLanguageSwitched();
170 176
171 #if defined(ENABLE_SESSION_SERVICE) 177 #if defined(ENABLE_SESSION_SERVICE)
172 void StopCreateSessionServiceTimer(); 178 void StopCreateSessionServiceTimer();
173 179
174 void EnsureSessionServiceCreated(); 180 void EnsureSessionServiceCreated();
175 #endif 181 #endif
176 182
177 183
178 void EnsureRequestContextCreated() { 184 void EnsureRequestContextCreated() {
179 GetRequestContext(); 185 GetRequestContext();
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // components/keyed_service/content/browser_context_keyed_service_factory.* 280 // components/keyed_service/content/browser_context_keyed_service_factory.*
275 281
276 Profile::Delegate* delegate_; 282 Profile::Delegate* delegate_;
277 283
278 chrome_browser_net::Predictor* predictor_; 284 chrome_browser_net::Predictor* predictor_;
279 285
280 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 286 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
281 }; 287 };
282 288
283 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 289 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698