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

Side by Side Diff: chrome/browser/chromeos/status/language_menu_button.cc

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/status/language_menu_button.h" 5 #include "chrome/browser/chromeos/status/language_menu_button.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/chromeos/cros/cros_library.h" 15 #include "chrome/browser/chromeos/cros/cros_library.h"
16 #include "chrome/browser/chromeos/cros/keyboard_library.h" 16 #include "chrome/browser/chromeos/cros/keyboard_library.h"
17 #include "chrome/browser/chromeos/input_method/input_method_util.h" 17 #include "chrome/browser/chromeos/input_method/input_method_util.h"
18 #include "chrome/browser/chromeos/language_preferences.h" 18 #include "chrome/browser/chromeos/language_preferences.h"
19 #include "chrome/browser/chromeos/status/status_area_host.h" 19 #include "chrome/browser/chromeos/status/status_area_host.h"
20 #include "chrome/browser/metrics/user_metrics.h" 20 #include "chrome/browser/metrics/user_metrics.h"
21 #include "chrome/browser/pref_service.h" 21 #include "chrome/browser/prefs/pref_service.h"
22 #include "chrome/browser/profile.h" 22 #include "chrome/browser/profile.h"
23 #include "chrome/common/pref_names.h" 23 #include "chrome/common/pref_names.h"
24 #include "grit/generated_resources.h" 24 #include "grit/generated_resources.h"
25 #include "grit/theme_resources.h" 25 #include "grit/theme_resources.h"
26 26
27 // The language menu consists of 3 parts (in this order): 27 // The language menu consists of 3 parts (in this order):
28 // 28 //
29 // (1) input method names. The size of the list is always >= 1. 29 // (1) input method names. The size of the list is always >= 1.
30 // (2) input method properties. This list might be empty. 30 // (2) input method properties. This list might be empty.
31 // (3) "Customize language and input..." button. 31 // (3) "Customize language and input..." button.
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 659
660 void LanguageMenuButton::Observe(NotificationType type, 660 void LanguageMenuButton::Observe(NotificationType type,
661 const NotificationSource& source, 661 const NotificationSource& source,
662 const NotificationDetails& details) { 662 const NotificationDetails& details) {
663 if (type == NotificationType::LOGIN_USER_CHANGED) { 663 if (type == NotificationType::LOGIN_USER_CHANGED) {
664 logged_in_ = true; 664 logged_in_ = true;
665 } 665 }
666 } 666 }
667 667
668 } // namespace chromeos 668 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698