|
|
Chromium Code Reviews|
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 #Messages
Total messages: 68 (46 generated)
Description was changed from ========== [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, 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 ========== to ========== [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, 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 ==========
Patchset #1 (id:1) has been deleted
The CQ bit was checked by mikhail.pozdnyakov@intel.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by mikhail.pozdnyakov@intel.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== [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, 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 ========== to ========== [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, 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 ==========
mikhail.pozdnyakov@intel.com changed reviewers: + jochen@chromium.org
PTAL
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by mikhail.pozdnyakov@intel.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
I can't approve the histograms.xml change, I can only approve UseCounter additions. Can you explain why this needs an about:flags entry? https://codereview.chromium.org/2356193002/diff/60001/chrome/app/generated_re... File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2356193002/diff/60001/chrome/app/generated_re... chrome/app/generated_resources.grd:15293: + <message name="IDS_FLAGS_ENABLE_GENERIC_SENSOR_NAME" desc="Title for the flag to enable Generic Sensor."> the message description should be verbose enough so somebody can translate this without reading the entire CL for context
On 2016/09/26 14:56:37, jochen (slow) wrote: > I can't approve the histograms.xml change, I can only approve UseCounter > additions. > > Can you explain why this needs an about:flags entry? I just wanted to provide a way for web developers to try sensors APIs. Should I have more rationales behind it?
they can enable experimental web platform features in about:flags, that should work, no?
On 2016/09/27 18:59:39, jochen (slow) wrote: > they can enable experimental web platform features in about:flags, that should > work, no? Unfortunately it is not enough: we also need to enable mojo interface initialization on browser side (pls look at https://codereview.chromium.org/2356193002/diff/60001/content/browser/frame_h...).
ok, in that case, you don't need to use content features, just regular switches are enough
The CQ bit was checked by mikhail.pozdnyakov@intel.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/09/29 11:59:24, jochen (slow) wrote: > ok, in that case, you don't need to use content features, just regular switches > are enough Done. Please take a look.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by mikhail.pozdnyakov@intel.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
mikhail.pozdnyakov@intel.com changed reviewers: + asvitkine@chromium.org, gayane@chromium.org
Adding asvitkine@, gayane@ for histograms.xml changes. https://codereview.chromium.org/2356193002/diff/60001/chrome/app/generated_re... File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2356193002/diff/60001/chrome/app/generated_re... chrome/app/generated_resources.grd:15293: + <message name="IDS_FLAGS_ENABLE_GENERIC_SENSOR_NAME" desc="Title for the flag to enable Generic Sensor."> On 2016/09/26 14:56:37, jochen (slow) wrote: > the message description should be verbose enough so somebody can translate this > without reading the entire CL for context Done.
Have you considered using the base::Feature api instead? See go/feature-api-announcement It's the recommended way to add new enable/disable things to command line and about flags.
On 2016/09/30 14:51:35, Alexei Svitkine (slow) wrote: > Have you considered using the base::Feature api instead? See > go/feature-api-announcement > > It's the recommended way to add new enable/disable things to command line and > about flags. I tried it first (pls take look at patch set #3), but then changed it to a cmd line switch as was requested by jochen@ (https://codereview.chromium.org/2356193002/#msg22)
Jochen, can you elaborate why you advised against using base::Feature? The new feature API is meant to replace --enable and --disable flags. This is something that Chrome Eng Review explicitly emphasized during review of that proposal - that the end state should be exclusively base::Features used for such cases and not a mixture of two different things. (Now, it will take some time to migrate all the older flags, but I'd rather we not introduce any new ones.) On Mon, Oct 3, 2016 at 4:06 AM, <mikhail.pozdnyakov@intel.com> wrote: > On 2016/09/30 14:51:35, Alexei Svitkine (slow) wrote: > > Have you considered using the base::Feature api instead? See > > go/feature-api-announcement > <https://goto.google.com/feature-api-announcement> > > > > It's the recommended way to add new enable/disable things to command > line and > > about flags. > > I tried it first (pls take look at patch set #3), but then changed it to a > cmd > line switch as was requested by jochen@ > (https://codereview.chromium.org/2356193002/#msg22) > > https://codereview.chromium.org/2356193002/ > -- You received this message because you are subscribed to the Google Groups "Chromium-reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
Jochen, can you elaborate why you advised against using base::Feature? The new feature API is meant to replace --enable and --disable flags. This is something that Chrome Eng Review explicitly emphasized during review of that proposal - that the end state should be exclusively base::Features used for such cases and not a mixture of two different things. (Now, it will take some time to migrate all the older flags, but I'd rather we not introduce any new ones.) On Mon, Oct 3, 2016 at 4:06 AM, <mikhail.pozdnyakov@intel.com> wrote: > On 2016/09/30 14:51:35, Alexei Svitkine (slow) wrote: > > Have you considered using the base::Feature api instead? See > > go/feature-api-announcement > <https://goto.google.com/feature-api-announcement> > > > > It's the recommended way to add new enable/disable things to command > line and > > about flags. > > I tried it first (pls take look at patch set #3), but then changed it to a > cmd > line switch as was requested by jochen@ > (https://codereview.chromium.org/2356193002/#msg22) > > https://codereview.chromium.org/2356193002/ > -- You received this message because you are subscribed to the Google Groups "Blink Reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to blink-reviews+unsubscribe@chromium.org.
On 2016/10/03 at 14:57:36, asvitkine wrote: > Jochen, can you elaborate why you advised against using base::Feature? > > The new feature API is meant to replace --enable and --disable flags. This > is something that Chrome Eng Review explicitly emphasized during review of > that proposal - that the end state should be exclusively base::Features > used for such cases and not a mixture of two different things. (Now, it > will take some time to migrate all the older flags, but I'd rather we not > introduce any new ones.) fair enough. in this case, it's not adding a flag, however, so the diff was just smaller. Note that runtime enabled features currently automatically create --enable-$feature and --disable-$feature flags - maybe we should update the code to automatically create base::Features instead / in addition?
On 2016/10/04 14:46:05, jochen (slow) wrote: > On 2016/10/03 at 14:57:36, asvitkine wrote: > > Jochen, can you elaborate why you advised against using base::Feature? > > > > The new feature API is meant to replace --enable and --disable flags. This > > is something that Chrome Eng Review explicitly emphasized during review of > > that proposal - that the end state should be exclusively base::Features > > used for such cases and not a mixture of two different things. (Now, it > > will take some time to migrate all the older flags, but I'd rather we not > > introduce any new ones.) > > fair enough. > > in this case, it's not adding a flag, however, so the diff was just smaller. Ah, I see - so because the flag existed already it was a smaller change to add it to about flags? I still feel like we should just migrate this and this is a good opportunity to do so - since the code is actually being touched in this CL. (Else who knows when it will next be touched?) > > Note that runtime enabled features currently automatically create > --enable-$feature and --disable-$feature flags - maybe we should update the code > to automatically create base::Features instead / in addition? It does sound like we should update that code. Can you file a crbug about that with the details of how that currently works? Thanks!
The CQ bit was checked by mikhail.pozdnyakov@intel.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
The CQ bit was checked by mikhail.pozdnyakov@intel.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
As far as I understand, the consensus for this CL is using base::Feature api. I moved back to it in the latest patch. Please take a look.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
Alexei, do you have any comments on this CL? thanks
lgtm
The CQ bit was checked by mikhail.pozdnyakov@intel.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== [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, 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 ========== to ========== [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 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
The CQ bit was checked by mikhail.pozdnyakov@intel.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
The CQ bit was checked by mikhail.pozdnyakov@intel.com
The patchset sent to the CQ was uploaded after l-g-t-m from jochen@chromium.org, asvitkine@chromium.org Link to the patchset: https://codereview.chromium.org/2356193002/#ps180001 (title: "rebased")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== [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 ========== to ========== [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 ==========
Message was sent while issue was closed.
Committed patchset #9 (id:180001)
Message was sent while issue was closed.
Description was changed from ========== [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 ========== to ========== [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} ==========
Message was sent while issue was closed.
Patchset 9 (id:??) landed as https://crrev.com/d4096a0b4682c42131a40ba0f04e8263b1d19d13 Cr-Commit-Position: refs/heads/master@{#424703} |
