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 "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_
api.h" | 5 #include "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_
api.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
13 #include "base/numerics/safe_conversions.h" | 13 #include "base/numerics/safe_conversions.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_
crypto_delegate.h" | 16 #include "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_
crypto_delegate.h" |
17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/signin/easy_unlock_screenlock_state_handler.h" | 18 #include "chrome/browser/signin/easy_unlock_screenlock_state_handler.h" |
19 #include "chrome/browser/signin/easy_unlock_service.h" | 19 #include "chrome/browser/signin/easy_unlock_service.h" |
20 #include "chrome/browser/signin/screenlock_bridge.h" | |
21 #include "chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h" | 20 #include "chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h" |
22 #include "chrome/common/extensions/api/easy_unlock_private.h" | 21 #include "chrome/common/extensions/api/easy_unlock_private.h" |
23 #include "chrome/grit/generated_resources.h" | 22 #include "chrome/grit/generated_resources.h" |
24 #include "components/proximity_auth/bluetooth_util.h" | 23 #include "components/proximity_auth/bluetooth_util.h" |
25 #include "components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h" | 24 #include "components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h" |
26 #include "components/proximity_auth/switches.h" | 25 #include "components/proximity_auth/switches.h" |
| 26 #include "components/signin/content/screenlock_bridge.h" |
27 #include "content/public/browser/browser_thread.h" | 27 #include "content/public/browser/browser_thread.h" |
28 #include "content/public/browser/web_contents.h" | 28 #include "content/public/browser/web_contents.h" |
29 #include "extensions/browser/browser_context_keyed_api_factory.h" | 29 #include "extensions/browser/browser_context_keyed_api_factory.h" |
30 #include "ui/base/l10n/l10n_util.h" | 30 #include "ui/base/l10n/l10n_util.h" |
31 #include "ui/gfx/geometry/rect.h" | 31 #include "ui/gfx/geometry/rect.h" |
32 #include "ui/gfx/range/range.h" | 32 #include "ui/gfx/range/range.h" |
33 | 33 |
34 #if defined(OS_CHROMEOS) | 34 #if defined(OS_CHROMEOS) |
35 #include "chrome/browser/chromeos/chromeos_utils.h" | 35 #include "chrome/browser/chromeos/chromeos_utils.h" |
36 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager.
h" | 36 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager.
h" |
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 | 828 |
829 Profile* profile = Profile::FromBrowserContext(browser_context()); | 829 Profile* profile = Profile::FromBrowserContext(browser_context()); |
830 EasyUnlockService::Get(profile) | 830 EasyUnlockService::Get(profile) |
831 ->SetAutoPairingResult(params->result.success, error_message); | 831 ->SetAutoPairingResult(params->result.success, error_message); |
832 | 832 |
833 return true; | 833 return true; |
834 } | 834 } |
835 | 835 |
836 } // namespace api | 836 } // namespace api |
837 } // namespace extensions | 837 } // namespace extensions |
OLD | NEW |