| Index: third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js
|
| index 49c62adc6f2204eaf5a05111a01d4c3264bd10af..70494e5acedb5330ce3145addb85873f57e7e752 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js
|
| @@ -39,7 +39,7 @@ Console.ConsoleContextSelector = class {
|
| if (!executionContext.isDefault)
|
| depth++;
|
| if (executionContext.frameId) {
|
| - var resourceTreeModel = SDK.ResourceTreeModel.fromTarget(target);
|
| + var resourceTreeModel = target.model(SDK.ResourceTreeModel);
|
| var frame = resourceTreeModel && resourceTreeModel.frameForId(executionContext.frameId);
|
| if (frame) {
|
| label = label || frame.displayName();
|
| @@ -170,7 +170,7 @@ Console.ConsoleContextSelector = class {
|
| _isTopContext(executionContext) {
|
| if (!executionContext || !executionContext.isDefault)
|
| return false;
|
| - var resourceTreeModel = SDK.ResourceTreeModel.fromTarget(executionContext.target());
|
| + var resourceTreeModel = executionContext.target().model(SDK.ResourceTreeModel);
|
| var frame = executionContext.frameId && resourceTreeModel && resourceTreeModel.frameForId(executionContext.frameId);
|
| if (!frame)
|
| return false;
|
|
|