OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/macros.h" |
6 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
7 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
8 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.h" | 9 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.h" |
9 #include "chrome/browser/chromeos/login/lock/screen_locker.h" | 10 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
10 #include "chrome/grit/generated_resources.h" | 11 #include "chrome/grit/generated_resources.h" |
11 #include "chromeos/dbus/dbus_thread_manager.h" | 12 #include "chromeos/dbus/dbus_thread_manager.h" |
12 #include "chromeos/dbus/session_manager_client.h" | 13 #include "chromeos/dbus/session_manager_client.h" |
13 #include "chromeos/login/auth/auth_status_consumer.h" | 14 #include "chromeos/login/auth/auth_status_consumer.h" |
14 #include "chromeos/login/auth/user_context.h" | 15 #include "chromeos/login/auth/user_context.h" |
15 #include "components/proximity_auth/screenlock_bridge.h" | 16 #include "components/proximity_auth/screenlock_bridge.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 base::Callback<void(const UserContext&)> callback) { | 123 base::Callback<void(const UserContext&)> callback) { |
123 DCHECK(base::MessageLoopForUI::IsCurrent()); | 124 DCHECK(base::MessageLoopForUI::IsCurrent()); |
124 if (g_reauth_handler) | 125 if (g_reauth_handler) |
125 return false; | 126 return false; |
126 | 127 |
127 g_reauth_handler = new ReauthHandler(callback); | 128 g_reauth_handler = new ReauthHandler(callback); |
128 return g_reauth_handler->Start(); | 129 return g_reauth_handler->Start(); |
129 } | 130 } |
130 | 131 |
131 } // namespace chromeos | 132 } // namespace chromeos |
OLD | NEW |