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