| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |