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

Issue 446743003: Hook up new API for easy unlock to update lock screen (Closed)

Created:
6 years, 4 months ago by tbarzic
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, oshima+watch_chromium.org, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Hook up new easyUnlockPrivate API function for updating lock screen This will replace screenlockPrivate methods for updating screenlock icon, auth type, and message. The cl starts migration of the Easy Unlocking logic from Chrome app to native code. The new easyUnlockPrivate function should be removed once the migration is complete (probably in M39). It moves resources used on screen lock from Easy Unlock app to Chrome, and simplifies generating icon URL to be used in the screenlock web ui. Adds support for setting icon tooltip and animating the icon directly in screenlock web ui (instead of calling showCustomIcon for each animation frame, which can produce somewhat laggy animation). BUG=393792, 397366, 397360, 385719, 402106 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289784

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : rebase #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : rebase #

Patch Set 15 : state for phone having lock screen disabled #

Patch Set 16 : . #

Patch Set 17 : . #

Patch Set 18 : . #

Patch Set 19 : rebase #

Patch Set 20 : . #

Patch Set 21 : . #

Patch Set 22 : rebase #

Patch Set 23 : v #

Total comments: 29

Patch Set 24 : . #

Patch Set 25 : . #

Patch Set 26 : . #

Patch Set 27 : . #

Total comments: 3

Patch Set 28 : . #

Patch Set 29 : . #

Patch Set 30 : . #

Total comments: 3

Patch Set 31 : rebase #

Patch Set 32 : updated ext histogram #

Total comments: 2

Patch Set 33 : . #

Patch Set 34 : rebase #

