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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorTracingAgent.cpp

Issue 1702673002: DevTools: migrate remote debugging protocol generators to jinja2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: third_party/WebKit/Source/core/inspector/InspectorTracingAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorTracingAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorTracingAgent.cpp
index 92e2bb8b75f97cd1f67d7a49ebaeda1e0182e16e..2913cc83a00757dc406f1fbfae1d87c384ad8727 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorTracingAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorTracingAgent.cpp
@@ -43,12 +43,16 @@ void InspectorTracingAgent::restore()
{
emitMetadataEvents();
}
-
-void InspectorTracingAgent::start(ErrorString*, const String* categoryFilter, const String*, const double*, const String*, PassRefPtr<StartCallback> callback)
+void InspectorTracingAgent::start(ErrorString*,
+ const OptionalValue<String>& categories,
+ const OptionalValue<String>& options,
+ const OptionalValue<double>& bufferUsageReportingInterval,
+ const OptionalValue<String>& transferMode,
+ PassRefPtr<StartCallback> callback)
{
ASSERT(sessionId().isEmpty());
m_state->setString(TracingAgentState::sessionId, IdentifiersFactory::createIdentifier());
- m_client->enableTracing(categoryFilter ? *categoryFilter : String());
+ m_client->enableTracing(categories.get(String()));
emitMetadataEvents();
callback->sendSuccess();
}

Powered by Google App Engine
This is Rietveld 408576698