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

Unified Diff: webkit/glue/webkitplatformsupport_impl.cc

Issue 9155024: Allow tracing in third_party libraries (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win compile Created 8 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
« no previous file with comments | « base/test/trace_event_analyzer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webkitplatformsupport_impl.cc
diff --git a/webkit/glue/webkitplatformsupport_impl.cc b/webkit/glue/webkitplatformsupport_impl.cc
index 811fc5a735c378dbea27a096896589bab28d23bd..4af812e9383a9c1070f8ebc8184d95e0389b145f 100644
--- a/webkit/glue/webkitplatformsupport_impl.cc
+++ b/webkit/glue/webkitplatformsupport_impl.cc
@@ -292,7 +292,7 @@ void WebKitPlatformSupportImpl::histogramEnumeration(
}
bool WebKitPlatformSupportImpl::isTraceEventEnabled() const {
- return base::debug::TraceLog::GetCategory("webkit")->enabled;
+ return !!*base::debug::TraceLog::GetCategoryEnabled("webkit");
}
void WebKitPlatformSupportImpl::traceEventBegin(const char* name, void* id,
« no previous file with comments | « base/test/trace_event_analyzer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698