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

Unified Diff: sky/shell/ui/engine.cc

Issue 1163323007: Make it possible to navigate from a SkyView to a WebView. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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/tools/deploy_domokit_site.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/ui/engine.cc
diff --git a/sky/shell/ui/engine.cc b/sky/shell/ui/engine.cc
index 736cb3e07c37a985badaa1fffbc786e7bc4e94f1..f82922b8fcdcdaa1c4c65982a34df8d65e45b5cc 100644
--- a/sky/shell/ui/engine.cc
+++ b/sky/shell/ui/engine.cc
@@ -185,6 +185,9 @@ void Engine::LoadURL(const mojo::String& mojo_url) {
return;
}
+ if (sky_view_)
+ sky_view_ = nullptr;
+
LOG(WARNING) << ".sky support is deprecated, please use .dart for main()";
// Something bad happens if you try to call WebView::close and replace
« no previous file with comments | « mojo/tools/deploy_domokit_site.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698