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

Unified Diff: Source/WebCore/inspector/front-end/ResourceTreeModel.js

Issue 11086042: Revert 130484 - Merge 124886 - Web Inspector: Do not disable network tracking while profiling cpu. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 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
« no previous file with comments | « Source/WebCore/inspector/front-end/NetworkManager.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/front-end/ResourceTreeModel.js
===================================================================
--- Source/WebCore/inspector/front-end/ResourceTreeModel.js (revision 130858)
+++ Source/WebCore/inspector/front-end/ResourceTreeModel.js (working copy)
@@ -35,6 +35,7 @@
*/
WebInspector.ResourceTreeModel = function(networkManager)
{
+ networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.ResourceTrackingEnabled, this._onResourceTrackingEnabled, this);
networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.RequestUpdated, this._onRequestUpdated, this);
networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.RequestFinished, this._onRequestUpdated, this);
networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.RequestUpdateDropped, this._onRequestUpdateDropped, this);
@@ -67,6 +68,11 @@
}
WebInspector.ResourceTreeModel.prototype = {
+ _onResourceTrackingEnabled: function()
+ {
+ this._fetchResourceTree();
+ },
+
_fetchResourceTree: function()
{
this._frames = {};
« no previous file with comments | « Source/WebCore/inspector/front-end/NetworkManager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698