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

Unified Diff: mojo/examples/embedded_app/embedded_app.cc

Issue 549273002: Various mojom cleanup from ContentHandler changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 6 years, 3 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 | « mojo/examples/browser/browser.cc ('k') | mojo/examples/media_viewer/media_viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/embedded_app/embedded_app.cc
diff --git a/mojo/examples/embedded_app/embedded_app.cc b/mojo/examples/embedded_app/embedded_app.cc
index d2fa56b9e4c50535658cb7fe74fc2c9d24020a22..715a38ee5ede56e98144df6c48d685bee1615876 100644
--- a/mojo/examples/embedded_app/embedded_app.cc
+++ b/mojo/examples/embedded_app/embedded_app.cc
@@ -81,13 +81,12 @@ class EmbeddedApp
virtual void OnViewInputEvent(View* view, const EventPtr& event) OVERRIDE {
if (event->action == EVENT_TYPE_MOUSE_RELEASED) {
if (event->flags & EVENT_FLAGS_LEFT_MOUSE_BUTTON) {
- NavigationDetailsPtr nav_details(NavigationDetails::New());
- nav_details->request->url =
- "http://www.aaronboodman.com/z_dropbox/test.html";
+ URLRequestPtr request(URLRequest::New());
+ request->url = "http://www.aaronboodman.com/z_dropbox/test.html";
NavigatorHostPtr navigator_host;
ConnectToService(windows_[view->id()]->embedder_service_provider.get(),
&navigator_host);
- navigator_host->RequestNavigate(TARGET_SOURCE_NODE, nav_details.Pass());
+ navigator_host->RequestNavigate(TARGET_SOURCE_NODE, request.Pass());
}
}
}
« no previous file with comments | « mojo/examples/browser/browser.cc ('k') | mojo/examples/media_viewer/media_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698