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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_persistence.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 #include "chrome/browser/chromeos/input_method/input_method_persistence.h" 5 #include "chrome/browser/chromeos/input_method/input_method_persistence.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/prefs/pref_service.h"
9 #include "base/prefs/scoped_user_pref_update.h"
10 #include "base/sys_info.h" 8 #include "base/sys_info.h"
11 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/chromeos/input_method/input_method_util.h" 10 #include "chrome/browser/chromeos/input_method/input_method_util.h"
13 #include "chrome/browser/chromeos/language_preferences.h" 11 #include "chrome/browser/chromeos/language_preferences.h"
14 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/profiles/profile_manager.h" 13 #include "chrome/browser/profiles/profile_manager.h"
16 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
15 #include "components/prefs/pref_service.h"
16 #include "components/prefs/scoped_user_pref_update.h"
17 17
18 namespace chromeos { 18 namespace chromeos {
19 namespace input_method { 19 namespace input_method {
20 namespace { 20 namespace {
21 21
22 void PersistSystemInputMethod(const std::string& input_method) { 22 void PersistSystemInputMethod(const std::string& input_method) {
23 if (!g_browser_process || !g_browser_process->local_state()) 23 if (!g_browser_process || !g_browser_process->local_state())
24 return; 24 return;
25 25
26 g_browser_process->local_state()->SetString( 26 g_browser_process->local_state()->SetString(
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 } 153 }
154 154
155 void SetUserLRUInputMethodPreferenceForTesting(const std::string& username, 155 void SetUserLRUInputMethodPreferenceForTesting(const std::string& username,
156 const std::string& input_method, 156 const std::string& input_method,
157 PrefService* const local_state) { 157 PrefService* const local_state) {
158 SetUserLRUInputMethodPreference(username, input_method, local_state); 158 SetUserLRUInputMethodPreference(username, input_method, local_state);
159 } 159 }
160 160
161 } // namespace input_method 161 } // namespace input_method
162 } // namespace chromeos 162 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698