Patch Set 35 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1039 lines, -112 lines) Patch
M chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 5 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 3 chunks +56 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/screenlock_private/screenlock_private_api.cc View 1 2 3 4 5 4 chunks +12 lines, -3 lines 0 comments Download
A chrome/browser/signin/easy_unlock_screenlock_state_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +91 lines, -0 lines 0 comments Download
A chrome/browser/signin/easy_unlock_screenlock_state_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +211 lines, -0 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 5 chunks +25 lines, -4 lines 0 comments Download
M chrome/browser/signin/screenlock_bridge.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 4 chunks +71 lines, -4 lines 0 comments Download
M chrome/browser/signin/screenlock_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +104 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 6 chunks +10 lines, -33 lines 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_screen_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_screen_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 3 chunks +8 lines, -12 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/easy_unlock_private.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +30 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download
M ui/login/account_picker/screen_account_picker.js View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -10 lines 0 comments Download
M ui/login/account_picker/user_pod_row.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +9 lines, -4 lines 0 comments Download
M ui/login/account_picker/user_pod_row.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 8 chunks +354 lines, -32 lines 0 comments Download
M ui/login/account_picker/user_pod_template.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
tbarzic
xiyuan: main review asargent: owner for extensions dzhioev: owner for ui/login rogerta: owner for chrome/browser/signin
6 years, 4 months ago (2014-08-11 23:36:52 UTC) #1
asargent_no_longer_on_chrome
extensions parts lgtm
6 years, 4 months ago (2014-08-12 16:27:03 UTC) #2
xiyuan
https://codereview.chromium.org/446743003/diff/440001/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h File chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h (right): https://codereview.chromium.org/446743003/diff/440001/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h#newcode171 chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h:171: }; nit: DISALLOW_COPY_AND_ASSIGN( EasyUnlockPrivateUpdateScreenlockStateFunction); https://codereview.chromium.org/446743003/diff/440001/chrome/browser/signin/easy_unlock_screenlock_state_handler.cc File chrome/browser/signin/easy_unlock_screenlock_state_handler.cc (right): https://codereview.chromium.org/446743003/diff/440001/chrome/browser/signin/easy_unlock_screenlock_state_handler.cc#newcode35 ...
6 years, 4 months ago (2014-08-12 18:09:47 UTC) #3
tbarzic
https://codereview.chromium.org/446743003/diff/440001/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h File chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h (right): https://codereview.chromium.org/446743003/diff/440001/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h#newcode171 chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h:171: }; On 2014/08/12 18:09:47, xiyuan wrote: > nit: > ...
6 years, 4 months ago (2014-08-12 19:14:36 UTC) #4
xiyuan
lgtm
6 years, 4 months ago (2014-08-12 19:17:25 UTC) #5
dzhioev (left Google)
My comments for the part that I read so far: https://codereview.chromium.org/446743003/diff/440001/chrome/browser/signin/easy_unlock_screenlock_state_handler.cc File chrome/browser/signin/easy_unlock_screenlock_state_handler.cc (right): https://codereview.chromium.org/446743003/diff/440001/chrome/browser/signin/easy_unlock_screenlock_state_handler.cc#newcode98 ...
6 years, 4 months ago (2014-08-12 19:36:09 UTC) #6
xiyuan
https://codereview.chromium.org/446743003/diff/440001/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h File chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h (left): https://codereview.chromium.org/446743003/diff/440001/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h#oldcode1 chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
6 years, 4 months ago (2014-08-12 19:44:42 UTC) #7
tbarzic
https://codereview.chromium.org/446743003/diff/440001/chrome/browser/signin/easy_unlock_screenlock_state_handler.cc File chrome/browser/signin/easy_unlock_screenlock_state_handler.cc (right): https://codereview.chromium.org/446743003/diff/440001/chrome/browser/signin/easy_unlock_screenlock_state_handler.cc#newcode98 chrome/browser/signin/easy_unlock_screenlock_state_handler.cc:98: state_ = screenlock_bridge_->lock_handler() ? new_state : STATE_INACTIVE; On 2014/08/12 ...
6 years, 4 months ago (2014-08-12 21:40:58 UTC) #8
xiyuan
https://codereview.chromium.org/446743003/diff/520001/chrome/browser/signin/easy_unlock_service.cc File chrome/browser/signin/easy_unlock_service.cc (right): https://codereview.chromium.org/446743003/diff/520001/chrome/browser/signin/easy_unlock_service.cc#newcode162 chrome/browser/signin/easy_unlock_service.cc:162: ScreenlockBridge::GetAuthenticatedUserEmail(profile_), I would prefer to what we have in ...
6 years, 4 months ago (2014-08-12 21:51:49 UTC) #9
tbarzic
https://codereview.chromium.org/446743003/diff/520001/chrome/browser/signin/easy_unlock_service.cc File chrome/browser/signin/easy_unlock_service.cc (right): https://codereview.chromium.org/446743003/diff/520001/chrome/browser/signin/easy_unlock_service.cc#newcode162 chrome/browser/signin/easy_unlock_service.cc:162: ScreenlockBridge::GetAuthenticatedUserEmail(profile_), On 2014/08/12 21:51:49, xiyuan wrote: > I would ...
6 years, 4 months ago (2014-08-12 22:12:52 UTC) #10
xiyuan
https://codereview.chromium.org/446743003/diff/520001/chrome/browser/signin/easy_unlock_service.cc File chrome/browser/signin/easy_unlock_service.cc (right): https://codereview.chromium.org/446743003/diff/520001/chrome/browser/signin/easy_unlock_service.cc#newcode162 chrome/browser/signin/easy_unlock_service.cc:162: ScreenlockBridge::GetAuthenticatedUserEmail(profile_), On 2014/08/12 22:12:52, tbarzic wrote: > On 2014/08/12 ...
6 years, 4 months ago (2014-08-12 22:14:39 UTC) #11
dzhioev (left Google)
https://codereview.chromium.org/446743003/diff/440001/chrome/browser/signin/easy_unlock_service.cc File chrome/browser/signin/easy_unlock_service.cc (right): https://codereview.chromium.org/446743003/diff/440001/chrome/browser/signin/easy_unlock_service.cc#newcode52 chrome/browser/signin/easy_unlock_service.cc:52: ScreenlockBridge::GetAuthenticatedUserEmail(profile), On 2014/08/12 21:40:58, tbarzic wrote: > On 2014/08/12 ...
6 years, 4 months ago (2014-08-13 15:43:20 UTC) #12
xiyuan
https://codereview.chromium.org/446743003/diff/440001/chrome/browser/signin/easy_unlock_service.cc File chrome/browser/signin/easy_unlock_service.cc (right): https://codereview.chromium.org/446743003/diff/440001/chrome/browser/signin/easy_unlock_service.cc#newcode52 chrome/browser/signin/easy_unlock_service.cc:52: ScreenlockBridge::GetAuthenticatedUserEmail(profile), On 2014/08/13 15:43:19, dzhioev wrote: > Why do ...
6 years, 4 months ago (2014-08-13 15:53:41 UTC) #13
tbarzic
https://codereview.chromium.org/446743003/diff/580001/ui/login/account_picker/user_pod_template.html File ui/login/account_picker/user_pod_template.html (right): https://codereview.chromium.org/446743003/diff/580001/ui/login/account_picker/user_pod_template.html#newcode25 ui/login/account_picker/user_pod_template.html:25: <img class="capslock-hint" On 2014/08/13 15:53:41, xiyuan wrote: > On ...
6 years, 4 months ago (2014-08-13 17:51:23 UTC) #14
dzhioev (left Google)
On 2014/08/13 17:51:23, tbarzic wrote: > https://codereview.chromium.org/446743003/diff/580001/ui/login/account_picker/user_pod_template.html > File ui/login/account_picker/user_pod_template.html (right): > > https://codereview.chromium.org/446743003/diff/580001/ui/login/account_picker/user_pod_template.html#newcode25 > ...
6 years, 4 months ago (2014-08-13 18:09:23 UTC) #15
tbarzic
+isherman for extension function histogram And missing owner approval from rogerta for chrome/browser/signin/screenlock_bridge
6 years, 4 months ago (2014-08-13 20:56:05 UTC) #16
Ilya Sherman
histograms lgtm
6 years, 4 months ago (2014-08-13 21:18:24 UTC) #17
Roger Tawa OOO till Jul 10th
rubber stamp lgtm for chrome/browser/signin Please add per-file lines to chrome/browser/signin/OWNERS for screenlock_* https://codereview.chromium.org/446743003/diff/620001/chrome/browser/signin/easy_unlock_screenlock_state_handler.h File ...
6 years, 4 months ago (2014-08-14 16:05:50 UTC) #18
tbarzic
https://codereview.chromium.org/446743003/diff/620001/chrome/browser/signin/easy_unlock_screenlock_state_handler.h File chrome/browser/signin/easy_unlock_screenlock_state_handler.h (right): https://codereview.chromium.org/446743003/diff/620001/chrome/browser/signin/easy_unlock_screenlock_state_handler.h#newcode16 chrome/browser/signin/easy_unlock_screenlock_state_handler.h:16: // Profle specific class responsible for updating screenlock UI ...
6 years, 4 months ago (2014-08-14 18:56:04 UTC) #19
tbarzic
The CQ bit was checked by tbarzic@chromium.org
6 years, 4 months ago (2014-08-14 18:56:11 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/446743003/680001
6 years, 4 months ago (2014-08-14 18:57:33 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-15 03:03:19 UTC) #22
commit-bot: I haz the power
6 years, 4 months ago (2014-08-15 04:41:11 UTC) #23
Message was sent while issue was closed.
Committed patchset #35 (680001) as 289784

Powered by Google App Engine
This is Rietveld 408576698