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>()); |