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" |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 } | 539 } |
540 | 540 |
541 bool EasyUnlockPrivateGetRemoteDevicesFunction::RunSync() { | 541 bool EasyUnlockPrivateGetRemoteDevicesFunction::RunSync() { |
542 Profile* profile = Profile::FromBrowserContext(browser_context()); | 542 Profile* profile = Profile::FromBrowserContext(browser_context()); |
543 const base::ListValue* devices = | 543 const base::ListValue* devices = |
544 EasyUnlockService::Get(profile)->GetRemoteDevices(); | 544 EasyUnlockService::Get(profile)->GetRemoteDevices(); |
545 SetResult(devices ? devices->DeepCopy() : new base::ListValue()); | 545 SetResult(devices ? devices->DeepCopy() : new base::ListValue()); |
546 return true; | 546 return true; |
547 } | 547 } |
548 | 548 |
| 549 EasyUnlockPrivateGetSignInChallengeFunction:: |
| 550 EasyUnlockPrivateGetSignInChallengeFunction() { |
| 551 } |
| 552 |
| 553 EasyUnlockPrivateGetSignInChallengeFunction:: |
| 554 ~EasyUnlockPrivateGetSignInChallengeFunction() { |
| 555 } |
| 556 |
| 557 bool EasyUnlockPrivateGetSignInChallengeFunction::RunAsync() { |
| 558 SetError("Not implemented"); |
| 559 SendResponse(false); |
| 560 return true; |
| 561 } |
| 562 |
| 563 EasyUnlockPrivateTrySignInSecretFunction:: |
| 564 EasyUnlockPrivateTrySignInSecretFunction() { |
| 565 } |
| 566 |
| 567 EasyUnlockPrivateTrySignInSecretFunction:: |
| 568 ~EasyUnlockPrivateTrySignInSecretFunction() { |
| 569 } |
| 570 |
| 571 bool EasyUnlockPrivateTrySignInSecretFunction::RunAsync() { |
| 572 SetError("Not implemented"); |
| 573 SendResponse(false); |
| 574 return true; |
| 575 } |
| 576 |
549 } // namespace api | 577 } // namespace api |
550 } // namespace extensions | 578 } // namespace extensions |
OLD | NEW |