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

Unified Diff: third_party/WebKit/Source/devtools/front_end/console_model/ConsoleModel.js

Issue 2749043005: [DevTools] Make NetworkLog a singleton, and not an SDKModel (Closed)
Patch Set: review comments addressed Created 3 years, 9 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/console_model/ConsoleModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/console_model/ConsoleModel.js b/third_party/WebKit/Source/devtools/front_end/console_model/ConsoleModel.js
index fe95a26edad96c606d82eadd6389a36ca43b4f38..d371a50b508158127bacc6a52eba2b82d0ac124a 100644
--- a/third_party/WebKit/Source/devtools/front_end/console_model/ConsoleModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/console_model/ConsoleModel.js
@@ -436,8 +436,7 @@ ConsoleModel.ConsoleMessage = class {
this.scriptId = scriptId || null;
this.workerId = workerId || null;
- var networkLog = target && SDK.NetworkLog.fromTarget(target);
- this.request = (requestId && networkLog) ? networkLog.requestForId(requestId) : null;
+ this.request = (target && requestId) ? SDK.networkLog.requestForId(target, requestId) : null;
if (this.request) {
var initiator = this.request.initiator();

Powered by Google App Engine
This is Rietveld 408576698