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

Issue 1372283002: Hook up ProximityAuthSystem in EasyUnlockService. (Closed)

Created:
5 years, 2 months ago by Tim Song
Modified:
5 years, 2 months ago
Reviewers:
sacomoto
CC:
chromium-reviews, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bluetooth_connection
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hook up ProximityAuthSystem in EasyUnlockService. ProximityAuthSystem is intended to replace the background page of the easy_unlock Chrome app. Currently, this functionality is implemented behind the kEnableBluetoothLowEnergyDiscovery flag. BUG=527558 TEST=manual Committed: https://crrev.com/163fa44c84f8d4041f2d2e3b2fb359f3643b03c3 Cr-Commit-Position: refs/heads/master@{#351707} Committed: https://crrev.com/ae50e979c4c4d669003cf659bdbd4e7acb15b999 Cr-Commit-Position: refs/heads/master@{#351954}

Patch Set 1 : #

Total comments: 26

Patch Set 2 : fix #

Patch Set 3 : fix when flag is off #

Patch Set 4 : fix test #

Patch Set 5 : fix compile #

Total comments: 6

Patch Set 6 : load app #

Patch Set 7 : fix unlock manager crash #

Patch Set 8 : fix msan tests #

Total comments: 6

Patch Set 9 : fix polling for ios #

Patch Set 10 : fix crash when auth fails #

Patch Set 11 : remove log #

Unified diffs Side-by-side diffs Delta from patch set Stats (+626 lines, -269 lines) Patch
M chrome/browser/signin/chrome_proximity_auth_client.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/signin/easy_unlock_auth_attempt.cc View 1 2 1 chunk +1 line, -9 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service.h View 1 2 3 4 5 6 5 chunks +20 lines, -5 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service.cc View 1 2 3 4 5 6 8 chunks +32 lines, -17 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service_regular.h View 1 2 3 4 5 6 6 chunks +29 lines, -3 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service_regular.cc View 1 2 3 4 5 6 10 chunks +97 lines, -18 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service_signin_chromeos.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/signin/easy_unlock_service_signin_chromeos.cc View 1 2 3 4 5 6 4 chunks +33 lines, -1 line 0 comments Download
M components/proximity_auth/ble/bluetooth_low_energy_connection.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -3 lines 0 comments Download
M components/proximity_auth/ble/bluetooth_low_energy_connection.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +2 lines, -9 lines 0 comments Download
M components/proximity_auth/cryptauth/cryptauth_device_manager.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/proximity_auth/cryptauth/cryptauth_device_manager.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M components/proximity_auth/cryptauth/cryptauth_device_manager_unittest.cc View 1 2 3 23 chunks +68 lines, -76 lines 0 comments Download
M components/proximity_auth/fake_connection.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/proximity_auth/messenger_impl.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M components/proximity_auth/messenger_impl.cc View 1 2 3 4 5 6 7 8 8 chunks +53 lines, -2 lines 0 comments Download
M components/proximity_auth/messenger_impl_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M components/proximity_auth/proximity_auth_system.h View 1 1 chunk +59 lines, -8 lines 0 comments Download
M components/proximity_auth/proximity_auth_system.cc View 1 2 3 4 5 6 7 8 9 1 chunk +101 lines, -5 lines 0 comments Download
M components/proximity_auth/proximity_auth_system_unittest.cc View 1 1 chunk +1 line, -17 lines 0 comments Download
M components/proximity_auth/proximity_monitor.h View 2 chunks +8 lines, -0 lines 0 comments Download
M components/proximity_auth/proximity_monitor_impl.h View 4 chunks +8 lines, -5 lines 0 comments Download
M components/proximity_auth/proximity_monitor_impl.cc View 4 chunks +15 lines, -6 lines 0 comments Download
M components/proximity_auth/proximity_monitor_impl_unittest.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M components/proximity_auth/remote_device.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/proximity_auth/remote_device_life_cycle_impl.h View 1 2 3 2 chunks +13 lines, -13 lines 0 comments Download
M components/proximity_auth/remote_device_life_cycle_impl.cc View 1 2 3 5 chunks +6 lines, -6 lines 0 comments Download
M components/proximity_auth/remote_device_life_cycle_impl_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -3 lines 0 comments Download
M components/proximity_auth/screenlock_bridge.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -1 line 0 comments Download
M components/proximity_auth/unlock_manager.h View 3 chunks +5 lines, -7 lines 0 comments Download
M components/proximity_auth/unlock_manager.cc View 1 9 chunks +24 lines, -21 lines 0 comments Download
M components/proximity_auth/unlock_manager_unittest.cc View 1 2 3 5 chunks +9 lines, -19 lines 0 comments Download

Messages

