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

Unified Diff: components/view_manager/view_manager_service_apptest.cc

Issue 1121783003: Move navigations with POST or referrer to the shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 7 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/view_manager/view_manager_app.cc ('k') | components/view_manager/view_manager_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/view_manager/view_manager_service_apptest.cc
diff --git a/components/view_manager/view_manager_service_apptest.cc b/components/view_manager/view_manager_service_apptest.cc
index 95a4a9e6ee672ff82d9d618e7605aec9e1e80686..7ab6b4fa49db36446f631d2ec13ec6f1838b2749 100644
--- a/components/view_manager/view_manager_service_apptest.cc
+++ b/components/view_manager/view_manager_service_apptest.cc
@@ -83,8 +83,10 @@ bool EmbedUrl(ViewManagerService* vm, const String& url, Id root_id) {
bool result = false;
base::RunLoop run_loop;
{
- vm->EmbedUrl(url, root_id, nullptr, nullptr,
- base::Bind(&BoolResultCallback, &run_loop, &result));
+ mojo::URLRequestPtr request(mojo::URLRequest::New());
+ request->url = mojo::String::From(url);
+ vm->EmbedRequest(request.Pass(), root_id, nullptr, nullptr,
+ base::Bind(&BoolResultCallback, &run_loop, &result));
}
run_loop.Run();
return result;
@@ -460,8 +462,10 @@ class ViewManagerServiceAppTest : public mojo::test::ApplicationTestBase,
ApplicationDelegate* GetApplicationDelegate() override { return this; }
void SetUp() override {
ApplicationTestBase::SetUp();
+ mojo::URLRequestPtr request(mojo::URLRequest::New());
+ request->url = mojo::String::From("mojo:view_manager");
ApplicationConnection* vm_connection =
- application_impl()->ConnectToApplication("mojo:view_manager");
+ application_impl()->ConnectToApplication(request.Pass());
vm_connection->ConnectToService(&vm1_);
vm_connection->ConnectToService(&view_manager_root_);
vm_connection->AddService(&client_factory_);
« no previous file with comments | « components/view_manager/view_manager_app.cc ('k') | components/view_manager/view_manager_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698