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

Unified Diff: webkit/glue/webkitplatformsupport_impl.cc

Issue 8373003: Implement WebKitPlatformSupport::isTraceCategoryEnabled. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 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
Index: webkit/glue/webkitplatformsupport_impl.cc
diff --git a/webkit/glue/webkitplatformsupport_impl.cc b/webkit/glue/webkitplatformsupport_impl.cc
index bfa6ec04f871c0d6ad6772dece793af15261d94c..f608c7cc009dd14605a130aeac245496b1eaf2e1 100644
--- a/webkit/glue/webkitplatformsupport_impl.cc
+++ b/webkit/glue/webkitplatformsupport_impl.cc
@@ -289,6 +289,11 @@ void WebKitPlatformSupportImpl::histogramEnumeration(
counter->Add(sample);
}
+bool WebKitPlatformSupportImpl::isTraceEventEnabledForCategory(
+ const char* category) const {
+ return base::debug::TraceLog::GetCategory(category)->enabled;
+}
+
void WebKitPlatformSupportImpl::traceEventBegin(const char* name, void* id,
const char* extra) {
TRACE_EVENT_BEGIN_ETW(name, id, extra);
« webkit/glue/webkitplatformsupport_impl.h ('K') | « webkit/glue/webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698