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

Unified Diff: content/public/test/test_mojo_app.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
« no previous file with comments | « content/public/test/test_mojo_app.h ('k') | content/public/test/test_mojo_service.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_mojo_app.cc
diff --git a/content/public/test/test_mojo_app.cc b/content/public/test/test_mojo_app.cc
index 4fb1b271d4479272f9b91bee70cffdc2ab409373..7c5fdb94c1bddb7c2a825735a87c0524a72d11d2 100644
--- a/content/public/test/test_mojo_app.cc
+++ b/content/public/test/test_mojo_app.cc
@@ -22,7 +22,7 @@ TestMojoApp::~TestMojoApp() {
}
bool TestMojoApp::AcceptConnection(mojo::Connection* connection) {
- requestor_url_ = GURL(connection->GetRemoteApplicationURL());
+ requestor_name_ = connection->GetRemoteApplicationName();
connection->AddInterface<TestMojoService>(this);
return true;
}
@@ -38,8 +38,8 @@ void TestMojoApp::DoSomething(const DoSomethingCallback& callback) {
base::MessageLoop::current()->QuitWhenIdle();
}
-void TestMojoApp::GetRequestorURL(const GetRequestorURLCallback& callback) {
- callback.Run(requestor_url_.spec());
+void TestMojoApp::GetRequestorName(const GetRequestorNameCallback& callback) {
+ callback.Run(requestor_name_);
}
} // namespace content
« no previous file with comments | « content/public/test/test_mojo_app.h ('k') | content/public/test/test_mojo_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698