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

Issue 10555005: Address bug where the one-click sign-in bar would never show again once (Closed)

Created:
8 years, 6 months ago by mathp
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, brettw-cc_chromium.org, anantha, ajwong+watch_chromium.org
Visibility:
Public.

Description

Address bug where the one-click sign-in bar would never show again once a user (with associated profile) had clicked "Cancel". New behavior is that we now remember for which email the bar was dismissed, and show it again in case the user signs in with a different email. If the user accepts the one-click sign-in at one point, the bar never shows again for this profile BUG=118280 TEST=Cancel the one-click sign-in bar, log-in with another Google account, see that it still shows up. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148760

Patch Set 1 #

Patch Set 2 : fixed import error #

Total comments: 7

Patch Set 3 : Unused import, whitespace #

Total comments: 20

Patch Set 4 : Addressed comments about infobars.py #

Patch Set 5 : mostly addressed rogerta's comments #

Total comments: 2

Patch Set 6 : New test #

Patch Set 7 : lint #

Total comments: 6

Patch Set 8 : Moved one if #

Total comments: 2

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : Removed pyauto test and left a comment #

Patch Set 12 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -105 lines) Patch
M chrome/browser/password_manager/password_form_manager.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_manager_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/signin/signin_manager_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +51 lines, -36 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +101 lines, -65 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
mathp
8 years, 6 months ago (2012-06-15 14:06:57 UTC) #1
dyu1
https://chromiumcodereview.appspot.com/10555005/diff/2002/chrome/test/functional/infobars.py File chrome/test/functional/infobars.py (right): https://chromiumcodereview.appspot.com/10555005/diff/2002/chrome/test/functional/infobars.py#newcode200 chrome/test/functional/infobars.py:200: tab_index=0, windex=0): This is not indented far enough, the ...
8 years, 6 months ago (2012-06-15 15:59:47 UTC) #2
mathp
https://chromiumcodereview.appspot.com/10555005/diff/2002/chrome/test/functional/infobars.py File chrome/test/functional/infobars.py (right): https://chromiumcodereview.appspot.com/10555005/diff/2002/chrome/test/functional/infobars.py#newcode200 chrome/test/functional/infobars.py:200: tab_index=0, windex=0): On 2012/06/15 15:59:47, dyu1 wrote: > This ...
8 years, 6 months ago (2012-06-15 16:53:22 UTC) #3
Roger Tawa OOO till Jul 10th
Looks good Mathieu! Some comments below. By moving more code into CanOffer() you will need ...
8 years, 6 months ago (2012-06-15 17:56:00 UTC) #4
Mathieu
http://codereview.chromium.org/10555005/diff/11012/chrome/browser/password_manager/password_manager_delegate_impl.cc File chrome/browser/password_manager/password_manager_delegate_impl.cc (right): http://codereview.chromium.org/10555005/diff/11012/chrome/browser/password_manager/password_manager_delegate_impl.cc#newcode143 chrome/browser/password_manager/password_manager_delegate_impl.cc:143: if ((realm == GURL(GaiaUrls::GetInstance()->gaia_login_form_realm()) || On 2012/06/15 17:56:00, Roger ...
8 years, 6 months ago (2012-06-21 13:13:00 UTC) #5
Roger Tawa OOO till Jul 10th
Looks good Mathieu. wrt extra testing and mocking, you'll need to create a mock of ...
8 years, 6 months ago (2012-06-21 13:45:51 UTC) #6
Mathieu
http://codereview.chromium.org/10555005/diff/15001/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc File chrome/browser/ui/sync/one_click_signin_helper_unittest.cc (right): http://codereview.chromium.org/10555005/diff/15001/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc#newcode129 chrome/browser/ui/sync/one_click_signin_helper_unittest.cc:129: true)); On 2012/06/21 13:45:51, Roger Tawa wrote: > align ...
8 years, 6 months ago (2012-06-26 15:54:13 UTC) #7
Roger Tawa OOO till Jul 10th
Looks very good Mathieu. A couple of minor nits, but one question about an if ...
8 years, 5 months ago (2012-06-27 21:17:08 UTC) #8
mathp
https://chromiumcodereview.appspot.com/10555005/diff/36001/chrome/browser/ui/sync/one_click_signin_helper.cc File chrome/browser/ui/sync/one_click_signin_helper.cc (right): https://chromiumcodereview.appspot.com/10555005/diff/36001/chrome/browser/ui/sync/one_click_signin_helper.cc#newcode337 chrome/browser/ui/sync/one_click_signin_helper.cc:337: } On 2012/06/27 21:17:08, Roger Tawa wrote: > how ...
8 years, 5 months ago (2012-06-29 13:43:59 UTC) #9
Roger Tawa OOO till Jul 10th
lgtm Looks great Mathieu, thanks! You will now need to ask for owner reviews from: ...
8 years, 5 months ago (2012-06-29 14:33:44 UTC) #10
mathp
https://chromiumcodereview.appspot.com/10555005/diff/40001/chrome/browser/ui/sync/one_click_signin_helper.cc File chrome/browser/ui/sync/one_click_signin_helper.cc (right): https://chromiumcodereview.appspot.com/10555005/diff/40001/chrome/browser/ui/sync/one_click_signin_helper.cc#newcode260 chrome/browser/ui/sync/one_click_signin_helper.cc:260: VLOG(1) << cache.GetUserNameOfProfileAtIndex(i); On 2012/06/29 14:33:44, Roger Tawa wrote: ...
8 years, 5 months ago (2012-06-29 14:36:16 UTC) #11
jam
please write the test using browser_tests. pyauto is for testers. it's not the supported test ...
8 years, 5 months ago (2012-06-29 16:09:58 UTC) #12
jam
On 2012/06/29 16:09:58, John Abd-El-Malek wrote: > please write the test using browser_tests. > > ...
8 years, 5 months ago (2012-06-29 16:21:40 UTC) #13
dennis_jeffrey
On 2012/06/29 16:09:58, John Abd-El-Malek wrote: > please write the test using browser_tests. > > ...
8 years, 5 months ago (2012-06-29 17:06:01 UTC) #14
jam
On 2012/06/29 17:06:01, dennis_jeffrey wrote: > On 2012/06/29 16:09:58, John Abd-El-Malek wrote: > > please ...
8 years, 5 months ago (2012-06-29 17:12:48 UTC) #15
Roger Tawa OOO till Jul 10th
Hi John, I've used and modified the pyauto tests before, and for things like this ...
8 years, 5 months ago (2012-06-29 17:13:13 UTC) #16
Nirnimesh
On 2012/06/29 17:13:13, Roger Tawa wrote: > Hi John, > > I've used and modified ...
8 years, 5 months ago (2012-06-29 17:54:41 UTC) #17
jam
On Fri, Jun 29, 2012 at 10:54 AM, <nirnimesh@chromium.org> wrote: > On 2012/06/29 17:13:13, Roger ...
8 years, 5 months ago (2012-06-29 18:33:34 UTC) #18
Nirnimesh
On 2012/06/29 18:33:34, John Abd-El-Malek wrote: > On Fri, Jun 29, 2012 at 10:54 AM, ...
8 years, 5 months ago (2012-06-29 18:38:20 UTC) #19
dyu1
On 2012/06/29 18:33:34, John Abd-El-Malek wrote: > On Fri, Jun 29, 2012 at 10:54 AM, ...
8 years, 5 months ago (2012-06-29 18:44:39 UTC) #20
mathp
Please indicate if pyauto tests are sufficient in this case. Thanks. On 2012/06/29 18:44:39, dyu1 ...
8 years, 5 months ago (2012-07-11 15:15:26 UTC) #21
Nirnimesh
On 2012/07/11 15:15:26, mathp wrote: > Please indicate if pyauto tests are sufficient in this ...
8 years, 5 months ago (2012-07-11 23:04:14 UTC) #22
mathp
On 2012/07/11 23:04:14, Nirnimesh wrote: > On 2012/07/11 15:15:26, mathp wrote: > > Please indicate ...
8 years, 5 months ago (2012-07-13 17:21:50 UTC) #23
jam
lgtm
8 years, 5 months ago (2012-07-26 21:13:27 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@google.com/10555005/59003
8 years, 4 months ago (2012-07-27 13:55:26 UTC) #25
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/sync/one_click_signin_helper_unittest.cc: While running patch -p0 --forward --force; patching file chrome/browser/ui/sync/one_click_signin_helper_unittest.cc ...
8 years, 4 months ago (2012-07-27 13:55:34 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@google.com/10555005/57003
8 years, 4 months ago (2012-07-27 14:34:32 UTC) #27
commit-bot: I haz the power
Try job failure for 10555005-57003 on linux_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=42890 Step "update" is always ...
8 years, 4 months ago (2012-07-27 14:54:54 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@google.com/10555005/57003
8 years, 4 months ago (2012-07-27 15:33:53 UTC) #29
commit-bot: I haz the power
8 years, 4 months ago (2012-07-27 16:56:16 UTC) #30
Change committed as 148760

Powered by Google App Engine
This is Rietveld 408576698