OLD | NEW |
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/login/user_manager.h" | 5 #include "chrome/browser/chromeos/login/user_manager.h" |
6 | 6 |
7 #include "app/resource_bundle.h" | |
8 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
9 #include "base/file_path.h" | 8 #include "base/file_path.h" |
10 #include "base/file_util.h" | 9 #include "base/file_util.h" |
11 #include "base/logging.h" | 10 #include "base/logging.h" |
12 #include "base/nss_util.h" | 11 #include "base/nss_util.h" |
13 #include "base/path_service.h" | 12 #include "base/path_service.h" |
14 #include "base/string_util.h" | 13 #include "base/string_util.h" |
15 #include "base/time.h" | 14 #include "base/time.h" |
16 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
17 #include "base/values.h" | 16 #include "base/values.h" |
18 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
19 #include "chrome/browser/browser_thread.h" | 18 #include "chrome/browser/browser_thread.h" |
20 #include "chrome/browser/chromeos/cros/cros_library.h" | 19 #include "chrome/browser/chromeos/cros/cros_library.h" |
21 #include "chrome/browser/chromeos/cros/input_method_library.h" | 20 #include "chrome/browser/chromeos/cros/input_method_library.h" |
22 #include "chrome/browser/chromeos/login/ownership_service.h" | 21 #include "chrome/browser/chromeos/login/ownership_service.h" |
23 #include "chrome/browser/chromeos/user_cros_settings_provider.h" | 22 #include "chrome/browser/chromeos/user_cros_settings_provider.h" |
24 #include "chrome/browser/chromeos/wm_ipc.h" | 23 #include "chrome/browser/chromeos/wm_ipc.h" |
25 #include "chrome/browser/defaults.h" | 24 #include "chrome/browser/defaults.h" |
26 #include "chrome/browser/prefs/pref_service.h" | 25 #include "chrome/browser/prefs/pref_service.h" |
27 #include "chrome/common/chrome_paths.h" | 26 #include "chrome/common/chrome_paths.h" |
28 #include "chrome/common/notification_service.h" | 27 #include "chrome/common/notification_service.h" |
29 #include "chrome/common/notification_type.h" | 28 #include "chrome/common/notification_type.h" |
30 #include "gfx/codec/png_codec.h" | 29 #include "gfx/codec/png_codec.h" |
31 #include "grit/theme_resources.h" | 30 #include "grit/theme_resources.h" |
| 31 #include "ui/base/resource/resource_bundle.h" |
32 | 32 |
33 namespace chromeos { | 33 namespace chromeos { |
34 | 34 |
35 namespace { | 35 namespace { |
36 | 36 |
37 // A vector pref of the users who have logged into the device. | 37 // A vector pref of the users who have logged into the device. |
38 const char kLoggedInUsers[] = "LoggedInUsers"; | 38 const char kLoggedInUsers[] = "LoggedInUsers"; |
39 // A dictionary that maps usernames to file paths to their images. | 39 // A dictionary that maps usernames to file paths to their images. |
40 const char kUserImages[] = "UserImages"; | 40 const char kUserImages[] = "UserImages"; |
41 | 41 |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 void UserManager::Observe(NotificationType type, | 448 void UserManager::Observe(NotificationType type, |
449 const NotificationSource& source, | 449 const NotificationSource& source, |
450 const NotificationDetails& details) { | 450 const NotificationDetails& details) { |
451 if (type == NotificationType::OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED) { | 451 if (type == NotificationType::OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED) { |
452 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, | 452 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, |
453 NewRunnableFunction(&CheckOwnership)); | 453 NewRunnableFunction(&CheckOwnership)); |
454 } | 454 } |
455 } | 455 } |
456 | 456 |
457 } // namespace chromeos | 457 } // namespace chromeos |
OLD | NEW |