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

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

Issue 2201433002: Migrate TabControlFeature from 0.5 to 0.6 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: some more compile error fix 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
« no previous file with comments | « blimp/client/core/blimp_client_context_impl.h ('k') | blimp/client/core/contents/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bfb6ec5848dc94cdc29f7866bf6a874d39417554 100644
--- a/blimp/client/core/blimp_client_context_impl.cc
+++ b/blimp/client/core/blimp_client_context_impl.cc
@@ -9,6 +9,7 @@
#include "base/message_loop/message_loop.h"
#include "base/threading/sequenced_task_runner_handle.h"
#include "blimp/client/core/contents/blimp_contents_impl.h"
+#include "blimp/client/core/contents/blimp_contents_manager.h"
#include "blimp/client/core/session/cross_thread_network_event_observer.h"
#include "blimp/client/public/blimp_client_context_delegate.h"
@@ -37,6 +38,7 @@ BlimpClientContextImpl::BlimpClientContextImpl(
scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner)
: BlimpClientContext(),
io_thread_task_runner_(io_thread_task_runner),
+ blimp_contents_manager_(new BlimpContentsManager),
weak_factory_(this) {
blimp_connection_statistics_ = new BlimpConnectionStatistics();
net_components_.reset(new ClientNetworkComponents(
@@ -66,7 +68,7 @@ void BlimpClientContextImpl::SetDelegate(BlimpClientContextDelegate* delegate) {
std::unique_ptr<BlimpContents> BlimpClientContextImpl::CreateBlimpContents() {
std::unique_ptr<BlimpContents> blimp_contents =
- base::MakeUnique<BlimpContentsImpl>();
+ blimp_contents_manager_->CreateBlimpContents();
delegate_->AttachBlimpContentsHelpers(blimp_contents.get());
return blimp_contents;
}
« no previous file with comments | « blimp/client/core/blimp_client_context_impl.h ('k') | blimp/client/core/contents/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698