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

Issue 2973243002: Adding pref to store the user-selected proximity threshold. (Closed)

Created:
3 years, 5 months ago by sacomoto
Modified:
3 years, 5 months ago
Reviewers:
stevenjb, Tim Song, battre
CC:
chromium-reviews, extensions-reviews_chromium.org, jlklein+watch-tether_chromium.org, lesliewatkins+watch-tether_chromium.org, droger+watchlist_chromium.org, tengs+watch-tether_chromium.org, michaelpg+watch-md-settings_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, khorimoto+watch-tether_chromium.org, hansberry+watch-tether_chromium.org, michaelpg+watch-md-ui_chromium.org, jhawkins+watch-tether_chromium.org, arv+watch_chromium.org, chromium-apps-reviews_chromium.org, srahim+watch_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding pref to store the user-selected proximity threshold. BUG=724715 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2973243002 Cr-Commit-Position: refs/heads/master@{#487630} Committed: https://chromium.googlesource.com/chromium/src/+/474f53bea3f44cba536a1c6f6fe8611d4d89f720

Patch Set 1 #

Patch Set 2 : Missing comment #

Total comments: 10

Patch Set 3 : Addressing comments #

Patch Set 4 : Fixing tests #

Total comments: 6

Patch Set 5 : Addressing comments #

Patch Set 6 : Fixing browser tests #

Total comments: 14

Patch Set 7 : Addressing DEPS issues #

Total comments: 16

Patch Set 8 : Rebasing #

Patch Set 9 : Removing settings page changes #

Patch Set 10 : Reverting string changes #

Patch Set 11 : Fixing merge issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -35 lines) Patch
M chrome/browser/signin/easy_unlock_service.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service_regular.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -0 lines 0 comments Download
M components/proximity_auth/BUILD.gn View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M components/proximity_auth/DEPS View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M components/proximity_auth/proximity_auth_pref_manager.h View 1 2 3 4 5 6 3 chunks +21 lines, -2 lines 0 comments Download
M components/proximity_auth/proximity_auth_pref_manager.cc View 1 2 3 4 5 6 3 chunks +17 lines, -2 lines 0 comments Download
M components/proximity_auth/proximity_auth_pref_manager_unittest.cc View 1 2 3 4 5 6 4 chunks +17 lines, -3 lines 0 comments Download
M components/proximity_auth/proximity_auth_pref_names.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/proximity_auth/proximity_auth_pref_names.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M components/proximity_auth/proximity_auth_system.h View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M components/proximity_auth/proximity_auth_system.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download
M components/proximity_auth/proximity_monitor_impl.h View 1 2 3 4 5 chunks +14 lines, -1 line 0 comments Download
M components/proximity_auth/proximity_monitor_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +30 lines, -8 lines 0 comments Download
M components/proximity_auth/proximity_monitor_impl_unittest.cc View 1 2 3 4 7 chunks +28 lines, -2 lines 0 comments Download
M components/proximity_auth/unlock_manager_impl.h View 1 2 3 4 4 chunks +8 lines, -2 lines 0 comments Download
M components/proximity_auth/unlock_manager_impl.cc View 1 2 3 4 5 6 7 4 chunks +11 lines, -4 lines 0 comments Download
M components/proximity_auth/unlock_manager_impl_unittest.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 54 (36 generated)
sacomoto
Hey Tim, I got the RSSI selector working, I still need to fix / add ...
3 years, 5 months ago (2017-07-07 16:24:49 UTC) #4
Tim Song
Thanks for this. From my tests with eve and pixel xl, -70 seemed to work ...
3 years, 5 months ago (2017-07-07 21:48:24 UTC) #5
sacomoto
PTAL. https://codereview.chromium.org/2973243002/diff/20001/chrome/app/settings_strings.grdp File chrome/app/settings_strings.grdp (right): https://codereview.chromium.org/2973243002/diff/20001/chrome/app/settings_strings.grdp#newcode1118 chrome/app/settings_strings.grdp:1118: <message name="IDS_SETTINGS_EASY_UNLOCK_PROXIMITY_THRESHOLD_FAR" desc="The text on the Easy unlock ...
3 years, 5 months ago (2017-07-10 16:54:07 UTC) #7
Tim Song
https://codereview.chromium.org/2973243002/diff/60001/components/proximity_auth/proximity_auth_pref_manager.h File components/proximity_auth/proximity_auth_pref_manager.h (right): https://codereview.chromium.org/2973243002/diff/60001/components/proximity_auth/proximity_auth_pref_manager.h#newcode73 components/proximity_auth/proximity_auth_pref_manager.h:73: virtual void SetProximityThreshold(int value); This |value| should be an ...
3 years, 5 months ago (2017-07-10 19:27:56 UTC) #12
sacomoto
https://codereview.chromium.org/2973243002/diff/60001/components/proximity_auth/proximity_auth_pref_manager.h File components/proximity_auth/proximity_auth_pref_manager.h (right): https://codereview.chromium.org/2973243002/diff/60001/components/proximity_auth/proximity_auth_pref_manager.h#newcode73 components/proximity_auth/proximity_auth_pref_manager.h:73: virtual void SetProximityThreshold(int value); On 2017/07/10 19:27:56, Tim Song ...
3 years, 5 months ago (2017-07-11 09:56:06 UTC) #13
Tim Song
lgtm
3 years, 5 months ago (2017-07-11 18:34:46 UTC) #18
sacomoto
stevenjb@, PTAL at the resource and strings. battre@, PTAL at the proximity_auth/DEPS.
3 years, 5 months ago (2017-07-11 21:15:16 UTC) #23
Tim Song
Hey Gustavo, I just noticed a few issues with the dependencies. Please take a look. ...
3 years, 5 months ago (2017-07-11 23:45:58 UTC) #26
battre
LGTM once the dependency issue pointed out by Tim is resolved. https://codereview.chromium.org/2973243002/diff/100001/chrome/app/settings_strings.grdp File chrome/app/settings_strings.grdp (right): ...
3 years, 5 months ago (2017-07-12 07:18:47 UTC) #27
sacomoto
https://codereview.chromium.org/2973243002/diff/100001/chrome/app/settings_strings.grdp File chrome/app/settings_strings.grdp (right): https://codereview.chromium.org/2973243002/diff/100001/chrome/app/settings_strings.grdp#newcode1113 chrome/app/settings_strings.grdp:1113: very close On 2017/07/12 07:18:47, battre wrote: > Drive ...
3 years, 5 months ago (2017-07-12 15:52:53 UTC) #28
stevenjb
Please also update easy_unlock_browsertest_chromeos.js (You might want to exclude the settings changes from this CL ...
3 years, 5 months ago (2017-07-17 16:43:37 UTC) #33
stevenjb
https://codereview.chromium.org/2973243002/diff/120001/chrome/browser/resources/settings/people_page/lock_screen.html File chrome/browser/resources/settings/people_page/lock_screen.html (right): https://codereview.chromium.org/2973243002/diff/120001/chrome/browser/resources/settings/people_page/lock_screen.html#newcode76 chrome/browser/resources/settings/people_page/lock_screen.html:76: class="list-item underbar"> 'underbar' should be removed here (see next ...
3 years, 5 months ago (2017-07-17 16:55:09 UTC) #34
sacomoto
@stevenjb, I'm following your suggestion and removing all the settings change from this CL. I'm ...
3 years, 5 months ago (2017-07-18 18:46:19 UTC) #38
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/2973243002/200001
3 years, 5 months ago (2017-07-18 22:06:40 UTC) #44
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/493045)
3 years, 5 months ago (2017-07-18 22:19:06 UTC) #46
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/2973243002/200001
3 years, 5 months ago (2017-07-18 22:21:26 UTC) #49
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://chromium.googlesource.com/chromium/src/+/474f53bea3f44cba536a1c6f6fe8611d4d89f720
3 years, 5 months ago (2017-07-18 22:37:37 UTC) #53
sacomoto
3 years, 5 months ago (2017-07-20 19:50:16 UTC) #54
Message was sent while issue was closed.
Hey Steven,

