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

Issue 2749703003: Adding mediator for Sign-in promo (Closed)

Created:
3 years, 9 months ago by jlebel
Modified:
3 years, 8 months ago
Reviewers:
msarda, lpromero
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding mediator for Sign-in promo Creating SigninPromoView and SigninPromoViewMediator. Moving SiginPromoItem from settings/cells to authentication. SigninPromoView can display cold start sign-in promo (with no known profile), or warm start sign-in promo (to be able to sign-in without typing password). This class is now used by SiginPromoCell and will be used in the bookmarks view and any other place. SigninPromoViewMediator can configure a SigninPromoView instance according to the value it contains. An instance of this class is required by the initializer of SigninPromoItem. -[SigninPromoItem configureCell:] uses the SigninPromoViewMediator instance to configuring the SigninPromoCell cell. Now, SigninPromoCell contains only a SigninPromoView instance. TODO: the Chrome/Chromium icon is missing for the cold start view. Screenshot: https://drive.google.com/file/d/0ByXziH_JVCGJcGo5djJvR1BCUjA/view Related to: crrev.com/2747893002 BUG=661794 Review-Url: https://codereview.chromium.org/2749703003 Cr-Commit-Position: refs/heads/master@{#460337} Committed: https://chromium.googlesource.com/chromium/src/+/bb883994c62cbdbb2d449d886190d97e24548fcc

Patch Set 1 #

Total comments: 33

Patch Set 2 : Visual constraints #

Total comments: 106

Patch Set 3 : Fixing Louis' comments #

Total comments: 45

Patch Set 4 : . #

Total comments: 17

Patch Set 5 : . #

Total comments: 6

Patch Set 6 : . #

Patch Set 7 : Typo #

Patch Set 8 : Removing useless test #

