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

Issue 1024553004: Autofill OSX: Add RetriableErrorMessage text label. (Closed)

Created:
5 years, 9 months ago by bondd
Modified:
5 years, 9 months ago
CC:
chromium-reviews, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Autofill OSX: Add RetriableErrorMessage text label. Add error message text label between CVC input row and Verify/Cancel buttons. Error messages passed to CardUnmaskPromptViewBridge::GotVerificationResult() are displayed. Dialog will re-layout to fit entire message if a multiline message is set. Previous to this CL the layout was done exactly once per dialog, upon dialog creation. This CL refactors the layout code out into -performLayout and calls it whenever the error message text changes. Screenshot attached to bug: https://code.google.com/p/chromium/issues/detail?id=448572#c14 BUG=448572 Committed: https://crrev.com/a8b89aa94a3320ee053d0f24869835914742c860 Cr-Commit-Position: refs/heads/master@{#322262}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address groby@ comments on patch set 1. #

Total comments: 2

Patch Set 3 : Remove -sizeTextField TODO comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -101 lines) Patch
M chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm View 1 2 16 chunks +145 lines, -101 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
bondd
https://codereview.chromium.org/1024553004/diff/1/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm File chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm (right): https://codereview.chromium.org/1024553004/diff/1/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm#newcode93 chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm:93: [view_controller_ setRetriableErrorMessage:error_message]; setRetriableErrorMessage is same method name as in ...
5 years, 9 months ago (2015-03-23 21:27:55 UTC) #3
groby-ooo-7-16
https://codereview.chromium.org/1024553004/diff/1/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h File chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h (right): https://codereview.chromium.org/1024553004/diff/1/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h#newcode58 chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h:58: - (void)setRetriableErrorMessage:(const base::string16&)text; Retryable. (Ideally, just setErrorMessage - if ...
5 years, 9 months ago (2015-03-24 01:26:50 UTC) #4
Evan Stade
https://codereview.chromium.org/1024553004/diff/1/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h File chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h (right): https://codereview.chromium.org/1024553004/diff/1/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h#newcode58 chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h:58: - (void)setRetriableErrorMessage:(const base::string16&)text; On 2015/03/24 01:26:49, groby wrote: > ...
5 years, 9 months ago (2015-03-24 16:07:40 UTC) #5
groby-ooo-7-16
https://codereview.chromium.org/1024553004/diff/1/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h File chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h (right): https://codereview.chromium.org/1024553004/diff/1/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h#newcode58 chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h:58: - (void)setRetriableErrorMessage:(const base::string16&)text; On 2015/03/24 16:07:40, Evan Stade wrote: ...
5 years, 9 months ago (2015-03-24 20:54:12 UTC) #6
bondd
https://codereview.chromium.org/1024553004/diff/1/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm File chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm (right): https://codereview.chromium.org/1024553004/diff/1/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm#newcode93 chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm:93: [view_controller_ setRetriableErrorMessage:error_message]; On 2015/03/24 01:26:49, groby wrote: > On ...
5 years, 9 months ago (2015-03-24 23:46:47 UTC) #7
groby-ooo-7-16
lgtm % nit https://codereview.chromium.org/1024553004/diff/20001/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm File chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm (right): https://codereview.chromium.org/1024553004/diff/20001/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm#newcode154 chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm:154: // TODO(bondd): Hoist this to ui/base/cocoa. ...
5 years, 9 months ago (2015-03-25 20:51:53 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1024553004/40001
5 years, 9 months ago (2015-03-25 22:25:44 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-25 23:36:58 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/a8b89aa94a3320ee053d0f24869835914742c860 Cr-Commit-Position: refs/heads/master@{#322262}
5 years, 9 months ago (2015-03-25 23:37:26 UTC) #13
bondd
https://codereview.chromium.org/1024553004/diff/20001/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm File chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm (right): https://codereview.chromium.org/1024553004/diff/20001/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm#newcode154 chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm:154: // TODO(bondd): Hoist this to ui/base/cocoa. On 2015/03/25 20:51:53, ...
5 years, 9 months ago (2015-03-26 00:05:11 UTC) #14
bondd
5 years, 9 months ago (2015-03-26 00:06:38 UTC) #15
Message was sent while issue was closed.
On 2015/03/26 00:05:11, bondd wrote:
>
https://codereview.chromium.org/1024553004/diff/20001/chrome/browser/ui/cocoa...
> File chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm
(right):
> 
>
https://codereview.chromium.org/1024553004/diff/20001/chrome/browser/ui/cocoa...
> chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm:154: //
> TODO(bondd): Hoist this to ui/base/cocoa.
> On 2015/03/25 20:51:53, groby wrote:
> > You can kill the TODO - see other CL re l10::SizeToFitView()
> 
> Done.

BTW, next patch set to https://codereview.chromium.org/1038503003/ removes
+sizeTextField: completely and replaces it with WrapOrSizeToFit(). I will be
uploading it momentarily.

Powered by Google App Engine
This is Rietveld 408576698