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

Unified Diff: blimp/client/core/blimp_client_context_impl.cc

Issue 2204223005: Blimp OAuth2 token retreival on application start up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build config. Created 4 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
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) {}

Powered by Google App Engine
This is Rietveld 408576698