| Index: Source/devtools/front_end/emulation/MediaQueryInspector.js
|
| diff --git a/Source/devtools/front_end/emulation/MediaQueryInspector.js b/Source/devtools/front_end/emulation/MediaQueryInspector.js
|
| index 0fa351ff1d8a390d185626f7d4a0ef1869a4015f..6624d38a1b3c416f3249bc8b0f042e43c7dc6c91 100644
|
| --- a/Source/devtools/front_end/emulation/MediaQueryInspector.js
|
| +++ b/Source/devtools/front_end/emulation/MediaQueryInspector.js
|
| @@ -175,20 +175,13 @@ WebInspector.MediaQueryInspector.prototype = {
|
| this._mediaThrottler.schedule(this._refetchMediaQueries.bind(this));
|
| },
|
|
|
| - /**
|
| - * @param {!WebInspector.Throttler.FinishCallback} finishCallback
|
| - */
|
| - _refetchMediaQueries: function(finishCallback)
|
| + _refetchMediaQueries: function()
|
| {
|
| - if (!this._enabled || !this._cssModel) {
|
| - finishCallback();
|
| - return;
|
| - }
|
| + if (!this._enabled || !this._cssModel)
|
| + return Promise.resolve();
|
|
|
| - this._cssModel.mediaQueriesPromise()
|
| + return this._cssModel.mediaQueriesPromise()
|
| .then(this._rebuildMediaQueries.bind(this))
|
| - .then(finishCallback)
|
| - .catch(finishCallback);
|
| },
|
|
|
| /**
|
|
|