Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc

Issue 552893002: Introduce new chrome.easyUnlock APIs for getting the sign-in challenge and using it to sign-in the … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update docs Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698