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

Unified Diff: services/dart/dart_app.cc

Issue 1311803002: Dart: Removes dartzip (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Readme fixes Created 5 years, 4 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 | « services/dart/content_handler_main.cc ('k') | services/dart/dart_apptests/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/dart/dart_app.cc
diff --git a/services/dart/dart_app.cc b/services/dart/dart_app.cc
index 4ac0d253038dfd1695e17c56aa6c895f41997502..029e86fa82ff9c13c2806ea2c70357b2d8e56da9 100644
--- a/services/dart/dart_app.cc
+++ b/services/dart/dart_app.cc
@@ -26,18 +26,12 @@ DartApp::DartApp(mojo::InterfaceRequest<Application> application_request,
bool strict)
: application_request_(application_request.Pass()),
application_dir_(application_dir) {
- base::FilePath package_root = application_dir_.AppendASCII("packages");
- base::FilePath entry_path = application_dir_.Append("lib")
- .Append("main.dart");
base::FilePath snapshot_path = application_dir_.Append("snapshot_blob.bin");
// Look for snapshot_blob.bin. If exists, then load from snapshot.
if (base::PathExists(snapshot_path)) {
config_.script_uri = snapshot_path.AsUTF8Unsafe();
config_.package_root = "";
- } else if (base::PathExists(entry_path)) {
- config_.script_uri = entry_path.AsUTF8Unsafe();
- config_.package_root = package_root.AsUTF8Unsafe();
} else {
LOG(ERROR) << "Dart entry point could not be found under: "
<< application_dir_.AsUTF8Unsafe();
« no previous file with comments | « services/dart/content_handler_main.cc ('k') | services/dart/dart_apptests/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698