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

Unified Diff: chrome/browser/android/blimp/blimp_client_context_factory.cc

Issue 2190753002: Add network setup code to BlimpClientContextImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split-blimp-client-session
Patch Set: Changed to get a SingleThreadTaskRunner in constructor Created 4 years, 5 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: chrome/browser/android/blimp/blimp_client_context_factory.cc
diff --git a/chrome/browser/android/blimp/blimp_client_context_factory.cc b/chrome/browser/android/blimp/blimp_client_context_factory.cc
index 5cea361869eb2d7ddd5e371e1be0b90525da349b..f070d66dc70599e0bdac4d5e49ebfd7d6a267e2e 100644
--- a/chrome/browser/android/blimp/blimp_client_context_factory.cc
+++ b/chrome/browser/android/blimp/blimp_client_context_factory.cc
@@ -9,6 +9,7 @@
#include "blimp/client/public/blimp_client_context.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "content/public/browser/browser_context.h"
+#include "content/public/browser/browser_thread.h"
// static
BlimpClientContextFactory* BlimpClientContextFactory::GetInstance() {
@@ -32,7 +33,9 @@ BlimpClientContextFactory::~BlimpClientContextFactory() {}
KeyedService* BlimpClientContextFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
- return blimp::client::BlimpClientContext::Create();
+ return blimp::client::BlimpClientContext::Create(
+ content::BrowserThread::GetTaskRunnerForThread(
+ content::BrowserThread::IO));
}
content::BrowserContext* BlimpClientContextFactory::GetBrowserContextToUse(
« blimp/client/core/blimp_client_context_impl_unittest.cc ('K') | « blimp/net/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698