Chromium Code Reviews| Index: runtime/vm/message.cc |
| diff --git a/runtime/vm/message.cc b/runtime/vm/message.cc |
| index 195b2c6c81bd9abddc8e87f894d3b04f8655ec18..035428d4a36f32ca4e754b0f1fefce78e855cf6e 100644 |
| --- a/runtime/vm/message.cc |
| +++ b/runtime/vm/message.cc |
| @@ -181,6 +181,9 @@ Message* MessageQueue::FindMessageById(intptr_t id) { |
| void MessageQueue::PrintJSON(JSONStream* stream) { |
| + if (!FLAG_support_service) { |
| + return; |
| + } |
| JSONArray messages(stream); |
| Object& msg_handler = Object::Handle(); |