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

Issue 843023002: [Smart Lock] Add a private API to show an error bubble anchored to the Smart Lock app window. (Closed)

Created:
5 years, 11 months ago by Ilya Sherman
Modified:
5 years, 10 months ago
Reviewers:
Yoyo Zhou, Tim Song, sky
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, asvitkine+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Smart Lock] Add a private API to show an error bubble anchored to the Smart Lock app window. BUG=406439 TEST=none R=tengs@chromium.org Committed: https://crrev.com/f69037c6e9a0e7bc07e9d29b7bd6aaac81362e83 Cr-Commit-Position: refs/heads/master@{#313408}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Update error message strings #

Total comments: 4

Patch Set 3 : Simplify and clean up the code a bit #

Total comments: 2

Patch Set 4 : saturated_cast, support all Views platforms, and add an additional deprecation TODO #

Patch Set 5 : Update StyledLabel to specify a preferred size #

Total comments: 10

Patch Set 6 : Close the bubble upon WebContents destruction; style cleanup #

Patch Set 7 : Rebase #

Total comments: 11

Patch Set 8 : Remove a redundant newline #

Patch Set 9 : Fix the code for caching the computed size. #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+366 lines, -27 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +13 lines, -13 lines 0 comments Download
M chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h View 1 2 3 4 5 6 1 chunk +15 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 4 chunks +52 lines, -0 lines 0 comments Download
A chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h View 1 2 3 4 5 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.cc View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/proximity_auth/proximity_auth_error_bubble_view.h View 1 2 3 4 5 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/proximity_auth/proximity_auth_error_bubble_view.cc View 1 2 3 4 5 1 chunk +104 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/easy_unlock_private.idl View 1 2 3 4 5 6 2 chunks +25 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 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/views/controls/styled_label.h View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -5 lines 0 comments Download
M ui/views/controls/styled_label.cc View 1 2 3 4 5 6 7 8 9 7 chunks +31 lines, -9 lines 0 comments Download

Messages

