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

Issue 2894063002: Expose UseCounter::Feature enum out of blink as WebFeature (Closed)

Created:
3 years, 7 months ago by lunalu1
Modified:
3 years, 6 months ago
Reviewers:
Nico, Rick Byers
CC:
darktears, apavlov+blink_chromium.org, asvitkine+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-bindings_chromium.org, blink-reviews-css, blink-reviews-frames_chromium.org, blink-worker-reviews_chromium.org, chromium-reviews, dglazkov+blink, falken+watch_chromium.org, horo+watch_chromium.org, kinuko+worker_chromium.org, kinuko+watch, rwlbuis, shimazu+worker_chromium.org, Yoav Weiss
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose UseCounter::Feature enum out of blink as WebFeature UseCounter support is moving to the browser process, and so this enum definition needs to be exposed publicly. Copied UseCounter::Feature enum definition to public/platform/WebFeature.h Created overloaded methods for those that take UseCounter::Feature. Updated templates that generate code that uses UseCounter::Feature to use WebFeature instead. Updated file pass for the enum in presubmit checker. Future CLs will update all the callers and remove the old definition. BUG=724287 Review-Url: https://codereview.chromium.org/2894063002 Cr-Commit-Position: refs/heads/master@{#475942} Committed: https://chromium.googlesource.com/chromium/src/+/addca576a47a9eefc65f1c32ce783ff5cb24bf98

Patch Set 1 : Initial check in #

Total comments: 23

Patch Set 2 : Codereview #

Patch Set 3 : Rebase #

Total comments: 1

Patch Set 4 : Codereview: revert change in Histogram.h #

Patch Set 5 : Rebase #

Total comments: 4

Patch Set 6 : Codereview (added WATCHLIST and renamed UseCounterDeprecatedFeature.h) + rebase #

Patch Set 7 : q #

Patch Set 8 : Move enum Feature definition to UseCounterFeature.def and include it in WebFeature and UseCounter::… #

Patch Set 9 : Update source path for UseCounter Feature in presubmit checkers #

Patch Set 10 : Rebase #

