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

Issue 2765713002: Associate a scan mode with Physical Web listeners (Closed)

Created:
3 years, 9 months ago by cco3
Modified:
3 years, 9 months ago
CC:
chromium-reviews, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Associate a scan mode with Physical Web listeners Instead of having a blanket scanning policy, it would be nice if client code could specify the kind of scan required. This change lets Physical Web listeners specify a scan mode when they register. This mode is recorded, but not currently used. A followup CL will surface this to the platform layer where Android/iOS can use it appropriately. BUG=703308 Review-Url: https://codereview.chromium.org/2765713002 Cr-Commit-Position: refs/heads/master@{#459507} Committed: https://chromium.googlesource.com/chromium/src/+/1c16fca164db734cdafd0a428423392dbd3a93ab

Patch Set 1 #

Total comments: 4

Patch Set 2 : Check for readded listeners #

Patch Set 3 : Allow multiple unregisters #

Patch Set 4 : Remove logging include #

Total comments: 1

Patch Set 5 : Use key as parame to erase() #

Messages

Total messages: 22 (9 generated)
cco3
Hi Matt. I have a followup CL to use the data when this one goes ...
3 years, 9 months ago (2017-03-21 01:07:12 UTC) #2
mattreynolds
https://codereview.chromium.org/2765713002/diff/1/components/physical_web/data_source/physical_web_data_source.h File components/physical_web/data_source/physical_web_data_source.h (right): https://codereview.chromium.org/2765713002/diff/1/components/physical_web/data_source/physical_web_data_source.h#newcode26 components/physical_web/data_source/physical_web_data_source.h:26: BACKGROUND_INTERMITTENT = 1 << 0, What should we do ...
3 years, 9 months ago (2017-03-21 19:02:56 UTC) #3
cco3
https://codereview.chromium.org/2765713002/diff/1/components/physical_web/data_source/physical_web_data_source.h File components/physical_web/data_source/physical_web_data_source.h (right): https://codereview.chromium.org/2765713002/diff/1/components/physical_web/data_source/physical_web_data_source.h#newcode26 components/physical_web/data_source/physical_web_data_source.h:26: BACKGROUND_INTERMITTENT = 1 << 0, On 2017/03/21 19:02:56, mattreynolds ...
3 years, 9 months ago (2017-03-21 19:28:45 UTC) #4
mattreynolds
lgtm
3 years, 9 months ago (2017-03-21 20:21:12 UTC) #5
cco3
Hi David, would you be able to take a look at this change? Thanks!
3 years, 9 months ago (2017-03-21 20:21:35 UTC) #7
David Trainor- moved to gerrit
lgtm
3 years, 9 months ago (2017-03-22 03:14:12 UTC) #8
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/2765713002/60001
3 years, 9 months ago (2017-03-23 18:04:38 UTC) #10
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/393102)
3 years, 9 months ago (2017-03-23 18:15:13 UTC) #12
cco3
Hi Vitali, could I get our LGTM on the one-liner in components/ntp_snippets?
3 years, 9 months ago (2017-03-23 19:34:33 UTC) #14
cco3
On 2017/03/23 19:34:33, cco3 wrote: > Hi Vitali, could I get our LGTM on the ...
3 years, 9 months ago (2017-03-23 19:34:53 UTC) #15
vitaliii
One nit in physical_web_data_source_impl.cc LGTM for components/ntp_snippets. https://codereview.chromium.org/2765713002/diff/60001/components/physical_web/data_source/physical_web_data_source_impl.cc File components/physical_web/data_source/physical_web_data_source_impl.cc (right): https://codereview.chromium.org/2765713002/diff/60001/components/physical_web/data_source/physical_web_data_source_impl.cc#newcode29 components/physical_web/data_source/physical_web_data_source_impl.cc:29: scan_modes_.erase(scan_modes_.find(physical_web_listener)); Nit: ...
3 years, 9 months ago (2017-03-24 09:41:49 UTC) #16
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/2765713002/80001
3 years, 9 months ago (2017-03-24 18:01:19 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 19:10:48 UTC) #22
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/1c16fca164db734cdafd0a428423...

Powered by Google App Engine
This is Rietveld 408576698