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

Unified Diff: sky/engine/web/WebViewImpl.cpp

Issue 1197133004: Add support for snapshot loading to Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix mirror-system.sky 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 | « sky/engine/public/sky/sky_view.cc ('k') | sky/tools/packager/loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/web/WebViewImpl.cpp
diff --git a/sky/engine/web/WebViewImpl.cpp b/sky/engine/web/WebViewImpl.cpp
index 10ae28b364b37bb7314b6a3e1fc046b55505e255..6b53e0b56a224dcae0e772f3a4b46963608bd7f1 100644
--- a/sky/engine/web/WebViewImpl.cpp
+++ b/sky/engine/web/WebViewImpl.cpp
@@ -104,7 +104,8 @@ bool WebView::shouldUseWebView(const GURL& url)
filename.resize(queryStart);
// For now .dart indicates we should use SkyView. Eventually we'll
// use SkyView for all urls regardless of file extension.
- return !EndsWith(filename, ".dart", false);
+ return !EndsWith(filename, ".dart", false)
+ && !EndsWith(filename, ".snapshot", false);
}
WebView* WebView::create(WebViewClient* client)
« no previous file with comments | « sky/engine/public/sky/sky_view.cc ('k') | sky/tools/packager/loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698