Skip to content

Commit

Permalink
Register _flutter.listViews in profile mode (flutter#2963)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmccutchan authored Aug 23, 2016
1 parent 2e68423 commit 98deb4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sky/shell/platform_view_service_protocol.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,15 @@ static void AppendFlutterView(std::stringstream* stream,
} // namespace

void PlatformViewServiceProtocol::RegisterHook(bool running_precompiled_code) {
// Listing of FlutterViews.
Dart_RegisterRootServiceRequestCallback(kListViewsExtensionName, &ListViews,
nullptr);
// The following set of service protocol extensions require debug build
if (running_precompiled_code) {
return;
}
Dart_RegisterRootServiceRequestCallback(kRunInViewExtensionName, &RunInView,
nullptr);
Dart_RegisterRootServiceRequestCallback(kListViewsExtensionName, &ListViews,
nullptr);
}

const char* PlatformViewServiceProtocol::kRunInViewExtensionName =
Expand Down

0 comments on commit 98deb4f

Please sign in to comment.