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

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

Issue 2921963002: [Devtools] Removed NetworkRequest dependency on NetworkManager (Closed)
Patch Set: changes Created 3 years, 6 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 3831e39dca6d283cbbcb7d21d8cca694e1c8d25c..fc944f399e5af24033b0bb280136bdcc6f696a89 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
@@ -427,8 +427,8 @@ ConsoleModel.ConsoleMessage = class {
this.scriptId = scriptId || null;
this.workerId = workerId || null;
- var networkManager = (runtimeModel && requestId) ? runtimeModel.target().model(SDK.NetworkManager) : null;
- this.request = (networkManager && requestId) ? NetworkLog.networkLog.requestForId(networkManager, requestId) : null;
+ var manager = runtimeModel ? runtimeModel.target().model(SDK.NetworkManager) : null;
dgozman 2017/06/06 20:54:40 nit: what was the point of renaming the variable?
allada 2017/06/08 00:42:06 It was just so I could fit the line below on one l
+ this.request = (manager && requestId) ? NetworkLog.networkLog.requestByManagerAndId(manager, requestId) : null;
if (this.request) {
var initiator = this.request.initiator();

Powered by Google App Engine
This is Rietveld 408576698