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

Issue 10539128: Set timeout in sync setup (Closed)

Created:
8 years, 6 months ago by peria
Modified:
8 years, 4 months ago
CC:
chromium-reviews, arv (Not doing code reviews)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

On timeout of setting up sync, show a dialog to tell users the task longer time than expected and to enable them to close spinner window. BUG=128692 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148740

Patch Set 1 : Remove a needless empty line #

Total comments: 11

Patch Set 2 : Fixed commented points #

Total comments: 8

Patch Set 3 : Fixed some descriptions. #

Total comments: 14

Patch Set 4 : Fix some commented points #

Total comments: 2

Patch Set 5 : Removed a needless line. #

Patch Set 6 : Removed a needless line #

Patch Set 7 : Move back setting up of backend-timer into DisplaySpinner() #

Total comments: 9

Patch Set 8 : Fixed commented descriptions #

Patch Set 9 : Do not show GAIA login on timeout #

Total comments: 6

Patch Set 10 : Check if login is forced #

Patch Set 11 : Removed the branch with force_login #

Total comments: 2

Patch Set 12 : Fix a comment #

Patch Set 13 : Fix a unittest #

Total comments: 2

Patch Set 14 : Fix a unittest putting MessageLoop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -2 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/resources/sync_setup_overlay.html View 1 2 3 4 5 6 7 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/resources/sync_setup_overlay.js View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +44 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (0 generated)
peria
Hi, Would you review this change?
8 years, 6 months ago (2012-06-13 06:29:24 UTC) #1
kochi
IIUC this condition may happen not just because network failure. This may be caused by ...
8 years, 6 months ago (2012-06-13 09:08:29 UTC) #2
Andrew T Wilson (Slow)
Why are we building a timeout? Why not just put a cancel button in the ...
8 years, 6 months ago (2012-06-13 22:52:49 UTC) #3
peria
Fixed commented points. https://chromiumcodereview.appspot.com/10539128/diff/2001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/10539128/diff/2001/chrome/app/generated_resources.grd#newcode11665 chrome/app/generated_resources.grd:11665: + Network time out On 2012/06/13 ...
8 years, 6 months ago (2012-06-14 01:55:12 UTC) #4
peria
On 2012/06/13 22:52:49, Andrew T Wilson wrote: > Why are we building a timeout? Why ...
8 years, 6 months ago (2012-06-14 01:55:34 UTC) #5
kochi
On 2012/06/13 22:52:49, Andrew T Wilson wrote: > Why are we building a timeout? Why ...
8 years, 6 months ago (2012-06-14 01:55:58 UTC) #6
Andrew T Wilson (Slow)
We need unit tests for this change as well. http://codereview.chromium.org/10539128/diff/1007/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/10539128/diff/1007/chrome/app/generated_resources.grd#newcode11664 chrome/app/generated_resources.grd:11664: ...
8 years, 6 months ago (2012-06-15 23:29:39 UTC) #7
peria
https://chromiumcodereview.appspot.com/10539128/diff/1007/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/10539128/diff/1007/chrome/app/generated_resources.grd#newcode11664 chrome/app/generated_resources.grd:11664: + <message name="IDS_SYNC_SETUP_TIME_OUT_TITLE"> On 2012/06/15 23:29:40, Andrew T Wilson ...
8 years, 6 months ago (2012-06-18 05:15:48 UTC) #8
Andrew T Wilson (Slow)
> On 2012/06/15 23:29:40, Andrew T Wilson wrote: > > This doesn't seem to cancel ...
8 years, 6 months ago (2012-06-20 00:11:50 UTC) #9
Andrew T Wilson (Slow)
https://chromiumcodereview.appspot.com/10539128/diff/13001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/10539128/diff/13001/chrome/app/generated_resources.grd#newcode11668 chrome/app/generated_resources.grd:11668: + Please make sure your network connection is working ...
8 years, 6 months ago (2012-06-20 00:12:02 UTC) #10
peria
https://chromiumcodereview.appspot.com/10539128/diff/13001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/10539128/diff/13001/chrome/app/generated_resources.grd#newcode11668 chrome/app/generated_resources.grd:11668: + Please make sure your network connection is working ...
8 years, 6 months ago (2012-06-20 04:06:03 UTC) #11
Andrew T Wilson (Slow)
https://chromiumcodereview.appspot.com/10539128/diff/13001/chrome/browser/ui/webui/sync_setup_handler.cc File chrome/browser/ui/webui/sync_setup_handler.cc (right): https://chromiumcodereview.appspot.com/10539128/diff/13001/chrome/browser/ui/webui/sync_setup_handler.cc#newcode543 chrome/browser/ui/webui/sync_setup_handler.cc:543: backend_start_timer_.reset(new base::OneShotTimer<SyncSetupHandler>()); Sorry, I meant to say "DCHECK(!backend_start_timer_.get()) to ...
8 years, 6 months ago (2012-06-20 05:23:41 UTC) #12
peria
https://chromiumcodereview.appspot.com/10539128/diff/13001/chrome/browser/ui/webui/sync_setup_handler.cc File chrome/browser/ui/webui/sync_setup_handler.cc (right): https://chromiumcodereview.appspot.com/10539128/diff/13001/chrome/browser/ui/webui/sync_setup_handler.cc#newcode543 chrome/browser/ui/webui/sync_setup_handler.cc:543: backend_start_timer_.reset(new base::OneShotTimer<SyncSetupHandler>()); On 2012/06/20 05:23:41, Andrew T Wilson wrote: ...
8 years, 6 months ago (2012-06-20 09:20:17 UTC) #13
Andrew T Wilson (Slow)
https://chromiumcodereview.appspot.com/10539128/diff/13001/chrome/browser/ui/webui/sync_setup_handler.cc File chrome/browser/ui/webui/sync_setup_handler.cc (right): https://chromiumcodereview.appspot.com/10539128/diff/13001/chrome/browser/ui/webui/sync_setup_handler.cc#newcode543 chrome/browser/ui/webui/sync_setup_handler.cc:543: backend_start_timer_.reset(new base::OneShotTimer<SyncSetupHandler>()); On 2012/06/20 09:20:17, peria wrote: > On ...
8 years, 6 months ago (2012-06-20 16:40:27 UTC) #14
peria
https://chromiumcodereview.appspot.com/10539128/diff/13001/chrome/browser/ui/webui/sync_setup_handler.cc File chrome/browser/ui/webui/sync_setup_handler.cc (right): https://chromiumcodereview.appspot.com/10539128/diff/13001/chrome/browser/ui/webui/sync_setup_handler.cc#newcode543 chrome/browser/ui/webui/sync_setup_handler.cc:543: backend_start_timer_.reset(new base::OneShotTimer<SyncSetupHandler>()); On 2012/06/20 16:40:27, Andrew T Wilson wrote: ...
8 years, 6 months ago (2012-06-21 06:45:32 UTC) #15
kochi
Could you try rebasing to ToT HEAD? I submitted some changes to this file and ...
8 years, 6 months ago (2012-06-25 17:27:58 UTC) #16
peria
Put back the setting up of the timer in DisplaySpinner(). Hanckathon changes resolved the bug ...
8 years, 6 months ago (2012-06-26 08:52:35 UTC) #17
Andrew T Wilson (Slow)
LGTM http://codereview.chromium.org/10539128/diff/38001/chrome/browser/ui/webui/sync_setup_handler.h File chrome/browser/ui/webui/sync_setup_handler.h (right): http://codereview.chromium.org/10539128/diff/38001/chrome/browser/ui/webui/sync_setup_handler.h#newcode148 chrome/browser/ui/webui/sync_setup_handler.h:148: // Returns true if we're the active login ...
8 years, 5 months ago (2012-06-26 18:11:25 UTC) #18
kochi
lgtm Once you corrected the comment, I'll submit to the CQ. On 2012/06/26 18:11:25, Andrew ...
8 years, 5 months ago (2012-06-26 22:54:10 UTC) #19
kochi
On 2012/06/26 22:54:10, Takayoshi Kochi wrote: > lgtm > > Once you corrected the comment, ...
8 years, 5 months ago (2012-06-26 22:57:28 UTC) #20
kochi
Adding jhawkins@ for OWNERS review.
8 years, 5 months ago (2012-06-26 22:58:01 UTC) #21
James Hawkins
http://chromiumcodereview.appspot.com/10539128/diff/38001/chrome/browser/resources/sync_setup_overlay.html File chrome/browser/resources/sync_setup_overlay.html (right): http://chromiumcodereview.appspot.com/10539128/diff/38001/chrome/browser/resources/sync_setup_overlay.html#newcode366 chrome/browser/resources/sync_setup_overlay.html:366: <div i18n-content="syncSetupTimeoutContent" class="content-area"></div> s/div/span/ http://chromiumcodereview.appspot.com/10539128/diff/38001/chrome/browser/resources/sync_setup_overlay.html#newcode368 chrome/browser/resources/sync_setup_overlay.html:368: <input id="timeout-ok" type="button" ...
8 years, 5 months ago (2012-06-26 23:00:14 UTC) #22
kochi
+cpu for chrome/app/generated_resources.grd OWNERS review.
8 years, 5 months ago (2012-06-27 00:01:07 UTC) #23
cpu_(ooo_6.6-7.5)
lgtm http://codereview.chromium.org/10539128/diff/38001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/10539128/diff/38001/chrome/app/generated_resources.grd#newcode11766 chrome/app/generated_resources.grd:11766: + <message name="IDS_SYNC_SETUP_TIME_OUT_CONTENT" desc="Text explaining what to do ...
8 years, 5 months ago (2012-06-28 18:44:24 UTC) #24
peria
Thank you for all your reviews, but please cancel current LGTMs and suspend reviewing. My ...
8 years, 5 months ago (2012-06-29 07:11:17 UTC) #25
peria
I was sorry to wait for a while. Please start reviewing again. The problem I ...
8 years, 5 months ago (2012-07-02 08:55:54 UTC) #26
kochi
lgtm with one style nit. I don't like where |visible_timeout_| is cleared, but probably we ...
8 years, 5 months ago (2012-07-02 09:34:47 UTC) #27
Andrew T Wilson (Slow)
https://chromiumcodereview.appspot.com/10539128/diff/56001/chrome/browser/ui/webui/sync_setup_handler.cc File chrome/browser/ui/webui/sync_setup_handler.cc (right): https://chromiumcodereview.appspot.com/10539128/diff/56001/chrome/browser/ui/webui/sync_setup_handler.cc#newcode882 chrome/browser/ui/webui/sync_setup_handler.cc:882: if (visible_timeout_) { I don't get it - why ...
8 years, 5 months ago (2012-07-02 15:31:58 UTC) #28
peria
I tested manually, and it works well on Cr, CrOS, and unconnected CrOS. https://chromiumcodereview.appspot.com/10539128/diff/56001/chrome/browser/ui/webui/sync_setup_handler.cc File ...
8 years, 5 months ago (2012-07-03 08:06:46 UTC) #29
Andrew T Wilson (Slow)
https://chromiumcodereview.appspot.com/10539128/diff/56001/chrome/browser/ui/webui/sync_setup_handler.cc File chrome/browser/ui/webui/sync_setup_handler.cc (right): https://chromiumcodereview.appspot.com/10539128/diff/56001/chrome/browser/ui/webui/sync_setup_handler.cc#newcode882 chrome/browser/ui/webui/sync_setup_handler.cc:882: if (visible_timeout_) { Your new code still breaks if ...
8 years, 5 months ago (2012-07-03 16:35:04 UTC) #30
Andrew T Wilson (Slow)
BTW, it looks like the forceLogin code is obsolete - we don't need to support ...
8 years, 5 months ago (2012-07-03 16:38:24 UTC) #31
peria
https://chromiumcodereview.appspot.com/10539128/diff/56001/chrome/browser/ui/webui/sync_setup_handler.cc File chrome/browser/ui/webui/sync_setup_handler.cc (right): https://chromiumcodereview.appspot.com/10539128/diff/56001/chrome/browser/ui/webui/sync_setup_handler.cc#newcode882 chrome/browser/ui/webui/sync_setup_handler.cc:882: if (visible_timeout_) { On 2012/07/03 16:35:05, Andrew T Wilson ...
8 years, 5 months ago (2012-07-06 06:37:57 UTC) #32
James Hawkins
LGTM
8 years, 5 months ago (2012-07-06 21:10:33 UTC) #33
peria
I'm very sorry for being so late. I've updated the patch, which removes the branch ...
8 years, 5 months ago (2012-07-20 04:27:12 UTC) #34
kochi
On 2012/07/20 04:27:12, peria wrote: > I'm very sorry for being so late. > I've ...
8 years, 5 months ago (2012-07-20 05:18:01 UTC) #35
kochi
Oops, I missed to publish review comments - one nit for the comment. https://chromiumcodereview.appspot.com/10539128/diff/69001/chrome/browser/ui/webui/sync_setup_handler.cc File ...
8 years, 5 months ago (2012-07-20 05:18:34 UTC) #36
peria
https://chromiumcodereview.appspot.com/10539128/diff/69001/chrome/browser/ui/webui/sync_setup_handler.cc File chrome/browser/ui/webui/sync_setup_handler.cc (right): https://chromiumcodereview.appspot.com/10539128/diff/69001/chrome/browser/ui/webui/sync_setup_handler.cc#newcode617 chrome/browser/ui/webui/sync_setup_handler.cc:617: // Temporarily disable signin tracker. On 2012/07/20 05:18:34, Takayoshi ...
8 years, 5 months ago (2012-07-20 05:23:16 UTC) #37
peria
Andrew PTAL?
8 years, 5 months ago (2012-07-23 04:29:10 UTC) #38
Andrew T Wilson (Slow)
On 2012/07/23 04:29:10, peria wrote: > Andrew > PTAL? Still LGTM.
8 years, 5 months ago (2012-07-23 16:17:27 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/10539128/70006
8 years, 5 months ago (2012-07-24 00:43:08 UTC) #40
commit-bot: I haz the power
Try job failure for 10539128-70006 (retry) on linux_rel for step "unit_tests". It's a second try, ...
8 years, 5 months ago (2012-07-24 01:34:12 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/10539128/70006
8 years, 5 months ago (2012-07-24 01:38:34 UTC) #42
commit-bot: I haz the power
Try job failure for 10539128-70006 (retry) (retry) on linux_rel for step "unit_tests". It's a second ...
8 years, 5 months ago (2012-07-24 02:49:35 UTC) #43
kochi
http://codereview.chromium.org/10539128/diff/80001/chrome/browser/ui/webui/sync_setup_handler_unittest.cc File chrome/browser/ui/webui/sync_setup_handler_unittest.cc (right): http://codereview.chromium.org/10539128/diff/80001/chrome/browser/ui/webui/sync_setup_handler_unittest.cc#newcode425 chrome/browser/ui/webui/sync_setup_handler_unittest.cc:425: MessageLoop message_loop_; Could you elaborate why this fixes the ...
8 years, 4 months ago (2012-07-27 05:13:53 UTC) #44
peria
My previous change broke tests with DCHECK fails. It was because Timer class required MessageLoop ...
8 years, 4 months ago (2012-07-27 05:23:10 UTC) #45
peria
Put a comment to explain why MessageLoop is added. http://codereview.chromium.org/10539128/diff/80001/chrome/browser/ui/webui/sync_setup_handler_unittest.cc File chrome/browser/ui/webui/sync_setup_handler_unittest.cc (right): http://codereview.chromium.org/10539128/diff/80001/chrome/browser/ui/webui/sync_setup_handler_unittest.cc#newcode425 chrome/browser/ui/webui/sync_setup_handler_unittest.cc:425: ...
8 years, 4 months ago (2012-07-27 05:32:02 UTC) #46
kochi
lgtm
8 years, 4 months ago (2012-07-27 05:39:44 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/10539128/80003
8 years, 4 months ago (2012-07-27 05:39:56 UTC) #48
commit-bot: I haz the power
8 years, 4 months ago (2012-07-27 10:33:23 UTC) #49
Change committed as 148740

Powered by Google App Engine
This is Rietveld 408576698