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

Issue 110373007: Delay loading the NTP after sign in until MergeSession has been performed in (Closed)

Created:
7 years ago by Roger Tawa OOO till Jul 10th
Modified:
6 years, 11 months ago
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, haitaol+watch_chromium.org, chromium-apps-reviews_chromium.org, rsimha+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

Delay loading the NTP after sign in until MergeSession has been performed in the content area. Also fixes a bug where the account reconcilor would run concurrent MergeSessions on startup if there are multiple accounts connected to the profile. This led to a race condition that could mess up the gaia cookie. Added more tests to GoogleAutoLoginHelper. BUG=315269 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244044

Patch Set 1 : Fix chunk mismatch? #

Patch Set 2 : rebased #

Total comments: 4

Patch Set 3 : Uploading to rebase #

Patch Set 4 : rebased #

Patch Set 5 : Address review comments #

Patch Set 6 : rebased #

Total comments: 7

Patch Set 7 : Use Observer, remove auto delete #

Patch Set 8 : rebased #

Total comments: 3

Patch Set 9 : Address review comments #

Patch Set 10 : rebased #

Patch Set 11 : merged #

Patch Set 12 : rebased #

Patch Set 13 : Fix compile error on cros, merge with Brian's change #

Patch Set 14 : Fix incorrect fake signin manager class #

Patch Set 15 : Fix typo in chromeos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+420 lines, -148 lines) Patch
M chrome/browser/android/signin/signin_manager_android.h View 1 2 3 4 5 6 4 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/android/signin/signin_manager_android.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/signin/account_reconcilor.h View 1 2 3 4 5 6 4 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/signin/account_reconcilor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/signin/account_reconcilor_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/signin/google_auto_login_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +49 lines, -13 lines 0 comments Download
M chrome/browser/signin/google_auto_login_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +71 lines, -49 lines 0 comments Download
M chrome/browser/signin/google_auto_login_helper_unittest.cc View 1 2 3 4 5 6 3 chunks +141 lines, -64 lines 0 comments Download
M chrome/browser/signin/signin_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/signin/signin_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/signin/signin_tracker.h View 1 2 3 4 5 6 7 8 4 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/signin/signin_tracker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +37 lines, -2 lines 0 comments Download
M chrome/browser/signin/signin_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Roger Tawa OOO till Jul 10th
Hi Hui, Please take a look. Thanks.
7 years ago (2013-12-18 16:59:22 UTC) #1
guohui
as discussed offline, this CL does not seem to fix the attached bug. It only ...
7 years ago (2013-12-18 22:27:09 UTC) #2
Roger Tawa OOO till Jul 10th
Thanks Hui. I was thinking of mirror and not just inline sign in by itself. ...
7 years ago (2013-12-19 02:43:42 UTC) #3
guohui
One question below otherwise lgtm. Thanks for doing this! https://codereview.chromium.org/110373007/diff/140001/chrome/browser/ui/sync/one_click_signin_sync_starter.cc File chrome/browser/ui/sync/one_click_signin_sync_starter.cc (right): https://codereview.chromium.org/110373007/diff/140001/chrome/browser/ui/sync/one_click_signin_sync_starter.cc#newcode371 chrome/browser/ui/sync/one_click_signin_sync_starter.cc:371: ...
7 years ago (2013-12-19 19:28:02 UTC) #4
Roger Tawa OOO till Jul 10th
Thanks Hui. https://codereview.chromium.org/110373007/diff/140001/chrome/browser/ui/sync/one_click_signin_sync_starter.cc File chrome/browser/ui/sync/one_click_signin_sync_starter.cc (right): https://codereview.chromium.org/110373007/diff/140001/chrome/browser/ui/sync/one_click_signin_sync_starter.cc#newcode371 chrome/browser/ui/sync/one_click_signin_sync_starter.cc:371: MergeSessionComplete(GoogleServiceAuthError(GoogleServiceAuthError::NONE)); On 2013/12/19 19:28:02, guohui wrote: > ...
7 years ago (2013-12-19 20:46:32 UTC) #5
Roger Tawa OOO till Jul 10th
Hi guys, Antony: can you review changes to webstore_private? Scott: can you review changes to ...
7 years ago (2013-12-19 20:51:36 UTC) #6
asargent_no_longer_on_chrome
chrome/browser/extensions/* LGTM
7 years ago (2013-12-19 21:04:34 UTC) #7
sky
I thought we were trying to move away from notifications? https://code.google.com/p/chromium/issues/detail?id=268984
7 years ago (2013-12-19 21:38:36 UTC) #8
acleung1
https://codereview.chromium.org/110373007/diff/140001/chrome/browser/signin/google_auto_login_helper.h File chrome/browser/signin/google_auto_login_helper.h (right): https://codereview.chromium.org/110373007/diff/140001/chrome/browser/signin/google_auto_login_helper.h#newcode22 chrome/browser/signin/google_auto_login_helper.h:22: // By default instances of GoogleAutoLoginHelper delete themselves when ...
7 years ago (2013-12-19 22:34:41 UTC) #9
Roger Tawa OOO till Jul 10th
Thanks Scott, Alan. Scott: changed from notification to observer. Alan: implemented your suggestions except for ...
7 years ago (2013-12-20 02:58:44 UTC) #10
guohui
https://codereview.chromium.org/110373007/diff/200001/chrome/browser/signin/google_auto_login_helper.h File chrome/browser/signin/google_auto_login_helper.h (right): https://codereview.chromium.org/110373007/diff/200001/chrome/browser/signin/google_auto_login_helper.h#newcode25 chrome/browser/signin/google_auto_login_helper.h:25: class GoogleAutoLoginHelper : public GaiaAuthConsumer, The class has changed ...
7 years ago (2013-12-20 16:11:08 UTC) #11
acleung1
lgtm I am ok with renaming later / leaving a TODO to rename it.
7 years ago (2013-12-20 17:56:03 UTC) #12
Roger Tawa OOO till Jul 10th
Thanks Hui. If the code is OK now, I'll rename the helper in the next ...
7 years ago (2013-12-20 20:02:00 UTC) #13
guohui
lgtm
7 years ago (2013-12-20 20:12:31 UTC) #14
nyquist
chrome/browser/android/signin/ lgtm
7 years ago (2013-12-20 21:02:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerta@chromium.org/110373007/260001
7 years ago (2013-12-20 21:06:42 UTC) #16
Roger Tawa OOO till Jul 10th
FYI, I opened crbug.com/330292 to track renaming of the GoogleAutoLoginHelper class.
7 years ago (2013-12-20 21:11:45 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_chromeos_clang for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos_clang&number=64570
7 years ago (2013-12-20 22:12:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerta@chromium.org/110373007/260001
7 years ago (2013-12-21 03:10:14 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, ...
7 years ago (2013-12-21 04:16:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerta@chromium.org/110373007/750001
7 years ago (2013-12-23 14:33:59 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerta@chromium.org/110373007/1840001
6 years, 11 months ago (2014-01-09 23:37:14 UTC) #22
commit-bot: I haz the power
6 years, 11 months ago (2014-01-10 02:14:31 UTC) #23
Message was sent while issue was closed.
Change committed as 244044

Powered by Google App Engine
This is Rietveld 408576698