Index: third_party/WebKit/Source/devtools/front_end/sdk/TracingManager.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/TracingManager.js b/third_party/WebKit/Source/devtools/front_end/sdk/TracingManager.js |
index f60455d5f9cca54f4b19676b9a469001790cacfa..06f4e03ecfbe69b35b411b5f24b1eae53538838d 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sdk/TracingManager.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/TracingManager.js |
@@ -9,7 +9,6 @@ |
SDK.TracingManagerClient = function() {}; |
SDK.TracingManagerClient.prototype = { |
- tracingStarted() {}, |
/** |
* @param {!Array.<!SDK.TracingManager.EventPayload>} events |
*/ |
@@ -84,17 +83,15 @@ SDK.TracingManager = class { |
* @param {!SDK.TracingManagerClient} client |
* @param {string} categoryFilter |
* @param {string} options |
- * @param {function(?string)=} callback |
+ * @return {!Promise} |
*/ |
- start(client, categoryFilter, options, callback) { |
+ start(client, categoryFilter, options) { |
if (this._activeClient) |
throw new Error('Tracing is already started'); |
var bufferUsageReportingIntervalMs = 500; |
this._activeClient = client; |
- this._target.tracingAgent().start( |
- categoryFilter, options, bufferUsageReportingIntervalMs, SDK.TracingManager.TransferMode.ReportEvents, |
- callback); |
- this._activeClient.tracingStarted(); |
+ return this._target.tracingAgent().start( |
+ categoryFilter, options, bufferUsageReportingIntervalMs, SDK.TracingManager.TransferMode.ReportEvents); |
} |
stop() { |