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

Unified Diff: third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js

Issue 2441933002: [DevTools] Refactor connection-related classes. (Closed)
Patch Set: tests.js Created 4 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: third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js b/third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js
index b8ec6555b768a359e735433614f68494bc4a0418..178d9211bd89068bb83f75d3128faee7730d80cd 100644
--- a/third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js
+++ b/third_party/WebKit/Source/devtools/front_end/audits2/Audits2Panel.js
@@ -34,7 +34,7 @@ WebInspector.Audits2Panel.prototype = {
_stop: function()
{
this._send("stop").then(() => {
- this._rawConnection.yieldConnection();
+ this._rawConnection.disconnect();
this._backend.dispose();
delete this._backend;
delete this._backendPromise;
@@ -51,7 +51,7 @@ WebInspector.Audits2Panel.prototype = {
if (!this._backendPromise) {
this._backendPromise = WebInspector.serviceManager.createAppService("audits2_worker", "Audits2Service", false).then(backend => {
this._backend = backend;
- this._backend.on("sendProtocolMessage", result => this._rawConnection.send(result.message));
+ this._backend.on("sendProtocolMessage", result => this._rawConnection.sendMessage(result.message));
});
}
return this._backendPromise.then(() => this._backend ? this._backend.send(method, params) : undefined);

Powered by Google App Engine
This is Rietveld 408576698