| 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 "chrome/browser/chromeos/preferences.h" | 5 #include "chrome/browser/chromeos/preferences.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "ash/autoclick/autoclick_controller.h" | 9 #include "ash/autoclick/autoclick_controller.h" |
| 10 #include "ash/common/accessibility_types.h" |
| 10 #include "ash/common/wm_shell.h" | 11 #include "ash/common/wm_shell.h" |
| 11 #include "ash/display/display_manager.h" | 12 #include "ash/display/display_manager.h" |
| 12 #include "ash/shell.h" | 13 #include "ash/shell.h" |
| 13 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 14 #include "base/i18n/time_formatting.h" | 15 #include "base/i18n/time_formatting.h" |
| 15 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
| 16 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
| 17 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| 18 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
| 19 #include "base/sys_info.h" | 20 #include "base/sys_info.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 43 #include "components/syncable_prefs/pref_service_syncable.h" | 44 #include "components/syncable_prefs/pref_service_syncable.h" |
| 44 #include "components/user_manager/known_user.h" | 45 #include "components/user_manager/known_user.h" |
| 45 #include "components/user_manager/user.h" | 46 #include "components/user_manager/user.h" |
| 46 #include "components/user_manager/user_manager.h" | 47 #include "components/user_manager/user_manager.h" |
| 47 #include "content/public/browser/browser_thread.h" | 48 #include "content/public/browser/browser_thread.h" |
| 48 #include "third_party/cros_system_api/dbus/update_engine/dbus-constants.h" | 49 #include "third_party/cros_system_api/dbus/update_engine/dbus-constants.h" |
| 49 #include "third_party/icu/source/i18n/unicode/timezone.h" | 50 #include "third_party/icu/source/i18n/unicode/timezone.h" |
| 50 #include "ui/base/ime/chromeos/extension_ime_util.h" | 51 #include "ui/base/ime/chromeos/extension_ime_util.h" |
| 51 #include "ui/base/ime/chromeos/ime_keyboard.h" | 52 #include "ui/base/ime/chromeos/ime_keyboard.h" |
| 52 #include "ui/base/ime/chromeos/input_method_manager.h" | 53 #include "ui/base/ime/chromeos/input_method_manager.h" |
| 53 #include "ui/chromeos/accessibility_types.h" | |
| 54 #include "ui/events/event_constants.h" | 54 #include "ui/events/event_constants.h" |
| 55 #include "ui/events/event_utils.h" | 55 #include "ui/events/event_utils.h" |
| 56 #include "url/gurl.h" | 56 #include "url/gurl.h" |
| 57 | 57 |
| 58 namespace chromeos { | 58 namespace chromeos { |
| 59 | 59 |
| 60 static const char kFallbackInputMethodLocale[] = "en-US"; | 60 static const char kFallbackInputMethodLocale[] = "en-US"; |
| 61 | 61 |
| 62 Preferences::Preferences() | 62 Preferences::Preferences() |
| 63 : prefs_(NULL), | 63 : prefs_(NULL), |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 touch_hud_projection_enabled_.SetValue(enabled); | 770 touch_hud_projection_enabled_.SetValue(enabled); |
| 771 } | 771 } |
| 772 | 772 |
| 773 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { | 773 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { |
| 774 if (active_user != user_) | 774 if (active_user != user_) |
| 775 return; | 775 return; |
| 776 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); | 776 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); |
| 777 } | 777 } |
| 778 | 778 |
| 779 } // namespace chromeos | 779 } // namespace chromeos |
| OLD | NEW |