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

Unified Diff: blimp/engine/app/blimp_content_browser_client.cc

Issue 2189503004: BlobChannelService is modified to be Mojo Service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into bcs 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/engine/app/blimp_browser_main_parts.cc ('k') | blimp/engine/mojo/blob_channel_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/app/blimp_content_browser_client.cc
diff --git a/blimp/engine/app/blimp_content_browser_client.cc b/blimp/engine/app/blimp_content_browser_client.cc
index 06814faeddb8d220db70ed5a84f5e80855c44e0b..b46470fd00db44d052ef8683f98d9ab35401a912 100644
--- a/blimp/engine/app/blimp_content_browser_client.cc
+++ b/blimp/engine/app/blimp_content_browser_client.cc
@@ -43,13 +43,9 @@ BlimpBrowserContext* BlimpContentBrowserClient::GetBrowserContext() {
void BlimpContentBrowserClient::ExposeInterfacesToRenderer(
shell::InterfaceRegistry* registry,
content::RenderProcessHost* render_process_host) {
- scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner =
- content::BrowserThread::GetTaskRunnerForThread(
- content::BrowserThread::UI);
- registry->AddInterface<mojom::BlobChannel>(
- base::Bind(&BlobChannelService::Create,
- blimp_browser_main_parts_->GetBlobChannelSender()),
- ui_task_runner);
+ registry->AddInterface<mojom::BlobChannel>(base::Bind(
+ &BlobChannelService::BindRequest,
+ base::Unretained(blimp_browser_main_parts_->GetBlobChannelService())));
}
} // namespace engine
« no previous file with comments | « blimp/engine/app/blimp_browser_main_parts.cc ('k') | blimp/engine/mojo/blob_channel_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698