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

Unified Diff: Source/devtools/front_end/sdk/TimelineManager.js

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/sdk/TempFile.js ('k') | Source/devtools/front_end/sources/SourcesPanel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/TimelineManager.js
diff --git a/Source/devtools/front_end/sdk/TimelineManager.js b/Source/devtools/front_end/sdk/TimelineManager.js
index 28d272e619001eaab24e7d667f62825822ac8263..05f5f5fd18f44f62049a1bbf3299d112150baaa1 100644
--- a/Source/devtools/front_end/sdk/TimelineManager.js
+++ b/Source/devtools/front_end/sdk/TimelineManager.js
@@ -151,15 +151,12 @@ WebInspector.TimelineManager.prototype = {
_configureCpuProfilerSamplingInterval: function()
{
var intervalUs = WebInspector.settings.highResolutionCpuProfiling.get() ? 100 : 1000;
- ProfilerAgent.setSamplingInterval(intervalUs, didChangeInterval.bind(this));
+ ProfilerAgent.setSamplingInterval(intervalUs, didChangeInterval);
- /**
- * @this {WebInspector.TimelineManager}
- */
function didChangeInterval(error)
{
if (error)
- this.target().consoleModel.showErrorMessage(error);
+ WebInspector.console.error(error);
}
},
« no previous file with comments | « Source/devtools/front_end/sdk/TempFile.js ('k') | Source/devtools/front_end/sources/SourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698