| 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 70b97bc6ca6b7b5a09531230c10ebe3ce9a0b212..73f767cd66874921f9aa9e96a2cda79d0e4bd3a6 100644
|
| --- a/Source/devtools/front_end/sdk/TimelineManager.js
|
| +++ b/Source/devtools/front_end/sdk/TimelineManager.js
|
| @@ -151,11 +151,15 @@ WebInspector.TimelineManager.prototype = {
|
| _configureCpuProfilerSamplingInterval: function()
|
| {
|
| var intervalUs = WebInspector.settings.highResolutionCpuProfiling.get() ? 100 : 1000;
|
| - ProfilerAgent.setSamplingInterval(intervalUs, didChangeInterval);
|
| + ProfilerAgent.setSamplingInterval(intervalUs, didChangeInterval.bind(this));
|
| +
|
| + /**
|
| + * @this {WebInspector.TimelineManager}
|
| + */
|
| function didChangeInterval(error)
|
| {
|
| if (error)
|
| - WebInspector.console.showErrorMessage(error);
|
| + this.target().consoleModel.showErrorMessage(error);
|
| }
|
| },
|
|
|
|
|