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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_
bluetooth_util.h" | 11 #include "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_
bluetooth_util.h" |
12 #include "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_
crypto_delegate.h" | 12 #include "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_
crypto_delegate.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/signin/easy_unlock_screenlock_state_handler.h" | 14 #include "chrome/browser/signin/easy_unlock_screenlock_state_handler.h" |
15 #include "chrome/browser/signin/easy_unlock_service.h" | 15 #include "chrome/browser/signin/easy_unlock_service.h" |
16 #include "chrome/common/extensions/api/easy_unlock_private.h" | 16 #include "chrome/common/extensions/api/easy_unlock_private.h" |
| 17 #include "chrome/grit/generated_resources.h" |
17 #include "extensions/browser/browser_context_keyed_api_factory.h" | 18 #include "extensions/browser/browser_context_keyed_api_factory.h" |
18 #include "grit/generated_resources.h" | |
19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
20 | 20 |
21 #if defined(OS_CHROMEOS) | 21 #if defined(OS_CHROMEOS) |
22 #include "chrome/browser/chromeos/chromeos_utils.h" | 22 #include "chrome/browser/chromeos/chromeos_utils.h" |
23 #endif | 23 #endif |
24 | 24 |
25 namespace extensions { | 25 namespace extensions { |
26 namespace api { | 26 namespace api { |
27 | 27 |
28 namespace { | 28 namespace { |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 bool EasyUnlockPrivateGetRemoteDevicesFunction::RunSync() { | 519 bool EasyUnlockPrivateGetRemoteDevicesFunction::RunSync() { |
520 Profile* profile = Profile::FromBrowserContext(browser_context()); | 520 Profile* profile = Profile::FromBrowserContext(browser_context()); |
521 const base::ListValue* devices = | 521 const base::ListValue* devices = |
522 EasyUnlockService::Get(profile)->GetRemoteDevices(); | 522 EasyUnlockService::Get(profile)->GetRemoteDevices(); |
523 SetResult(devices ? devices->DeepCopy() : new base::ListValue()); | 523 SetResult(devices ? devices->DeepCopy() : new base::ListValue()); |
524 return true; | 524 return true; |
525 } | 525 } |
526 | 526 |
527 } // namespace api | 527 } // namespace api |
528 } // namespace extensions | 528 } // namespace extensions |
OLD | NEW |