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/login/screen_locker.h" | 5 #include "chrome/browser/chromeos/login/screen_locker.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
17 #include "base/timer.h" | 17 #include "base/timer.h" |
18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
19 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | |
20 #include "chrome/browser/chromeos/dbus/power_manager_client.h" | |
21 #include "chrome/browser/chromeos/dbus/session_manager_client.h" | |
22 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 19 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
23 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 20 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
24 #include "chrome/browser/chromeos/input_method/xkeyboard.h" | 21 #include "chrome/browser/chromeos/input_method/xkeyboard.h" |
25 #include "chrome/browser/chromeos/language_preferences.h" | 22 #include "chrome/browser/chromeos/language_preferences.h" |
26 #include "chrome/browser/chromeos/login/authenticator.h" | 23 #include "chrome/browser/chromeos/login/authenticator.h" |
27 #include "chrome/browser/chromeos/login/login_performer.h" | 24 #include "chrome/browser/chromeos/login/login_performer.h" |
28 #include "chrome/browser/chromeos/login/login_utils.h" | 25 #include "chrome/browser/chromeos/login/login_utils.h" |
29 #include "chrome/browser/chromeos/login/user_manager.h" | 26 #include "chrome/browser/chromeos/login/user_manager.h" |
30 #include "chrome/browser/chromeos/login/webui_screen_locker.h" | 27 #include "chrome/browser/chromeos/login/webui_screen_locker.h" |
31 #include "chrome/browser/profiles/profile.h" | 28 #include "chrome/browser/profiles/profile.h" |
32 #include "chrome/browser/profiles/profile_manager.h" | 29 #include "chrome/browser/profiles/profile_manager.h" |
33 #include "chrome/browser/signin/signin_manager.h" | 30 #include "chrome/browser/signin/signin_manager.h" |
34 #include "chrome/browser/signin/signin_manager_factory.h" | 31 #include "chrome/browser/signin/signin_manager_factory.h" |
35 #include "chrome/browser/sync/profile_sync_service.h" | 32 #include "chrome/browser/sync/profile_sync_service.h" |
36 #include "chrome/browser/sync/profile_sync_service_factory.h" | 33 #include "chrome/browser/sync/profile_sync_service_factory.h" |
37 #include "chrome/browser/ui/browser.h" | 34 #include "chrome/browser/ui/browser.h" |
38 #include "chrome/browser/ui/browser_list.h" | 35 #include "chrome/browser/ui/browser_list.h" |
39 #include "chrome/browser/ui/browser_window.h" | 36 #include "chrome/browser/ui/browser_window.h" |
40 #include "chrome/common/chrome_notification_types.h" | 37 #include "chrome/common/chrome_notification_types.h" |
41 #include "chrome/common/chrome_switches.h" | 38 #include "chrome/common/chrome_switches.h" |
| 39 #include "chromeos/dbus/dbus_thread_manager.h" |
| 40 #include "chromeos/dbus/power_manager_client.h" |
| 41 #include "chromeos/dbus/session_manager_client.h" |
42 #include "content/public/browser/browser_thread.h" | 42 #include "content/public/browser/browser_thread.h" |
43 #include "content/public/browser/notification_service.h" | 43 #include "content/public/browser/notification_service.h" |
44 #include "content/public/browser/user_metrics.h" | 44 #include "content/public/browser/user_metrics.h" |
45 #include "googleurl/src/gurl.h" | 45 #include "googleurl/src/gurl.h" |
46 #include "grit/generated_resources.h" | 46 #include "grit/generated_resources.h" |
47 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" | 47 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" |
48 #include "ui/base/l10n/l10n_util.h" | 48 #include "ui/base/l10n/l10n_util.h" |
49 | 49 |
50 using content::BrowserThread; | 50 using content::BrowserThread; |
51 using content::UserMetricsAction; | 51 using content::UserMetricsAction; |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 bool state = true; | 454 bool state = true; |
455 content::NotificationService::current()->Notify( | 455 content::NotificationService::current()->Notify( |
456 chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED, | 456 chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED, |
457 content::Source<ScreenLocker>(this), | 457 content::Source<ScreenLocker>(this), |
458 content::Details<bool>(&state)); | 458 content::Details<bool>(&state)); |
459 DBusThreadManager::Get()->GetPowerManagerClient()-> | 459 DBusThreadManager::Get()->GetPowerManagerClient()-> |
460 NotifyScreenLockCompleted(); | 460 NotifyScreenLockCompleted(); |
461 } | 461 } |
462 | 462 |
463 } // namespace chromeos | 463 } // namespace chromeos |
OLD | NEW |