I addressed your comments in this CL:
https://chromium-review.googlesource.com/c/580407

PTAL.

https://codereview.chromium.org/2973243002/diff/120001/chrome/app/settings_st...
File chrome/app/settings_strings.grdp (right):

https://codereview.chromium.org/2973243002/diff/120001/chrome/app/settings_st...
chrome/app/settings_strings.grdp:1110: Only unlock this Chromebook when your
phone is
On 2017/07/17 16:43:36, stevenjb wrote:
> I'm concerned about how well this will localize. Generally a dropdown would
have
> a label and a list of self contained values (vs. completing a sentence, which
> works in English but not as well in other languages). 
> 
> e.g. "Phone distance to unlock this Chromebook"
> 

This was changed to "Distance needed for phone to unlock this Chromebook"

https://codereview.chromium.org/2973243002/diff/120001/chrome/app/settings_st...
chrome/app/settings_strings.grdp:1113: very close
On 2017/07/17 16:43:36, stevenjb wrote:
> Usually we would capitalize these, e.g. 'Very close'

Done.

https://codereview.chromium.org/2973243002/diff/120001/chrome/browser/resourc...
File chrome/browser/resources/settings/people_page/lock_screen.html (right):

https://codereview.chromium.org/2973243002/diff/120001/chrome/browser/resourc...
chrome/browser/resources/settings/people_page/lock_screen.html:76:
class="list-item underbar">
On 2017/07/17 16:55:08, stevenjb wrote:
> 'underbar' should be removed here (see next comment)

