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

Unified Diff: chrome/browser/chromeos/preferences.cc

Issue 543163002: ChromeOS: GetProfileByUser should not be called from Preferences::Init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/preferences.cc
diff --git a/chrome/browser/chromeos/preferences.cc b/chrome/browser/chromeos/preferences.cc
index 06b4030279312c0a73765bc12b9d69b948d3feb6..85118ba236482f7eaac40493cfaf2f209e9a671c 100644
--- a/chrome/browser/chromeos/preferences.cc
+++ b/chrome/browser/chromeos/preferences.cc
@@ -367,8 +367,7 @@ void Preferences::Init(Profile* profile, const user_manager::User* user) {
UserSessionManager* session_manager = UserSessionManager::GetInstance();
DCHECK(session_manager);
- ime_state_ = session_manager->GetDefaultIMEState(
- ProfileHelper::Get()->GetProfileByUser(user_));
+ ime_state_ = session_manager->GetDefaultIMEState(profile);
input_method_manager_->SetState(ime_state_);
// Initialize preferences to currently saved state.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698