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

Unified Diff: Source/devtools/front_end/CPUProfileView.js

Issue 220903002: DevTools: wrap DebuggerAgent.Location with DebuggerModel.Location. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: All tests!!! Created 6 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
« no previous file with comments | « Source/devtools/front_end/BreakpointManager.js ('k') | Source/devtools/front_end/CPUProfilerModel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/CPUProfileView.js
diff --git a/Source/devtools/front_end/CPUProfileView.js b/Source/devtools/front_end/CPUProfileView.js
index 46ae079c13c74cda0071e6f19ecc782a1ecf078e..5f947ee96b50f0a875c6eadeaa7bee7747861880 100644
--- a/Source/devtools/front_end/CPUProfileView.js
+++ b/Source/devtools/front_end/CPUProfileView.js
@@ -680,7 +680,7 @@ WebInspector.CPUProfileType.prototype = {
/**
* @param {string} id
- * @param {!DebuggerAgent.Location} scriptLocation
+ * @param {!WebInspector.DebuggerModel.Location} scriptLocation
* @param {string=} title
*/
consoleProfileStarted: function(id, scriptLocation, title)
@@ -695,7 +695,7 @@ WebInspector.CPUProfileType.prototype = {
/**
* @param {string} protocolId
- * @param {!DebuggerAgent.Location} scriptLocation
+ * @param {!WebInspector.DebuggerModel.Location} scriptLocation
* @param {!ProfilerAgent.CPUProfile} cpuProfile
* @param {string=} title
*/
@@ -715,12 +715,12 @@ WebInspector.CPUProfileType.prototype = {
/**
* @param {string} type
- * @param {!DebuggerAgent.Location} scriptLocation
+ * @param {!WebInspector.DebuggerModel.Location} scriptLocation
* @param {string} messageText
*/
_addMessageToConsole: function(type, scriptLocation, messageText)
{
- var script = WebInspector.debuggerModel.scriptForId(scriptLocation.scriptId);
+ var script = scriptLocation.script();
var message = new WebInspector.ConsoleMessage(
WebInspector.ConsoleMessage.MessageSource.ConsoleAPI,
WebInspector.ConsoleMessage.MessageLevel.Debug,
« no previous file with comments | « Source/devtools/front_end/BreakpointManager.js ('k') | Source/devtools/front_end/CPUProfilerModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698