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

Unified Diff: components/html_viewer/html_frame_apptest.cc

Issue 1681813002: Rename Connection::AddService/ConnectToService to Connection::AddInterface/GetInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@interface_binder
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 | « components/html_viewer/html_document_application_delegate.cc ('k') | components/html_viewer/html_viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/html_frame_apptest.cc
diff --git a/components/html_viewer/html_frame_apptest.cc b/components/html_viewer/html_frame_apptest.cc
index a52baad4b04cf46d5c561e3010d22bc9d77ec085..8447f5220b5e25207dae30c073c0dc70c6acd0e5 100644
--- a/components/html_viewer/html_frame_apptest.cc
+++ b/components/html_viewer/html_frame_apptest.cc
@@ -58,7 +58,7 @@ mojo::Connection* ConnectionForFrame(Frame* frame) {
std::string GetFrameText(Connection* connection) {
html_viewer::TestHTMLViewerPtr test_html_viewer;
- connection->ConnectToService(&test_html_viewer);
+ connection->GetInterface(&test_html_viewer);
std::string result;
test_html_viewer->GetContentAsText([&result](const String& mojo_string) {
result = mojo_string;
@@ -73,7 +73,7 @@ std::string GetFrameText(Connection* connection) {
scoped_ptr<base::Value> ExecuteScript(Connection* connection,
const std::string& script) {
html_viewer::TestHTMLViewerPtr test_html_viewer;
- connection->ConnectToService(&test_html_viewer);
+ connection->GetInterface(&test_html_viewer);
scoped_ptr<base::Value> result;
test_html_viewer->ExecuteScript(script, [&result](const String& json_string) {
result = base::JSONReader::Read(json_string.To<std::string>());
« no previous file with comments | « components/html_viewer/html_document_application_delegate.cc ('k') | components/html_viewer/html_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698