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

Unified Diff: content/public/browser/utility_process_mojo_client.h

Issue 2766263009: Convert content ConnectionFilter to OnBindInterface (Closed)
Patch Set: . Created 3 years, 8 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 | « content/public/browser/utility_process_host.h ('k') | content/public/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/utility_process_mojo_client.h
diff --git a/content/public/browser/utility_process_mojo_client.h b/content/public/browser/utility_process_mojo_client.h
index 35ff7fe516b7ffd172ac001dee2c3d6c780329b5..32c07f8d2541a15ff3c96c770d31fef2cef9f0bb 100644
--- a/content/public/browser/utility_process_mojo_client.h
+++ b/content/public/browser/utility_process_mojo_client.h
@@ -124,8 +124,8 @@ class UtilityProcessMojoClient {
#endif // defined(OS_WIN)
private:
- // Starts the utility process and connects to the remote Mojo service.
- void StartOnIOThread(const std::string& mojo_interface_name,
+ // Starts the utility process and binds the specified interface.
+ void StartOnIOThread(const std::string& interface_name,
mojo::ScopedMessagePipeHandle interface_pipe) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
@@ -146,8 +146,7 @@ class UtilityProcessMojoClient {
utility_host_->Start();
- utility_host_->GetRemoteInterfaces()->GetInterface(
- mojo_interface_name, std::move(interface_pipe));
+ utility_host_->BindInterface(interface_name, std::move(interface_pipe));
}
// Properties of the utility process.
« no previous file with comments | « content/public/browser/utility_process_host.h ('k') | content/public/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698