Total messages: 38 (15 generated)
Tim Song
5 years, 2 months ago (2015-09-29 03:54:14 UTC) #4
sacomoto
lgtm https://codereview.chromium.org/1372283002/diff/40001/chrome/browser/signin/easy_unlock_app_manager.cc File chrome/browser/signin/easy_unlock_app_manager.cc (right): https://codereview.chromium.org/1372283002/diff/40001/chrome/browser/signin/easy_unlock_app_manager.cc#newcode92 chrome/browser/signin/easy_unlock_app_manager.cc:92: void EasyUnlockAppManagerImpl::LoadApp() { Please add a TODO here. ...
5 years, 2 months ago (2015-09-29 18:45:57 UTC) #5
sacomoto
More nits. https://codereview.chromium.org/1372283002/diff/40001/components/proximity_auth/proximity_auth_system.cc File components/proximity_auth/proximity_auth_system.cc (right): https://codereview.chromium.org/1372283002/diff/40001/components/proximity_auth/proximity_auth_system.cc#newcode91 components/proximity_auth/proximity_auth_system.cc:91: ScreenlockBridge::LockHandler::ScreenType screen_type) {} Shouldn't you start the ...
5 years, 2 months ago (2015-09-29 20:58:33 UTC) #6
Tim Song
https://codereview.chromium.org/1372283002/diff/40001/chrome/browser/signin/easy_unlock_app_manager.cc File chrome/browser/signin/easy_unlock_app_manager.cc (right): https://codereview.chromium.org/1372283002/diff/40001/chrome/browser/signin/easy_unlock_app_manager.cc#newcode92 chrome/browser/signin/easy_unlock_app_manager.cc:92: void EasyUnlockAppManagerImpl::LoadApp() { On 2015/09/29 18:45:57, sacomoto wrote: > ...
5 years, 2 months ago (2015-09-30 00:05:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372283002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372283002/120001
5 years, 2 months ago (2015-09-30 07:45:48 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/114189)
5 years, 2 months ago (2015-09-30 08:48:41 UTC) #12
sacomoto
https://codereview.chromium.org/1372283002/diff/120001/chrome/browser/signin/easy_unlock_app_manager.cc File chrome/browser/signin/easy_unlock_app_manager.cc (right): https://codereview.chromium.org/1372283002/diff/120001/chrome/browser/signin/easy_unlock_app_manager.cc#newcode97 chrome/browser/signin/easy_unlock_app_manager.cc:97: return; The setup app doesn't load without loading the ...
5 years, 2 months ago (2015-09-30 16:46:40 UTC) #13
sacomoto
https://codereview.chromium.org/1372283002/diff/120001/chrome/browser/signin/easy_unlock_app_manager.cc File chrome/browser/signin/easy_unlock_app_manager.cc (right): https://codereview.chromium.org/1372283002/diff/120001/chrome/browser/signin/easy_unlock_app_manager.cc#newcode97 chrome/browser/signin/easy_unlock_app_manager.cc:97: return; On 2015/09/30 16:46:40, sacomoto wrote: > The setup ...
5 years, 2 months ago (2015-09-30 17:40:53 UTC) #14
Tim Song
https://codereview.chromium.org/1372283002/diff/120001/chrome/browser/signin/easy_unlock_app_manager.cc File chrome/browser/signin/easy_unlock_app_manager.cc (right): https://codereview.chromium.org/1372283002/diff/120001/chrome/browser/signin/easy_unlock_app_manager.cc#newcode97 chrome/browser/signin/easy_unlock_app_manager.cc:97: return; On 2015/09/30 16:46:40, sacomoto wrote: > The setup ...
5 years, 2 months ago (2015-09-30 19:13:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372283002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372283002/160001
5 years, 2 months ago (2015-10-01 02:15:25 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:160001)
5 years, 2 months ago (2015-10-01 02:23:20 UTC) #19
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/163fa44c84f8d4041f2d2e3b2fb359f3643b03c3 Cr-Commit-Position: refs/heads/master@{#351707}
5 years, 2 months ago (2015-10-01 02:24:21 UTC) #20
Tim Song
A revert of this CL (patchset #7 id:160001) has been created in https://codereview.chromium.org/1377313002/ by tengs@chromium.org. ...
5 years, 2 months ago (2015-10-01 04:15:01 UTC) #21
sacomoto
I fixed those issues in this CL: https://codereview.chromium.org/1375633004/ Feel free to integrate that in your ...
5 years, 2 months ago (2015-10-01 16:09:08 UTC) #22
sacomoto
https://codereview.chromium.org/1372283002/diff/180001/components/proximity_auth/unlock_manager.cc File components/proximity_auth/unlock_manager.cc (right): https://codereview.chromium.org/1372283002/diff/180001/components/proximity_auth/unlock_manager.cc#newcode307 components/proximity_auth/unlock_manager.cc:307: reject_auth_attempt_weak_ptr_factory_.GetWeakPtr(), false), On 2015/10/01 16:09:08, sacomoto wrote: > It ...
5 years, 2 months ago (2015-10-01 16:56:47 UTC) #23
Tim Song
MSAN tests pass, recommitting
5 years, 2 months ago (2015-10-01 17:36:15 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372283002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372283002/180001
5 years, 2 months ago (2015-10-01 17:37:54 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/115168)
5 years, 2 months ago (2015-10-01 17:53:14 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372283002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372283002/180001
5 years, 2 months ago (2015-10-01 18:08:33 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/70061) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-10-01 18:12:49 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372283002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372283002/240001
5 years, 2 months ago (2015-10-02 03:11:41 UTC) #36
commit-bot: I haz the power
Committed patchset #11 (id:240001)
5 years, 2 months ago (2015-10-02 04:00:54 UTC) #37
commit-bot: I haz the power
5 years, 2 months ago (2015-10-02 04:01:44 UTC) #38
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/ae50e979c4c4d669003cf659bdbd4e7acb15b999
Cr-Commit-Position: refs/heads/master@{#351954}

Powered by Google App Engine
This is Rietveld 408576698