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

Unified Diff: components/proximity_auth/cryptauth_enroller_factory_impl.cc

Issue 1308393007: Add CryptAuth managers to EasyUnlockServiceRegular (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows compile Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/proximity_auth/cryptauth_enroller_factory_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/cryptauth_enroller_factory_impl.cc
diff --git a/components/proximity_auth/cryptauth_enroller_factory_impl.cc b/components/proximity_auth/cryptauth_enroller_factory_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b23eefb774477d3c50beeb6ee1805aa543a8328f
--- /dev/null
+++ b/components/proximity_auth/cryptauth_enroller_factory_impl.cc
@@ -0,0 +1,25 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/proximity_auth/cryptauth_enroller_factory_impl.h"
+
+#include "components/proximity_auth/cryptauth/cryptauth_client_impl.h"
+#include "components/proximity_auth/cryptauth/cryptauth_enroller_impl.h"
+#include "components/proximity_auth/cryptauth/secure_message_delegate.h"
+
+namespace proximity_auth {
+
+CryptAuthEnrollerFactoryImpl::CryptAuthEnrollerFactoryImpl(
+ ProximityAuthClient* proximity_auth_client)
+ : proximity_auth_client_(proximity_auth_client) {}
+
+CryptAuthEnrollerFactoryImpl::~CryptAuthEnrollerFactoryImpl() {}
+
+scoped_ptr<CryptAuthEnroller> CryptAuthEnrollerFactoryImpl::CreateInstance() {
+ return make_scoped_ptr(new CryptAuthEnrollerImpl(
+ proximity_auth_client_->CreateCryptAuthClientFactory(),
+ proximity_auth_client_->CreateSecureMessageDelegate()));
+}
+
+} // namespace proximity_auth
« no previous file with comments | « components/proximity_auth/cryptauth_enroller_factory_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698