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

Issue 11824021: [sync] [chromeos] Fix setup flow when sync data is cleared via dashboard and sync is set up again (Closed)

Created:
7 years, 11 months ago by Raghu Simha
Modified:
7 years, 11 months ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

[sync] [chromeos] Fix setup flow when sync data is cleared via dashboard and sync is set up again On Chrome OS, when a user clears their sync data via the dashboard, logs out, logs in again, and attempts to set up sync once more, the setup flow ends up getting stuck after the backend is initialized, because SigninTracker does not respond to the OnStateChanged call from ProfileSyncService::OnBackendInitialized. This regression can be traced back to r171190, where SigninTracker was no longer initialized with the SigninTracker::SERVICES_INITIALIZING state in SyncSetupHandler::DisplayConfigureSync. This was causing SigninTracker to drop the OnStateChanged call from ProfileSyncService in the scenario where the user attempted to set up sync while already signed in to the Chrome OS device after clearing sync data via the dashboard. This patch restores the initial SigninTracker state in SyncSetupHandler::DisplayConfigureSync. It also fixes the unittests that were previously failing in the original CL. BUG=167090, 168064, 168875, 81265 TEST=On ChromeOS, clear the dashboard, log out, log in, and set up sync. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176755

Patch Set 1 #

Patch Set 2 : Disable unittests that behave differently based on whether client login flow is enabled or not. #

Total comments: 2

Patch Set 3 : Fix unittests #

Total comments: 5

Patch Set 4 : CR feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -8 lines) Patch
M chrome/browser/ui/webui/sync_setup_handler.cc View 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler_unittest.cc View 1 2 3 2 chunks +24 lines, -7 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Raghu Simha
Roger, Nicolas: Please review. This fixes the pri-1 ReleaseBlocker bugs 167090 and 168064.
7 years, 11 months ago (2013-01-09 09:21:09 UTC) #1
Roger Tawa OOO till Jul 10th
lgtm, but please fix unit tests to handle web-based flow too. https://codereview.chromium.org/11824021/diff/13002/chrome/browser/ui/webui/sync_setup_handler_unittest.cc File chrome/browser/ui/webui/sync_setup_handler_unittest.cc (right): ...
7 years, 11 months ago (2013-01-09 15:03:23 UTC) #2
Raghu Simha
+jhawkins for OWNERS approval.
7 years, 11 months ago (2013-01-09 16:01:06 UTC) #3
James Hawkins
https://codereview.chromium.org/11824021/diff/13002/chrome/browser/ui/webui/sync_setup_handler_unittest.cc File chrome/browser/ui/webui/sync_setup_handler_unittest.cc (right): https://codereview.chromium.org/11824021/diff/13002/chrome/browser/ui/webui/sync_setup_handler_unittest.cc#newcode561 chrome/browser/ui/webui/sync_setup_handler_unittest.cc:561: DISABLED_DisplayConfigureWithBackendDisabledAndSigninSuccess) { On 2013/01/09 15:03:23, Roger Tawa wrote: > ...
7 years, 11 months ago (2013-01-09 18:27:46 UTC) #4
Raghu Simha
Roger, James: Unittests are now fixed. PTAL.
7 years, 11 months ago (2013-01-10 06:55:57 UTC) #5
Raghu Simha
On 2013/01/09 15:03:23, Roger Tawa wrote: > Instead of always disabling this test, you should ...
7 years, 11 months ago (2013-01-10 08:11:28 UTC) #6
Andrew T Wilson (Slow)
Do we have test coverage for the case in bug 167090 now, so this doesn't ...
7 years, 11 months ago (2013-01-10 09:20:23 UTC) #7
Raghu Simha
On 2013/01/10 09:20:23, Andrew T Wilson wrote: > Do we have test coverage for the ...
7 years, 11 months ago (2013-01-10 09:58:43 UTC) #8
Raghu Simha
Ping.
7 years, 11 months ago (2013-01-11 03:39:46 UTC) #9
Roger Tawa OOO till Jul 10th
Instead of using ASSERT_LE, I think its better to be explicit about what is expected ...
7 years, 11 months ago (2013-01-11 18:33:51 UTC) #10
Raghu Simha
https://codereview.chromium.org/11824021/diff/7010/chrome/browser/ui/webui/sync_setup_handler_unittest.cc File chrome/browser/ui/webui/sync_setup_handler_unittest.cc (right): https://codereview.chromium.org/11824021/diff/7010/chrome/browser/ui/webui/sync_setup_handler_unittest.cc#newcode552 chrome/browser/ui/webui/sync_setup_handler_unittest.cc:552: On 2013/01/11 18:33:51, Roger Tawa wrote: > The web-base ...
7 years, 11 months ago (2013-01-11 18:53:04 UTC) #11
Roger Tawa OOO till Jul 10th
Lgtm On Jan 11, 2013 1:53 PM, <rsimha@chromium.org> wrote: > > https://codereview.chromium.**org/11824021/diff/7010/chrome/** > browser/ui/webui/sync_setup_**handler_unittest.cc<https://codereview.chromium.org/11824021/diff/7010/chrome/browser/ui/webui/sync_setup_handler_unittest.cc> > ...
7 years, 11 months ago (2013-01-14 13:16:25 UTC) #12
James Hawkins
LGTM with nit. https://codereview.chromium.org/11824021/diff/7010/chrome/browser/ui/webui/sync_setup_handler_unittest.cc File chrome/browser/ui/webui/sync_setup_handler_unittest.cc (right): https://codereview.chromium.org/11824021/diff/7010/chrome/browser/ui/webui/sync_setup_handler_unittest.cc#newcode551 chrome/browser/ui/webui/sync_setup_handler_unittest.cc:551: ASSERT_LE(1U, web_ui_.call_data().size()); EXPECT_LE Here and the ...
7 years, 11 months ago (2013-01-14 22:30:18 UTC) #13
Raghu Simha
7 years, 11 months ago (2013-01-14 22:45:46 UTC) #14
https://codereview.chromium.org/11824021/diff/7010/chrome/browser/ui/webui/sy...
File chrome/browser/ui/webui/sync_setup_handler_unittest.cc (right):

https://codereview.chromium.org/11824021/diff/7010/chrome/browser/ui/webui/sy...
chrome/browser/ui/webui/sync_setup_handler_unittest.cc:551: ASSERT_LE(1U,
web_ui_.call_data().size());
On 2013/01/14 22:30:18, James Hawkins wrote:
> EXPECT_LE
> 
> Here and the other ASSERTs you added.

Done.

Powered by Google App Engine
This is Rietveld 408576698