Done.

https://codereview.chromium.org/2973243002/diff/120001/chrome/browser/resourc...
chrome/browser/resources/settings/people_page/lock_screen.html:129: <div
id="easyUnlock" class="settings-box two-line continuation">
On 2017/07/17 16:55:08, stevenjb wrote:
> I also noticed that this really shouldn't be 'continuation' and we should
remove
> the final 'underbar' above.

Done.

https://codereview.chromium.org/2973243002/diff/120001/chrome/browser/resourc...
chrome/browser/resources/settings/people_page/lock_screen.html:140: <div
class="setting-box">
On 2017/07/17 16:43:36, stevenjb wrote:
> Instead of having a settings-box inside a settings-box like this, this should
be
> at the same level as #easyUnlock.
> 
> Also we generally use iron-collapse to hide the section when the setting is
> disabled so that the subsection animates opened/closed when the controlling
> setting is enabled/disabled.
> 
> See "Enable auto repeat" in the keyboard settings for an example.

Done.

https://codereview.chromium.org/2973243002/diff/120001/chrome/browser/resourc...
chrome/browser/resources/settings/people_page/lock_screen.html:146:
</settings-dropdown-menu>
On 2017/07/17 16:43:37, stevenjb wrote:
> The dropdown menu should be at the same level as the <div> so that it appears
> right aligned.

Done.

https://codereview.chromium.org/2973243002/diff/120001/chrome/browser/resourc...
File chrome/browser/resources/settings/people_page/lock_screen.js (right):

https://codereview.chromium.org/2973243002/diff/120001/chrome/browser/resourc...
chrome/browser/resources/settings/people_page/lock_screen.js:135: * threshold
selector dropdown menu.
On 2017/07/17 16:43:37, stevenjb wrote:
> * @type {DropdownMenuOptionList}
> 
> (You will need to include settings_dropdown_menu.js in
compiled_resources2.gyp).

Done.

Powered by Google App Engine
This is Rietveld 408576698