Patch Set 11 : Rebase update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1792 lines, -1696 lines) Patch
M WATCHLISTS View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_utilities.py View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl View 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl View 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestConstants.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp View 1 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 1 18 chunks +31 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Deprecation.h View 2 chunks +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/PRESUBMIT.py View 1 chunk +0 lines, -37 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +27 lines, -1558 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 1 2 3 4 5 7 chunks +25 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounterTest.cpp View 1 2 chunks +17 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -7 lines 0 comments Download
A third_party/WebKit/public/platform/PRESUBMIT.py View 1 2 3 4 5 6 7 8 1 chunk +56 lines, -0 lines 0 comments Download
A third_party/WebKit/public/platform/UseCounterFeature.def View 1 2 3 4 5 6 7 8 9 10 1 chunk +1557 lines, -0 lines 0 comments Download
A third_party/WebKit/public/platform/WebFeature.h View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/histograms/update_use_counter_feature_enum.py View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 92 (60 generated)
lunalu1
Hi Rick, please take a look.
3 years, 7 months ago (2017-05-19 14:41:53 UTC) #4
Rick Byers
Thanks Luna. Big picture this seems like a good plan. The main problem I see ...
3 years, 7 months ago (2017-05-23 19:51:50 UTC) #9
Rick Byers
Oh and I tweaked your CL description a bit to clarify the intent here, I ...
3 years, 7 months ago (2017-05-23 20:07:44 UTC) #10
lunalu1
Hi Rick, I keep getting patch failures due to new features added. Could you please ...
3 years, 7 months ago (2017-05-24 20:56:33 UTC) #17
Rick Byers
This looks much cleaner now, thanks! Just one issue. https://codereview.chromium.org/2894063002/diff/60001/third_party/WebKit/Source/platform/Histogram.h File third_party/WebKit/Source/platform/Histogram.h (right): https://codereview.chromium.org/2894063002/diff/60001/third_party/WebKit/Source/platform/Histogram.h#newcode30 third_party/WebKit/Source/platform/Histogram.h:30: ...
3 years, 7 months ago (2017-05-25 01:53:24 UTC) #20
lunalu1
Done. Thanks. PTAL.
3 years, 7 months ago (2017-05-25 14:57:22 UTC) #22
lunalu1
Sorry, I forgot to take out an include in Histogram.h. Uploading another patch.
3 years, 7 months ago (2017-05-25 14:58:55 UTC) #24
lunalu1
Hi Rick, could you PTAL? Thanks
3 years, 7 months ago (2017-05-25 18:45:46 UTC) #28
Rick Byers
LGTM
3 years, 7 months ago (2017-05-25 21:38:25 UTC) #31
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/2894063002/120001
3 years, 7 months ago (2017-05-26 14:46:49 UTC) #34
lunalu1
Hi thakis, could you please take a look at: tools/metrics/histograms/update_use_counter_feature_enum.py Thanks
3 years, 7 months ago (2017-05-26 14:48:34 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/448692)
3 years, 7 months ago (2017-05-26 14:58:24 UTC) #38
Nico
I'm a bit confused about this change; how much that matters depends a bit on ...
3 years, 7 months ago (2017-05-26 20:22:31 UTC) #39
Rick Byers
On 2017/05/26 20:22:31, Nico wrote: > I'm a bit confused about this change; how much ...
3 years, 6 months ago (2017-05-29 14:25:50 UTC) #40
lunalu1
Hi, Thanks for the comments. I made below changes: renamed UseCounterDeprecatedFeature.in to UseCounterDeprecatedFeature.h and added ...
3 years, 6 months ago (2017-05-29 18:46:33 UTC) #55
Nico
On 2017/05/29 18:46:33, loonybear wrote: > Hi, > > Thanks for the comments. I made ...
3 years, 6 months ago (2017-05-29 18:56:23 UTC) #56
lunalu1
On 2017/05/29 at 18:56:23, thakis wrote: > On 2017/05/29 18:46:33, loonybear wrote: > > Hi, ...
3 years, 6 months ago (2017-05-29 21:15:10 UTC) #59
Nico
If there are dupe syms wrt CSS, why don't we have them in-tree atm? If ...
3 years, 6 months ago (2017-05-29 21:47:03 UTC) #60
Nico
If there are dupe syms wrt CSS, why don't we have them in-tree atm? If ...
3 years, 6 months ago (2017-05-29 21:47:03 UTC) #61
lunalu1
Done. Please take a look. Thanks
3 years, 6 months ago (2017-05-30 15:33:35 UTC) #63
lunalu1
On 2017/05/30 at 15:33:35, loonybear wrote: > Done. Please take a look. > > Thanks ...
3 years, 6 months ago (2017-05-30 15:41:36 UTC) #65
Rick Byers
On 2017/05/29 18:46:33, loonybear wrote: > Hi, > > Thanks for the comments. I made ...
3 years, 6 months ago (2017-05-30 16:05:59 UTC) #66
lunalu1
Done. Please take another look. Thanks
3 years, 6 months ago (2017-05-30 17:01:17 UTC) #68
Nico
lgtm
3 years, 6 months ago (2017-05-30 17:08:34 UTC) #70
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/2894063002/240001
3 years, 6 months ago (2017-05-30 17:09:26 UTC) #73
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/frame/UseCounter.h: While running git apply --index -3 -p1; error: patch ...
3 years, 6 months ago (2017-05-30 18:59:20 UTC) #75
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/2894063002/260001
3 years, 6 months ago (2017-05-30 19:25:59 UTC) #78
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/189450) linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 6 months ago (2017-05-30 19:34:27 UTC) #80
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/2894063002/280001
3 years, 6 months ago (2017-05-30 21:24:07 UTC) #84
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/467709)
3 years, 6 months ago (2017-05-31 00:42:57 UTC) #86
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/2894063002/300001
3 years, 6 months ago (2017-05-31 14:42:54 UTC) #89
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 16:44:55 UTC) #92
Message was sent while issue was closed.
Committed patchset #11 (id:300001) as
https://chromium.googlesource.com/chromium/src/+/addca576a47a9eefc65f1c32ce78...

Powered by Google App Engine
This is Rietveld 408576698