From 2cc9b542a067870cd42047084bb9b972d4590b8e Mon Sep 17 00:00:00 2001 From: James Robinson Date: Tue, 25 Nov 2014 16:23:42 -0800 Subject: [PATCH] Move tracing_impl code to mojo/common This moves the tracing code and mojoms from sky/viewer/services/ to mojo/common/ in anticipation of refactoring these to be more widely usable. This doesn't actually change behaviors yet. BUG=436639 R=abarth@chromium.org Review URL: https://codereview.chromium.org/751303003 --- engine/src/flutter/tools/debugger/prompt/BUILD.gn | 1 + engine/src/flutter/tools/debugger/prompt/prompt.cc | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/tools/debugger/prompt/BUILD.gn b/engine/src/flutter/tools/debugger/prompt/BUILD.gn index 59e8271735..c6fbccfafa 100644 --- a/engine/src/flutter/tools/debugger/prompt/BUILD.gn +++ b/engine/src/flutter/tools/debugger/prompt/BUILD.gn @@ -14,6 +14,7 @@ mojo_native_application("prompt") { deps = [ "//base", "//mojo/application", + "//mojo/common:tracing_bindings", "//mojo/public/c/system:for_shared_library", "//mojo/public/cpp/bindings", "//mojo/public/cpp/utility", diff --git a/engine/src/flutter/tools/debugger/prompt/prompt.cc b/engine/src/flutter/tools/debugger/prompt/prompt.cc index 8a5ad048f5..f400055ac2 100644 --- a/engine/src/flutter/tools/debugger/prompt/prompt.cc +++ b/engine/src/flutter/tools/debugger/prompt/prompt.cc @@ -5,11 +5,11 @@ #include "base/bind.h" #include "base/memory/weak_ptr.h" #include "mojo/application/application_runner_chromium.h" +#include "mojo/common/tracing.mojom.h" #include "mojo/public/c/system/main.h" #include "mojo/public/cpp/application/application_delegate.h" #include "mojo/public/cpp/application/application_impl.h" #include "sky/tools/debugger/debugger.mojom.h" -#include "sky/viewer/services/tracing.mojom.h" #include namespace sky { @@ -148,7 +148,7 @@ class Prompt : public mojo::ApplicationDelegate { bool is_tracing_; DebuggerPtr debugger_; - TracingPtr tracing_; + mojo::TracingPtr tracing_; std::string url_; base::WeakPtrFactory weak_ptr_factory_;