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

Issue 2356193002: [Sensors] Adding chrome flag to enable Generic Sensor based APIs (Closed)

Created:
4 years, 3 months ago by Mikhail
Modified:
4 years, 2 months ago
CC:
shalamov, asvitkine+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, jam, kinuko+watch, nasko+codewatch_chromium.org, riju_, timvolodine
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sensors] Adding chrome flag to enable Generic Sensor based APIs This change adds a flag to enable family of sensor APIs which are based on Generic Sensor API including Ambient Light Sensor API. So far it is only available on Android and Mac OS, should become available on other platforms as soon as platform-specific implementation lands. Generic Sensor API: https://w3c.github.io/sensors/ Ambient Light Sensor API: http://w3c.github.io/ambient-light/ Intent to Implement: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/TkfdVqYAYiE BUG=606766 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/d4096a0b4682c42131a40ba0f04e8263b1d19d13 Cr-Commit-Position: refs/heads/master@{#424703}

Patch Set 1 : [Sensors] Adding chrome flag to enable Generic Sensor based APIs #

Patch Set 2 : Rebased #

Patch Set 3 : Updated histograms.xml #

Total comments: 2

Patch Set 4 : Comments from jochen #

Patch Set 5 : updated histograms #

Patch Set 6 : Switch to base::Feature api #

Patch Set 7 : rebased #

Patch Set 8 : export flag also on mac #

Patch Set 9 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -6 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M content/child/runtime_features.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/content_features.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_features.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebRuntimeFeatures.cpp View 1 2 3 4 5 7 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebRuntimeFeatures.h View 1 2 3 4 5 7 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 68 (46 generated)
Mikhail
PTAL
4 years, 3 months ago (2016-09-21 13:39:34 UTC) #11
jochen (gone - plz use gerrit)
I can't approve the histograms.xml change, I can only approve UseCounter additions. Can you explain ...
4 years, 2 months ago (2016-09-26 14:56:37 UTC) #18
Mikhail
On 2016/09/26 14:56:37, jochen (slow) wrote: > I can't approve the histograms.xml change, I can ...
4 years, 2 months ago (2016-09-26 15:15:15 UTC) #19
jochen (gone - plz use gerrit)
they can enable experimental web platform features in about:flags, that should work, no?
4 years, 2 months ago (2016-09-27 18:59:39 UTC) #20
Mikhail
On 2016/09/27 18:59:39, jochen (slow) wrote: > they can enable experimental web platform features in ...
4 years, 2 months ago (2016-09-27 19:03:31 UTC) #21
jochen (gone - plz use gerrit)
ok, in that case, you don't need to use content features, just regular switches are ...
4 years, 2 months ago (2016-09-29 11:59:24 UTC) #22
Mikhail
On 2016/09/29 11:59:24, jochen (slow) wrote: > ok, in that case, you don't need to ...
4 years, 2 months ago (2016-09-29 18:02:37 UTC) #25
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-09-30 10:47:11 UTC) #32
Mikhail
Adding asvitkine@, gayane@ for histograms.xml changes. https://codereview.chromium.org/2356193002/diff/60001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2356193002/diff/60001/chrome/app/generated_resources.grd#newcode15293 chrome/app/generated_resources.grd:15293: + <message name="IDS_FLAGS_ENABLE_GENERIC_SENSOR_NAME" ...
4 years, 2 months ago (2016-09-30 11:25:58 UTC) #34
Alexei Svitkine (slow)
Have you considered using the base::Feature api instead? See go/feature-api-announcement It's the recommended way to ...
4 years, 2 months ago (2016-09-30 14:51:35 UTC) #35
Mikhail
On 2016/09/30 14:51:35, Alexei Svitkine (slow) wrote: > Have you considered using the base::Feature api ...
4 years, 2 months ago (2016-10-03 08:06:25 UTC) #36
Alexei Svitkine (slow)
Jochen, can you elaborate why you advised against using base::Feature? The new feature API is ...
4 years, 2 months ago (2016-10-03 14:57:35 UTC) #37
Alexei Svitkine (slow)
Jochen, can you elaborate why you advised against using base::Feature? The new feature API is ...
4 years, 2 months ago (2016-10-03 14:57:36 UTC) #38
jochen (gone - plz use gerrit)
On 2016/10/03 at 14:57:36, asvitkine wrote: > Jochen, can you elaborate why you advised against ...
4 years, 2 months ago (2016-10-04 14:46:05 UTC) #39
Alexei Svitkine (slow)
On 2016/10/04 14:46:05, jochen (slow) wrote: > On 2016/10/03 at 14:57:36, asvitkine wrote: > > ...
4 years, 2 months ago (2016-10-04 19:42:59 UTC) #40
Mikhail
As far as I understand, the consensus for this CL is using base::Feature api. I ...
4 years, 2 months ago (2016-10-10 12:09:28 UTC) #47
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-10 12:25:26 UTC) #50
Mikhail
Alexei, do you have any comments on this CL? thanks
4 years, 2 months ago (2016-10-11 09:27:05 UTC) #51
Alexei Svitkine (slow)
lgtm
4 years, 2 months ago (2016-10-11 15:41:15 UTC) #52
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/2356193002/180001
4 years, 2 months ago (2016-10-12 09:57:12 UTC) #64
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 2 months ago (2016-10-12 10:12:31 UTC) #66
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 10:15:22 UTC) #68
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/d4096a0b4682c42131a40ba0f04e8263b1d19d13
Cr-Commit-Position: refs/heads/master@{#424703}

Powered by Google App Engine
This is Rietveld 408576698