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

Issue 2782773002: [DevTools] Remove SDKModels' fromTarget methods (Closed)

Created:
3 years, 8 months ago by dgozman
Modified:
3 years, 8 months ago
Reviewers:
caseq, einbinder
CC:
chromium-reviews, shans, dougt+watch_chromium.org, apavlov+blink_chromium.org, dmazzoni+watch_chromium.org, extensions-reviews_chromium.org, caseq+blink_chromium.org, aboxhall, aboxhall+watch_chromium.org, je_julie, devtools-reviews_chromium.org, blink-reviews, chromium-apps-reviews_chromium.org, Eric Willigers, rjwright, blink-reviews-style_chromium.org, lushnikov+blink_chromium.org, dmazzoni, yuzo+watch_chromium.org, darktears, blink-reviews-animation_chromium.org, nektar+watch_chromium.org, pfeldman+blink_chromium.org, nektarios, dtseng+watch_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Remove SDKModels' fromTarget methods One can use target.model(ModelClass) now. Fixed a couple of bugs along the way which could have accessed null models. BUG=none Review-Url: https://codereview.chromium.org/2782773002 Cr-Commit-Position: refs/heads/master@{#461304} Committed: https://chromium.googlesource.com/chromium/src/+/7d149ef5473e980f0b3babd4d0f2839cb9338e73

Patch Set 1 #

Total comments: 6

Patch Set 2 : addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -265 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/cache-storage/cache-data.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/cache-storage/cache-deletion.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/cache-storage/cache-entry-deletion.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/cache-storage/cache-names.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js View 2 chunks +5 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/elements/elements-panel-restore-selection-when-node-comes-later.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/execution-context-sorted.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/last-execution-context.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/accessibility/AXTreePane.js View 1 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js View 1 2 chunks +0 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/audits/AuditExtensionCategory.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/audits/AuditRules.js View 3 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/ResourceUtils.js View 2 chunks +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/components/DOMBreakpointsSidebarPane.js View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js View 7 chunks +10 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/elements/InspectElementModeController.js View 2 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/emulation/TouchModel.js View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/extensions/ExtensionServer.js View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/layers/LayerTreeModel.js View 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/layers/LayersPanel.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/ExecutionContextSelector.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/AppManifestView.js View 3 chunks +6 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/ApplicationCacheModel.js View 2 chunks +1 line, -9 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebar.js View 7 chunks +13 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/ClearStorageView.js View 4 chunks +12 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/DOMStorageModel.js View 1 chunk +1 line, -9 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/DatabaseModel.js View 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/IndexedDBModel.js View 2 chunks +1 line, -9 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js View 2 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/ResourcesSection.js View 3 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/resources/ServiceWorkersView.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/CSSStyleSheetHeader.js View 1 2 chunks +1 line, -9 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/CookieModel.js View 2 chunks +3 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js View 3 chunks +2 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/LayerTreeBase.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js View 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js View 3 chunks +5 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/SecurityOriginManager.js View 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerCacheModel.js View 1 chunk +1 line, -9 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js View 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js View 4 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (8 generated)
dgozman
Could you please take a look?
3 years, 8 months ago (2017-03-29 00:55:36 UTC) #5
caseq
lgtm https://codereview.chromium.org/2782773002/diff/1/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js File third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js (right): https://codereview.chromium.org/2782773002/diff/1/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js#newcode146 third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js:146: this.target().model(SDK.DOMModel).nodeHighlightRequested(node.id); just do this.deferredDOMNode().highlight() instead. Perhaps even inline ...
3 years, 8 months ago (2017-03-29 17:48:43 UTC) #6
dgozman
https://codereview.chromium.org/2782773002/diff/1/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js File third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js (right): https://codereview.chromium.org/2782773002/diff/1/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js#newcode146 third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js:146: this.target().model(SDK.DOMModel).nodeHighlightRequested(node.id); On 2017/03/29 17:48:42, caseq wrote: > just do ...
3 years, 8 months ago (2017-04-01 00:22:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2782773002/20001
3 years, 8 months ago (2017-04-01 00:23:09 UTC) #10
commit-bot: I haz the power
3 years, 8 months ago (2017-04-01 01:53:07 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7d149ef5473e980f0b3babd4d0f2...

Powered by Google App Engine
This is Rietveld 408576698