Index: blimp/client/core/blimp_client_context_impl.cc |
diff --git a/blimp/client/core/blimp_client_context_impl.cc b/blimp/client/core/blimp_client_context_impl.cc |
index 076fc78f34ea64ed7f5f8af03e5d9688d9169896..f2860b1ef3f7c31ed0fa01e8a17318e5de1c530e 100644 |
--- a/blimp/client/core/blimp_client_context_impl.cc |
+++ b/blimp/client/core/blimp_client_context_impl.cc |
@@ -60,6 +60,11 @@ BlimpClientContextImpl::~BlimpClientContextImpl() { |
io_thread_task_runner_->DeleteSoon(FROM_HERE, net_components_.release()); |
} |
+void BlimpClientContextImpl::Connect() { |
+ if (authenticator_) |
+ authenticator_->Connect(); |
nyquist
2016/08/10 01:20:33
If there is no authenticator_ if you have the crea
xingliu
2016/08/10 21:03:15
Done. Now do lazy init and create IdentityProvider
|
+} |
+ |
void BlimpClientContextImpl::SetDelegate(BlimpClientContextDelegate* delegate) { |
delegate_ = delegate; |
} |
@@ -71,6 +76,12 @@ std::unique_ptr<BlimpContents> BlimpClientContextImpl::CreateBlimpContents() { |
return blimp_contents; |
} |
+void BlimpClientContextImpl::CreateAuthenticator( |
+ std::unique_ptr<IdentityProvider> identity_provider) { |
+ authenticator_ = base::MakeUnique<Authenticator>( |
+ std::move(identity_provider)); |
+} |
+ |
void BlimpClientContextImpl::OnConnected() {} |
void BlimpClientContextImpl::OnDisconnected(int result) {} |