| Index: third_party/WebKit/Source/devtools/front_end/ui/Context.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Context.js b/third_party/WebKit/Source/devtools/front_end/ui/Context.js
|
| index df09297d604ec9ce130600145be1544212badbb1..fdf8fb56337d60d1043354442afaa8ffa3bfbe05 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/ui/Context.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/Context.js
|
| @@ -42,10 +42,10 @@
|
| */
|
| _dispatchFlavorChange: function(flavorType, flavorValue)
|
| {
|
| - for (var extension of self.runtime.extensions(WebInspector.ContextFlavorListener)) {
|
| - if (extension.hasContextType(flavorType))
|
| - extension.instance().then(instance => /** @type {!WebInspector.ContextFlavorListener} */ (instance).flavorChanged(flavorValue));
|
| - }
|
| + self.runtime.extensions(WebInspector.ContextFlavorListener, flavorValue).map(extension => {
|
| + extension.instance().then(instance => /** @type {!WebInspector.ContextFlavorListener} */ (instance).flavorChanged(flavorValue));
|
| + });
|
| +
|
| var dispatcher = this._eventDispatchers.get(flavorType);
|
| if (!dispatcher)
|
| return;
|
|
|