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

Issue 2458613004: Record the initial state of the Physical Web at startup (Closed)

Created:
4 years, 1 month ago by mattreynolds
Modified:
3 years, 11 months ago
CC:
chromium-reviews, mac-reviews_chromium.org, asvitkine+watch_chromium.org, sdefresne+watch_chromium.org, jochen (gone - plz use gerrit)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Record the initial state of the Physical Web at startup Add a histogram PhysicalWeb.InitialState.IosChrome to record the startup state of Bluetooth, Location, and the Physical Web preference. BUG=630769 Review-Url: https://codereview.chromium.org/2458613004 Cr-Commit-Position: refs/heads/master@{#442000} Committed: https://chromium.googlesource.com/chromium/src/+/0b12fdc62e87168506a3e9f0a52cc06b88efea1f

Patch Set 1 #

Total comments: 7

Patch Set 2 : remove pre-iOS10 API #

Patch Set 3 : move reporting to IOSChromePhysicalWebDataSource #

Total comments: 10

Patch Set 4 : changes for olivierrobin@, rohitrao@, sdefresne@ #

Total comments: 1

Patch Set 5 : rebase, use local state pref #

Total comments: 6

Patch Set 6 : add startup delay #

Total comments: 4

Patch Set 7 : fix retain loop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -8 lines) Patch
M ios/chrome/browser/application_context_impl.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/physical_web/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/physical_web/create_physical_web_data_source.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/physical_web/create_physical_web_data_source.mm View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.h View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.mm View 1 2 3 4 5 6 1 chunk +8 lines, -1 line 0 comments Download
A ios/chrome/browser/physical_web/physical_web_initial_state_recorder.h View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
A ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm View 1 2 3 4 5 6 1 chunk +170 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 2 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (10 generated)
mattreynolds
https://codereview.chromium.org/2458613004/diff/1/ios/chrome/browser/physical_web/start_physical_web_discovery.mm File ios/chrome/browser/physical_web/start_physical_web_discovery.mm (right): https://codereview.chromium.org/2458613004/diff/1/ios/chrome/browser/physical_web/start_physical_web_discovery.mm#newcode47 ios/chrome/browser/physical_web/start_physical_web_discovery.mm:47: locationAuthorized:location_authorized] autorelease]; Not sure if this is kosher. The ...
4 years, 1 month ago (2016-10-27 23:56:04 UTC) #1
mattreynolds
Hi Rohit, PTAL
4 years, 1 month ago (2016-10-27 23:56:32 UTC) #3
rohitrao (ping after 24h)
https://codereview.chromium.org/2458613004/diff/1/ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm File ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm (right): https://codereview.chromium.org/2458613004/diff/1/ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm#newcode16 ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm:16: // permission. Bits 4:3 encode the Physical Web preference ...
4 years, 1 month ago (2016-10-31 19:41:08 UTC) #4
mattreynolds
https://codereview.chromium.org/2458613004/diff/1/ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm File ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm (right): https://codereview.chromium.org/2458613004/diff/1/ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm#newcode16 ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm:16: // permission. Bits 4:3 encode the Physical Web preference ...
4 years, 1 month ago (2016-11-01 17:17:17 UTC) #5
mattreynolds
https://codereview.chromium.org/2458613004/diff/40001/ios/chrome/browser/physical_web/start_physical_web_discovery.mm File ios/chrome/browser/physical_web/start_physical_web_discovery.mm (right): https://codereview.chromium.org/2458613004/diff/40001/ios/chrome/browser/physical_web/start_physical_web_discovery.mm#newcode68 ios/chrome/browser/physical_web/start_physical_web_discovery.mm:68: (IOSChromePhysicalWebDataSource*)data_source; This is safe since we're in iOS-specific code. ...
4 years, 1 month ago (2016-11-04 00:23:08 UTC) #6
mattreynolds
https://codereview.chromium.org/2458613004/diff/40001/ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.h File ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.h (right): https://codereview.chromium.org/2458613004/diff/40001/ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.h#newcode6 ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.h:6: #define IOS_CHROME_BROWSER_PHYSICAL_WEB_IOS_CHROME_PHYSICAL_WEB_DATA_SOURCE_H_ The data source implementation shouldn't be in ...
4 years, 1 month ago (2016-11-04 00:28:53 UTC) #7
rohitrao (ping after 24h)
A few questions, to make sure I understand what's happening here: 1) In an earlier ...
4 years, 1 month ago (2016-11-10 13:01:44 UTC) #8
sdefresne
https://codereview.chromium.org/2458613004/diff/40001/ios/chrome/browser/physical_web/start_physical_web_discovery.mm File ios/chrome/browser/physical_web/start_physical_web_discovery.mm (right): https://codereview.chromium.org/2458613004/diff/40001/ios/chrome/browser/physical_web/start_physical_web_discovery.mm#newcode68 ios/chrome/browser/physical_web/start_physical_web_discovery.mm:68: (IOSChromePhysicalWebDataSource*)data_source; On 2016/11/04 00:23:07, mattreynolds wrote: > This is ...
4 years, 1 month ago (2016-11-10 13:15:42 UTC) #10
Olivier
https://codereview.chromium.org/2458613004/diff/40001/ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm File ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm (right): https://codereview.chromium.org/2458613004/diff/40001/ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm#newcode21 ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm:21: // permission. Bits 4:3 encode the Physical Web preference ...
4 years, 1 month ago (2016-11-10 18:08:08 UTC) #12
mattreynolds
Re: Rohit's questions: > 1) Does this class now live forever? Yes > 2) Instead ...
4 years, 1 month ago (2016-11-11 02:26:10 UTC) #13
mattreynolds
This will also require some changes in the internal repo https://codereview.chromium.org/2458613004/diff/60001/ios/chrome/browser/physical_web/physical_web_preference_manager.h File ios/chrome/browser/physical_web/physical_web_preference_manager.h (right): https://codereview.chromium.org/2458613004/diff/60001/ios/chrome/browser/physical_web/physical_web_preference_manager.h#newcode5 ...
4 years, 1 month ago (2016-11-11 02:36:08 UTC) #14
mattreynolds
I'm working through the changes necessary to safely move the pref into local_state and add ...
4 years, 1 month ago (2016-11-11 19:56:13 UTC) #15
rohitrao (ping after 24h)
Just to double-check, is it ok for this pref to be in LocalState? Is the ...
4 years, 1 month ago (2016-11-11 20:05:05 UTC) #16
mattreynolds
On 2016/11/11 20:05:05, rohitrao wrote: > Just to double-check, is it ok for this pref ...
4 years, 1 month ago (2016-11-11 20:32:13 UTC) #17
Olivier
lgtm
4 years, 1 month ago (2016-11-16 16:56:33 UTC) #18
mattreynolds
Hi Rohit, please take another look
4 years ago (2016-12-09 00:58:47 UTC) #19
rohitrao (ping after 24h)
https://codereview.chromium.org/2458613004/diff/80001/ios/chrome/browser/application_context_impl.cc File ios/chrome/browser/application_context_impl.cc (right): https://codereview.chromium.org/2458613004/diff/80001/ios/chrome/browser/application_context_impl.cc#newcode289 ios/chrome/browser/application_context_impl.cc:289: ApplicationContextImpl::GetPhysicalWebDataSource() { When is this method called for the ...
4 years ago (2016-12-12 12:54:17 UTC) #20
mattreynolds
https://codereview.chromium.org/2458613004/diff/80001/ios/chrome/browser/application_context_impl.cc File ios/chrome/browser/application_context_impl.cc (right): https://codereview.chromium.org/2458613004/diff/80001/ios/chrome/browser/application_context_impl.cc#newcode289 ios/chrome/browser/application_context_impl.cc:289: ApplicationContextImpl::GetPhysicalWebDataSource() { On 2016/12/12 12:54:17, rohitrao wrote: > When ...
4 years ago (2016-12-12 21:48:46 UTC) #21
rohitrao (ping after 24h)
lgtm https://codereview.chromium.org/2458613004/diff/100001/ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm File ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm (right): https://codereview.chromium.org/2458613004/diff/100001/ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm#newcode85 ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm:85: if (startupDelayTimer_.get()) { Note that this condition will ...
3 years, 11 months ago (2017-01-04 19:19:22 UTC) #22
mattreynolds
Thanks Rohit! https://codereview.chromium.org/2458613004/diff/100001/ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm File ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm (right): https://codereview.chromium.org/2458613004/diff/100001/ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm#newcode85 ios/chrome/browser/physical_web/physical_web_initial_state_recorder.mm:85: if (startupDelayTimer_.get()) { On 2017/01/04 19:19:22, rohitrao ...
3 years, 11 months ago (2017-01-04 23:11:03 UTC) #23
mattreynolds
jochen@chromium.org: Please review changes in tools/metrics/histograms
3 years, 11 months ago (2017-01-04 23:13:14 UTC) #25
jochen (gone - plz use gerrit)
On 2017/01/04 at 23:13:14, mattreynolds wrote: > jochen@chromium.org: Please review changes in tools/metrics/histograms
3 years, 11 months ago (2017-01-05 08:05:41 UTC) #26
jochen (gone - plz use gerrit)
I can only approve UseCounter additions, please ask a member of the metrics team for ...
3 years, 11 months ago (2017-01-05 08:06:51 UTC) #27
mattreynolds
Hi rkaplow, PTAL at tools/metrics/histograms
3 years, 11 months ago (2017-01-05 18:49:00 UTC) #30
rkaplow
lgtm
3 years, 11 months ago (2017-01-06 15:42:10 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/2458613004/120001
3 years, 11 months ago (2017-01-06 18:01:23 UTC) #34
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 19:13:05 UTC) #37
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/0b12fdc62e87168506a3e9f0a52c...

Powered by Google App Engine
This is Rietveld 408576698