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

Unified Diff: components/pdf_viewer/pdf_viewer.cc

Issue 1409223004: mandoline: Add automatic tracing at mojo call sites. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Safety rebase to ToT Created 5 years, 2 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
« no previous file with comments | « components/pdf_viewer/DEPS ('k') | components/web_view/frame_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/pdf_viewer/pdf_viewer.cc
diff --git a/components/pdf_viewer/pdf_viewer.cc b/components/pdf_viewer/pdf_viewer.cc
index b340273cbb9a49423865db65b28624ef785f4c40..2accf51e8bc43cc921648c3302b18a69d8ab562a 100644
--- a/components/pdf_viewer/pdf_viewer.cc
+++ b/components/pdf_viewer/pdf_viewer.cc
@@ -35,6 +35,7 @@
#include "mojo/public/c/gles2/gles2.h"
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/bindings/binding.h"
+#include "mojo/services/tracing/public/cpp/tracing_impl.h"
#include "third_party/pdfium/public/fpdf_ext.h"
#include "third_party/pdfium/public/fpdfview.h"
#include "ui/gfx/geometry/rect.h"
@@ -603,6 +604,10 @@ class PDFViewer : public mojo::ApplicationDelegate,
private:
// ApplicationDelegate:
+ void Initialize(mojo::ApplicationImpl* app) override {
+ tracing_.Initialize(app);
+ }
+
bool ConfigureIncomingConnection(
mojo::ApplicationConnection* connection) override {
connection->AddService(this);
@@ -615,6 +620,8 @@ class PDFViewer : public mojo::ApplicationDelegate,
new ContentHandlerImpl(request.Pass());
}
+ mojo::TracingImpl tracing_;
+
DISALLOW_COPY_AND_ASSIGN(PDFViewer);
};
} // namespace
« no previous file with comments | « components/pdf_viewer/DEPS ('k') | components/web_view/frame_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698