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

Side by Side Diff: chrome/browser/chromeos/language_preferences.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 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 | Annotate | Revision Log
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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/prefs/pref_registry_simple.h"
6 #include "chrome/browser/chromeos/language_preferences.h" 7 #include "chrome/browser/chromeos/language_preferences.h"
7 #include "chrome/browser/prefs/pref_registry_simple.h"
8 #include "chrome/browser/prefs/pref_registry_syncable.h" 8 #include "chrome/browser/prefs/pref_registry_syncable.h"
9 #include "chrome/common/pref_names.h" 9 #include "chrome/common/pref_names.h"
10 #include "grit/generated_resources.h" 10 #include "grit/generated_resources.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 namespace language_prefs { 13 namespace language_prefs {
14 14
15 // --------------------------------------------------------------------------- 15 // ---------------------------------------------------------------------------
16 // For ibus-daemon 16 // For ibus-daemon
17 // --------------------------------------------------------------------------- 17 // ---------------------------------------------------------------------------
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 void RegisterPrefs(PrefRegistrySimple* registry) { 397 void RegisterPrefs(PrefRegistrySimple* registry) {
398 // We use an empty string here rather than a hardware keyboard layout name 398 // We use an empty string here rather than a hardware keyboard layout name
399 // since input_method::GetHardwareInputMethodId() might return a fallback 399 // since input_method::GetHardwareInputMethodId() might return a fallback
400 // layout name if registry->RegisterStringPref(kHardwareKeyboardLayout) 400 // layout name if registry->RegisterStringPref(kHardwareKeyboardLayout)
401 // is not called yet. 401 // is not called yet.
402 registry->RegisterStringPref(kPreferredKeyboardLayout, ""); 402 registry->RegisterStringPref(kPreferredKeyboardLayout, "");
403 } 403 }
404 404
405 } // namespace language_prefs 405 } // namespace language_prefs
406 } // namespace chromeos 406 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698