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

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

Issue 331323007: Eliminate Launchable. Use Navigator instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 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/image_viewer/image_viewer.cc ('k') | mojo/examples/window_manager/window_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/nesting_app/nesting_app.cc
diff --git a/mojo/examples/nesting_app/nesting_app.cc b/mojo/examples/nesting_app/nesting_app.cc
index fe01b60c0ef6372f225f4fbd6762a8cdb9974ace..7997a0a23a86b05d480a9cea464c3d241e26ed66 100644
--- a/mojo/examples/nesting_app/nesting_app.cc
+++ b/mojo/examples/nesting_app/nesting_app.cc
@@ -45,9 +45,11 @@ class NestingApp : public Application,
public:
explicit Navigator(NestingApp* app) : app_(app) {}
private:
- virtual void Navigate(uint32 node_id,
- navigation::NavigationDetailsPtr details) OVERRIDE {
- GURL url(details->url.To<std::string>());
+ virtual void Navigate(
+ uint32 node_id,
+ navigation::NavigationDetailsPtr navigation_details,
+ navigation::ResponseDetailsPtr response_details) OVERRIDE {
+ GURL url(navigation_details->url.To<std::string>());
if (!url.is_valid()) {
LOG(ERROR) << "URL is invalid.";
return;
@@ -108,7 +110,11 @@ class NestingApp : public Application,
navigation::NavigationDetails::New());
details->url =
base::StringPrintf("%s/%s", kEmbeddedAppURL, color_.c_str());
- navigator_->Navigate(nested_->id(), details.Pass());
+ navigation::ResponseDetailsPtr response_details(
+ navigation::ResponseDetails::New());
+ navigator_->Navigate(nested_->id(),
+ details.Pass(),
+ response_details.Pass());
}
}
« no previous file with comments | « mojo/examples/image_viewer/image_viewer.cc ('k') | mojo/examples/window_manager/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698