Total messages: 25 (4 generated)
Ilya Sherman
5 years, 11 months ago (2015-01-09 02:47:05 UTC) #1
Tim Song
https://codereview.chromium.org/843023002/diff/1/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc File chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc (right): https://codereview.chromium.org/843023002/diff/1/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc#newcode739 chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc:739: base::checked_cast<size_t>(params->link_range.end) > Wouldn't saturated_cast be a bit safer in ...
5 years, 11 months ago (2015-01-15 19:29:25 UTC) #2
Ilya Sherman
https://codereview.chromium.org/843023002/diff/1/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc File chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc (right): https://codereview.chromium.org/843023002/diff/1/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc#newcode739 chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc:739: base::checked_cast<size_t>(params->link_range.end) > On 2015/01/15 19:29:24, Tim Song wrote: > ...
5 years, 11 months ago (2015-01-16 05:39:42 UTC) #3
Tim Song
https://codereview.chromium.org/843023002/diff/1/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc File chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc (right): https://codereview.chromium.org/843023002/diff/1/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc#newcode739 chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc:739: base::checked_cast<size_t>(params->link_range.end) > On 2015/01/16 05:39:42, Ilya Sherman wrote: > ...
5 years, 11 months ago (2015-01-16 22:50:37 UTC) #4
Ilya Sherman
https://codereview.chromium.org/843023002/diff/1/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc File chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc (right): https://codereview.chromium.org/843023002/diff/1/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc#newcode739 chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc:739: base::checked_cast<size_t>(params->link_range.end) > On 2015/01/16 22:50:36, Tim Song wrote: > ...
5 years, 11 months ago (2015-01-17 01:03:42 UTC) #5
Ilya Sherman
+sky for //chrome/browser/ui/* and //ui/views/* +yoz for //chrome/common/extensions/*
5 years, 11 months ago (2015-01-17 01:05:13 UTC) #7
Tim Song
lgtm
5 years, 11 months ago (2015-01-17 01:53:03 UTC) #8
sky
https://codereview.chromium.org/843023002/diff/80001/chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h File chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h (right): https://codereview.chromium.org/843023002/diff/80001/chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h#newcode21 chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h:21: class ProximityAuthErrorBubble { Is there a reason you need ...
5 years, 11 months ago (2015-01-20 16:24:36 UTC) #9
Yoyo Zhou
idl LGTM https://codereview.chromium.org/843023002/diff/80001/chrome/common/extensions/api/easy_unlock_private.idl File chrome/common/extensions/api/easy_unlock_private.idl (right): https://codereview.chromium.org/843023002/diff/80001/chrome/common/extensions/api/easy_unlock_private.idl#newcode157 chrome/common/extensions/api/easy_unlock_private.idl:157: // A rectangle. What are the units?
5 years, 11 months ago (2015-01-21 01:12:30 UTC) #10
Ilya Sherman
https://codereview.chromium.org/843023002/diff/80001/chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h File chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h (right): https://codereview.chromium.org/843023002/diff/80001/chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h#newcode21 chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h:21: class ProximityAuthErrorBubble { On 2015/01/20 16:24:36, sky wrote: > ...
5 years, 11 months ago (2015-01-22 02:26:27 UTC) #11
Ilya Sherman
sky@, ping :)
5 years, 11 months ago (2015-01-23 23:06:23 UTC) #12
sky
https://chromiumcodereview.appspot.com/843023002/diff/120001/ui/views/controls/styled_label.cc File ui/views/controls/styled_label.cc (right): https://chromiumcodereview.appspot.com/843023002/diff/120001/ui/views/controls/styled_label.cc#newcode100 ui/views/controls/styled_label.cc:100: width_at_last_size_calculation_(0), AFAICT this isn't used. https://chromiumcodereview.appspot.com/843023002/diff/120001/ui/views/controls/styled_label.cc#newcode168 ui/views/controls/styled_label.cc:168: nit: only ...
5 years, 11 months ago (2015-01-24 00:34:02 UTC) #13
Ilya Sherman
https://chromiumcodereview.appspot.com/843023002/diff/120001/ui/views/controls/styled_label.cc File ui/views/controls/styled_label.cc (right): https://chromiumcodereview.appspot.com/843023002/diff/120001/ui/views/controls/styled_label.cc#newcode100 ui/views/controls/styled_label.cc:100: width_at_last_size_calculation_(0), On 2015/01/24 00:34:02, sky wrote: > AFAICT this ...
5 years, 11 months ago (2015-01-24 00:44:32 UTC) #14
sky
https://chromiumcodereview.appspot.com/843023002/diff/120001/ui/views/controls/styled_label.cc File ui/views/controls/styled_label.cc (right): https://chromiumcodereview.appspot.com/843023002/diff/120001/ui/views/controls/styled_label.cc#newcode100 ui/views/controls/styled_label.cc:100: width_at_last_size_calculation_(0), On 2015/01/24 00:44:32, Ilya Sherman wrote: > On ...
5 years, 11 months ago (2015-01-26 15:49:43 UTC) #15
Ilya Sherman
https://chromiumcodereview.appspot.com/843023002/diff/120001/ui/views/controls/styled_label.cc File ui/views/controls/styled_label.cc (right): https://chromiumcodereview.appspot.com/843023002/diff/120001/ui/views/controls/styled_label.cc#newcode189 ui/views/controls/styled_label.cc:189: return calculated_size_; On 2015/01/26 15:49:43, sky wrote: > On ...
5 years, 11 months ago (2015-01-27 01:19:03 UTC) #16
sky
LGTM
5 years, 11 months ago (2015-01-27 03:40:22 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/843023002/150001
5 years, 11 months ago (2015-01-27 21:24:37 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/52861) ios_rel_device_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ng/builds/4812) ios_rel_device_ninja_ng ...
5 years, 11 months ago (2015-01-27 21:29:12 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/843023002/170001
5 years, 11 months ago (2015-01-27 22:53:58 UTC) #23
commit-bot: I haz the power
Committed patchset #10 (id:170001)
5 years, 10 months ago (2015-01-27 23:58:26 UTC) #24
commit-bot: I haz the power
5 years, 10 months ago (2015-01-27 23:59:53 UTC) #25
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/f69037c6e9a0e7bc07e9d29b7bd6aaac81362e83
Cr-Commit-Position: refs/heads/master@{#313408}

Powered by Google App Engine
This is Rietveld 408576698