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

Unified Diff: services/window_manager/main.cc

Issue 791493006: De-client tracing.TraceController interface (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months 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
Index: services/window_manager/main.cc
diff --git a/services/window_manager/main.cc b/services/window_manager/main.cc
index acb02a8384f798c587cdebab67bed17dc706ad9a..17143a42e9cb2c625ce86317529b57cdaae763c3 100644
--- a/services/window_manager/main.cc
+++ b/services/window_manager/main.cc
@@ -4,6 +4,7 @@
#include "base/memory/scoped_ptr.h"
#include "mojo/application/application_runner_chromium.h"
+#include "mojo/common/tracing_impl.h"
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_delegate.h"
#include "mojo/public/cpp/application/service_provider_impl.h"
@@ -36,6 +37,7 @@ class DefaultWindowManager : public mojo::ApplicationDelegate,
// Overridden from mojo::ApplicationDelegate:
void Initialize(mojo::ApplicationImpl* impl) override {
window_manager_app_->Initialize(impl);
+ tracing_.Initialize(impl);
}
bool ConfigureIncomingConnection(
mojo::ApplicationConnection* connection) override {
@@ -73,6 +75,7 @@ class DefaultWindowManager : public mojo::ApplicationDelegate,
View* root_;
int window_offset_;
+ mojo::TracingImpl tracing_;
MOJO_DISALLOW_COPY_AND_ASSIGN(DefaultWindowManager);
};

Powered by Google App Engine
This is Rietveld 408576698