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

Unified Diff: services/dart/content_handler_main.cc

Issue 1480243004: Dart: Lazy observatory asset loading. Option to disable the observatory. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years 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/data/benchmarks ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/dart/content_handler_main.cc
diff --git a/services/dart/content_handler_main.cc b/services/dart/content_handler_main.cc
index e44a0fcc9b6307149ef93219d9fc56ad851a4dc3..de7a8acda559966e0b7539aea8f5afba4829cbcf 100644
--- a/services/dart/content_handler_main.cc
+++ b/services/dart/content_handler_main.cc
@@ -29,6 +29,7 @@ namespace dart {
const char kCompleteTimeline[] = "--complete-timeline";
const char kEnableStrictMode[] = "--enable-strict-mode";
+const char kDisableObservatory[] = "--disable-observatory";
const char kTraceStartup[] = "--trace-startup";
static bool IsDartZip(std::string url) {
@@ -122,8 +123,17 @@ class DartContentHandlerApp : public mojo::ApplicationDelegate {
timeline_arg = kCompleteTimeline;
timeline_arg_count = 1;
}
+
+ bool observatory_enabled = true;
+ if (app->HasArg(kDisableObservatory)) {
+ observatory_enabled = false;
+ }
bool success = mojo::dart::DartController::Initialize(
- service_connector_, default_strict_, &timeline_arg, timeline_arg_count);
+ service_connector_,
+ default_strict_,
+ observatory_enabled,
+ &timeline_arg,
+ timeline_arg_count);
if (app->HasArg(kTraceStartup)) {
DartTimelineController::EnableAll();
« no previous file with comments | « mojo/tools/data/benchmarks ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698