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

Unified Diff: content/browser/mojo/mojo_app_connection_impl.cc

Issue 1743473002: Change Mojo URLs to structured names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@18collapse
Patch Set: . Created 4 years, 10 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: content/browser/mojo/mojo_app_connection_impl.cc
diff --git a/content/browser/mojo/mojo_app_connection_impl.cc b/content/browser/mojo/mojo_app_connection_impl.cc
index 083a1f9c80a215f2db60dc3fead67362514f2ba2..196261b1c2852b3bdc285b770c66814e01471a36 100644
--- a/content/browser/mojo/mojo_app_connection_impl.cc
+++ b/content/browser/mojo/mojo_app_connection_impl.cc
@@ -21,16 +21,17 @@ void OnGotInstanceID(uint32_t remote_id) {}
// static
scoped_ptr<MojoAppConnection> MojoAppConnection::Create(
- const GURL& url,
- const GURL& requestor_url) {
+ const std::string& name,
+ const std::string& requestor_name) {
return scoped_ptr<MojoAppConnection>(
- new MojoAppConnectionImpl(url, requestor_url));
+ new MojoAppConnectionImpl(name, requestor_name));
}
-MojoAppConnectionImpl::MojoAppConnectionImpl(const GURL& url,
- const GURL& requestor_url) {
+MojoAppConnectionImpl::MojoAppConnectionImpl(
+ const std::string& name,
+ const std::string& requestor_name) {
MojoShellContext::ConnectToApplication(
- url, requestor_url, mojo::GetProxy(&interfaces_),
+ name, requestor_name, mojo::GetProxy(&interfaces_),
mojo::shell::mojom::InterfaceProviderPtr(),
base::Bind(&OnGotInstanceID));
}

Powered by Google App Engine
This is Rietveld 408576698