Patch Set 9 : Update tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+762 lines, -347 lines) Patch
M ios/chrome/browser/ui/authentication/BUILD.gn View 1 2 3 3 chunks +34 lines, -8 lines 0 comments Download
A ios/chrome/browser/ui/authentication/signin_promo_item.h View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/authentication/signin_promo_item.mm View 1 2 3 1 chunk +73 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/authentication/signin_promo_item_unittest.mm View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/authentication/signin_promo_view.h View 1 2 3 4 5 1 chunk +62 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/authentication/signin_promo_view.mm View 1 2 3 4 5 6 1 chunk +246 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/authentication/signin_promo_view_mediator.h View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/authentication/signin_promo_view_mediator.mm View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/authentication/signin_promo_view_mediator_unittest.mm View 1 2 3 4 5 6 7 8 1 chunk +144 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/authentication/signin_promo_view_unittest.mm View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/settings/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/ui/settings/cells/BUILD.gn View 2 chunks +0 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/settings/cells/signin_promo_item.h View 1 chunk +0 lines, -44 lines 0 comments Download
M ios/chrome/browser/ui/settings/cells/signin_promo_item.mm View 1 chunk +0 lines, -230 lines 0 comments Download
D ios/chrome/browser/ui/settings/cells/signin_promo_item_unittest.mm View 1 chunk +0 lines, -43 lines 0 comments Download
M ios/chrome/browser/ui/settings/material_cell_catalog_view_controller.mm View 1 2 3 4 9 chunks +32 lines, -19 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 58 (32 generated)
jlebel
hello Mihai, Louis, Can you review this patch related to Sign-in promo? I'm adding a ...
3 years, 9 months ago (2017-03-15 18:12:59 UTC) #10
msarda
https://codereview.chromium.org/2749703003/diff/120001/ios/chrome/browser/ui/authentication/signin_promo_item.mm File ios/chrome/browser/ui/authentication/signin_promo_item.mm (right): https://codereview.chromium.org/2749703003/diff/120001/ios/chrome/browser/ui/authentication/signin_promo_item.mm#newcode42 ios/chrome/browser/ui/authentication/signin_promo_item.mm:42: [_signinPromoViewConfigurator configureSigninPromoView:cell.signinPromoView]; Should the configuration also configure the textLabel ...
3 years, 9 months ago (2017-03-16 22:15:31 UTC) #11
jlebel
Thanks for your input. https://codereview.chromium.org/2749703003/diff/120001/ios/chrome/browser/ui/authentication/signin_promo_item.mm File ios/chrome/browser/ui/authentication/signin_promo_item.mm (right): https://codereview.chromium.org/2749703003/diff/120001/ios/chrome/browser/ui/authentication/signin_promo_item.mm#newcode42 ios/chrome/browser/ui/authentication/signin_promo_item.mm:42: [_signinPromoViewConfigurator configureSigninPromoView:cell.signinPromoView]; On 2017/03/16 22:15:31, ...
3 years, 9 months ago (2017-03-21 17:22:29 UTC) #13
msarda
https://codereview.chromium.org/2749703003/diff/120001/ios/chrome/browser/ui/authentication/signin_promo_item.mm File ios/chrome/browser/ui/authentication/signin_promo_item.mm (right): https://codereview.chromium.org/2749703003/diff/120001/ios/chrome/browser/ui/authentication/signin_promo_item.mm#newcode42 ios/chrome/browser/ui/authentication/signin_promo_item.mm:42: [_signinPromoViewConfigurator configureSigninPromoView:cell.signinPromoView]; On 2017/03/21 17:22:28, jlebel wrote: > On ...
3 years, 9 months ago (2017-03-22 12:18:39 UTC) #14
lpromero
Sorry, I haven’t had time to finish yet, especially to look at all the previous ...
3 years, 9 months ago (2017-03-22 16:18:49 UTC) #15
lpromero
https://codereview.chromium.org/2749703003/diff/160001/ios/chrome/browser/ui/authentication/signin_promo_item.h File ios/chrome/browser/ui/authentication/signin_promo_item.h (right): https://codereview.chromium.org/2749703003/diff/160001/ios/chrome/browser/ui/authentication/signin_promo_item.h#newcode14 ios/chrome/browser/ui/authentication/signin_promo_item.h:14: Remove empty line. https://codereview.chromium.org/2749703003/diff/160001/ios/chrome/browser/ui/authentication/signin_promo_item.h#newcode22 ios/chrome/browser/ui/authentication/signin_promo_item.h:22: signinPromoViewConfigurator; On 2017/03/22 12:18:38, ...
3 years, 9 months ago (2017-03-24 10:36:20 UTC) #16
jlebel
Thanks for your input. I changed |configurator| property of SigninPromoItem to be strong (instead of ...
3 years, 9 months ago (2017-03-24 20:59:10 UTC) #23
msarda
https://codereview.chromium.org/2749703003/diff/160001/ios/chrome/browser/ui/authentication/signin_promo_view.mm File ios/chrome/browser/ui/authentication/signin_promo_view.mm (right): https://codereview.chromium.org/2749703003/diff/160001/ios/chrome/browser/ui/authentication/signin_promo_view.mm#newcode143 ios/chrome/browser/ui/authentication/signin_promo_view.mm:143: [NSLayoutConstraint On 2017/03/24 20:59:09, jlebel wrote: > On 2017/03/22 ...
3 years, 9 months ago (2017-03-27 09:34:17 UTC) #24
lpromero
For strings files, the changes should show up in git status, as they are in ...
3 years, 9 months ago (2017-03-27 13:14:46 UTC) #25
jlebel
Hello Mihai and Louis, Thanks for your inputs. https://codereview.chromium.org/2749703003/diff/220001/ios/chrome/browser/ui/authentication/BUILD.gn File ios/chrome/browser/ui/authentication/BUILD.gn (right): https://codereview.chromium.org/2749703003/diff/220001/ios/chrome/browser/ui/authentication/BUILD.gn#newcode105 ios/chrome/browser/ui/authentication/BUILD.gn:105: source_set("authentication_ui_arc") ...
3 years, 9 months ago (2017-03-27 21:34:43 UTC) #26
msarda
https://codereview.chromium.org/2749703003/diff/220001/ios/chrome/browser/ui/authentication/signin_promo_view.mm File ios/chrome/browser/ui/authentication/signin_promo_view.mm (right): https://codereview.chromium.org/2749703003/diff/220001/ios/chrome/browser/ui/authentication/signin_promo_view.mm#newcode119 ios/chrome/browser/ui/authentication/signin_promo_view.mm:119: NSMutableArray* constraints = [NSMutableArray array]; On 2017/03/27 21:34:42, jlebel ...
3 years, 8 months ago (2017-03-28 08:12:51 UTC) #27
msarda
https://codereview.chromium.org/2749703003/diff/220001/ios/chrome/browser/ui/authentication/signin_promo_view.mm File ios/chrome/browser/ui/authentication/signin_promo_view.mm (right): https://codereview.chromium.org/2749703003/diff/220001/ios/chrome/browser/ui/authentication/signin_promo_view.mm#newcode119 ios/chrome/browser/ui/authentication/signin_promo_view.mm:119: NSMutableArray* constraints = [NSMutableArray array]; On 2017/03/27 21:34:42, jlebel ...
3 years, 8 months ago (2017-03-28 08:12:52 UTC) #28
lpromero
+1 for the refactoring to remove the need for a mediator subclass, and removing the ...
3 years, 8 months ago (2017-03-28 09:43:15 UTC) #29
lpromero
lgtm onc ecomments are addressed. Refactoring of the mediator can happen in a separate CL/
3 years, 8 months ago (2017-03-28 11:08:38 UTC) #30
lpromero
lgtm
3 years, 8 months ago (2017-03-28 12:15:29 UTC) #31
jlebel
Thanks, https://codereview.chromium.org/2749703003/diff/240001/ios/chrome/browser/ui/authentication/signin_promo_view.h File ios/chrome/browser/ui/authentication/signin_promo_view.h (right): https://codereview.chromium.org/2749703003/diff/240001/ios/chrome/browser/ui/authentication/signin_promo_view.h#newcode24 ios/chrome/browser/ui/authentication/signin_promo_view.h:24: // password. On 2017/03/28 08:12:51, msarda wrote: > ...
3 years, 8 months ago (2017-03-28 12:27:21 UTC) #32
msarda
lgtm https://codereview.chromium.org/2749703003/diff/260001/ios/chrome/browser/ui/authentication/signin_promo_view.h File ios/chrome/browser/ui/authentication/signin_promo_view.h (right): https://codereview.chromium.org/2749703003/diff/260001/ios/chrome/browser/ui/authentication/signin_promo_view.h#newcode24 ios/chrome/browser/ui/authentication/signin_promo_view.h:24: // without entering theircredentials. s/theircredentials/their credentials https://codereview.chromium.org/2749703003/diff/260001/ios/chrome/browser/ui/authentication/signin_promo_view.h#newcode35 ios/chrome/browser/ui/authentication/signin_promo_view.h:35: ...
3 years, 8 months ago (2017-03-28 12:49:17 UTC) #35
jlebel
https://codereview.chromium.org/2749703003/diff/260001/ios/chrome/browser/ui/authentication/signin_promo_view.h File ios/chrome/browser/ui/authentication/signin_promo_view.h (right): https://codereview.chromium.org/2749703003/diff/260001/ios/chrome/browser/ui/authentication/signin_promo_view.h#newcode24 ios/chrome/browser/ui/authentication/signin_promo_view.h:24: // without entering theircredentials. On 2017/03/28 12:49:17, msarda wrote: ...
3 years, 8 months ago (2017-03-28 13:00:42 UTC) #36
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/2749703003/280001
3 years, 8 months ago (2017-03-28 13:01:00 UTC) #39
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/2749703003/300001
3 years, 8 months ago (2017-03-28 13:14:09 UTC) #43
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/2749703003/290017
3 years, 8 months ago (2017-03-28 15:58:52 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/337427)
3 years, 8 months ago (2017-03-28 17:34:39 UTC) #48
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/2749703003/330001
3 years, 8 months ago (2017-03-28 21:34:34 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/259643)
3 years, 8 months ago (2017-03-28 23:04:23 UTC) #53
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/2749703003/330001
3 years, 8 months ago (2017-03-29 08:49:57 UTC) #55
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 09:49:22 UTC) #58
Message was sent while issue was closed.
Committed patchset #9 (id:330001) as
https://chromium.googlesource.com/chromium/src/+/bb883994c62cbdbb2d449d886190...

Powered by Google App Engine
This is Rietveld 408576698