From 277dc761d6bb86e62bbdf096df592eb789fc6452 Mon Sep 17 00:00:00 2001 From: "yurys@google.com" Date: Thu, 15 Oct 2009 16:39:52 +0000 Subject: DevTools: restore accidentally deleted if block TBR=apavlov Review URL: http://codereview.chromium.org/274065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29127 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/devtools/js/devtools.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'webkit') diff --git a/webkit/glue/devtools/js/devtools.js b/webkit/glue/devtools/js/devtools.js index 16ff6da..0c2fb89 100644 --- a/webkit/glue/devtools/js/devtools.js +++ b/webkit/glue/devtools/js/devtools.js @@ -428,6 +428,16 @@ WebInspector.ResourcesPanel.prototype._createResourceView = function( })(); +// Temporary workaround for a patch from WebKit bug 30328. +// TODO(mnaganov): Remove when after WebKit roll. +if (!('addProfile' in WebInspector)) { + WebInspector.addProfile = function(profile) { + WebInspector.__fullProfiles = WebInspector.__fullProfiles || {}; + WebInspector.__fullProfiles[profile.uid] = profile; + WebInspector.addProfileHeader(profile); + }; +} + (function() { var orig = InjectedScriptAccess.getCompletions; -- cgit v1.1