| 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();
|
|
|