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

Issue 14146021: Move deprecation messages to UseCounter::measureDeprecatedFeature. (Closed)

Created:
7 years, 8 months ago by Mike West
Modified:
7 years, 8 months ago
Reviewers:
ojan, abarth-chromium
CC:
blink-reviews, abarth-chromium, kinuko, feature-media-reviews_chromium.org, haraken, Nate Chapin, vcarbune.chromium, mkwst+watchlist_chromium.org, jochen (gone - plz use gerrit)
Visibility:
Public.

Description

Move deprecation messages to UseCounter::measureDeprecatedFeature. Currently, deprecation messages are generated and deduplicated inside PageConsole::reportDeprecation. The functionality directly replicates UseCounter's BitVector-based deduplication, and it forces us to store another list of features in PageConsole::DeprecatedFeatures. This can be greatly simplified by moving the functionality into UseCounter, making it a one-stop-shop for measurement and deprecation (we might want to rename it at some point). This has a few advantages. Most importantly, we can ensure that every deprecated feature is measured. This patch adds histogram measurement to `AudioBufferSourceNode.looping`, `HTMLMediaElement.webkitAddKey`, and `HTMLMediaElement.webkitGenerateKeyRequest`, for instance. Going forward, it will be impossible to miss these, as the mechanism is the same. At the same time, this patch allows us to move some of the deprecation work to IDL files: we don't need to notify explicitly if we can declare deprecation via the 'DeprecateAs' IDL attribute. This allows us to remove the explicit deprecation from HTMLMediaElement::webkitAddKey, HTMLMediaElement::webkitGenerateKeyRequest, and DOMWindowQuota::webkitStorageInfo. More to come. BUG=233522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149184

Patch Set 1 #

Patch Set 2 : typo. #

Total comments: 3

Patch Set 3 : Feedback. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -134 lines) Patch
M LayoutTests/http/tests/security/isolatedWorld/all-window-prototypes-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
A + LayoutTests/webaudio/deprecated-audiobuffersource-looping.html View 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/webaudio/deprecated-audiobuffersource-looping-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/scripts/CodeGeneratorV8.pm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 2 chunks +0 lines, -8 lines 0 comments Download
M Source/core/html/HTMLMediaElement.idl View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/page/ContentSecurityPolicy.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/page/PageConsole.h View 2 chunks +0 lines, -29 lines 0 comments Download
M Source/core/page/PageConsole.cpp View 2 chunks +0 lines, -62 lines 0 comments Download
M Source/core/page/UseCounter.h View 1 2 4 chunks +26 lines, -5 lines 0 comments Download
M Source/core/page/UseCounter.cpp View 1 2 3 chunks +69 lines, -2 lines 0 comments Download
M Source/modules/quota/DOMWindowQuota.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M Source/modules/quota/DOMWindowQuota.idl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/AudioBufferSourceNode.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M Source/modules/webaudio/AudioBufferSourceNode.cpp View 1 2 1 chunk +0 lines, -14 lines 0 comments Download
M Source/modules/webaudio/AudioBufferSourceNode.idl View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Use mkwst_at_chromium.org plz.
Hi Kentaro-san and Jochen! Would you mind taking a look at the bindings/IDL portions of ...
7 years, 8 months ago (2013-04-25 11:48:13 UTC) #1
abarth-chromium
Brilliant. LGTM. https://codereview.chromium.org/14146021/diff/5001/Source/core/page/UseCounter.cpp File Source/core/page/UseCounter.cpp (right): https://codereview.chromium.org/14146021/diff/5001/Source/core/page/UseCounter.cpp#newcode35 Source/core/page/UseCounter.cpp:35: #include <wtf/text/WTFString.h> Please use normal " " ...
7 years, 8 months ago (2013-04-26 03:56:06 UTC) #2
ojan
Looks great! One comment nit. https://codereview.chromium.org/14146021/diff/5001/Source/core/page/UseCounter.h File Source/core/page/UseCounter.h (right): https://codereview.chromium.org/14146021/diff/5001/Source/core/page/UseCounter.h#newcode140 Source/core/page/UseCounter.h:140: // "measureDeprecation" sets the ...
7 years, 8 months ago (2013-04-26 04:34:46 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/14146021/11001
7 years, 8 months ago (2013-04-26 08:42:09 UTC) #4
commit-bot: I haz the power
Failed to apply patch for Source/modules/quota/DOMWindowQuota.idl: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-26 08:42:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/14146021/15002
7 years, 8 months ago (2013-04-26 08:45:36 UTC) #6
commit-bot: I haz the power
Presubmit check for 14146021-15002 failed and returned exit status -2001. The presubmit check was hung. ...
7 years, 8 months ago (2013-04-26 08:51:42 UTC) #7
Mike West
7 years, 8 months ago (2013-04-26 08:54:41 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 manually as r149184 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698