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

Unified Diff: mojo/services/network/network_service_delegate.cc

Issue 1635603002: Make use of CreateInterfacePtrAndBind() where appropriate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 4 years, 11 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 | « media/mojo/services/mojo_renderer_impl.cc ('k') | mojo/shell/application_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/network_service_delegate.cc
diff --git a/mojo/services/network/network_service_delegate.cc b/mojo/services/network/network_service_delegate.cc
index 74388f1b78403dccefae494195dc77956bbf17b9..ef606fc7ebf7b08a57d3f237c818c5d320803cda 100644
--- a/mojo/services/network/network_service_delegate.cc
+++ b/mojo/services/network/network_service_delegate.cc
@@ -98,13 +98,10 @@ void NetworkServiceDelegate::Initialize(ApplicationImpl* app) {
// apptests are also fairly resistant to being run under gdb on android.
app_->ConnectToService("mojo:filesystem", &files_);
- filesystem::FileSystemClientPtr client;
- binding_.Bind(GetProxy(&client));
-
filesystem::FileError error = filesystem::FileError::FAILED;
filesystem::DirectoryPtr directory;
- files_->OpenFileSystem("origin", GetProxy(&directory), std::move(client),
- Capture(&error));
+ files_->OpenFileSystem("origin", GetProxy(&directory),
+ binding_.CreateInterfacePtrAndBind(), Capture(&error));
files_.WaitForIncomingResponse();
io_worker_thread_.reset(new SQLThread(std::move(directory)));
« no previous file with comments | « media/mojo/services/mojo_renderer_impl.cc ('k') | mojo/shell/application_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698