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

Issue 8308005: Suppress bubble view for CONNECTION_FAILED error (Closed)

Created:
9 years, 2 months ago by sail
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), Paweł Hajdan Jr., idana
Visibility:
Public.

Description

Suppress bubble view for CONNECTION_FAILED error If there was a connection failed error then we woud display an error bubble view and wrench menu item. We're not supposed to display error messages for CONNECTION_FAILED errors so all the labels in the bubble view and wrench menu error item were blank. The problem was that we would decide when to show the error UI based on the auth error state. To fix this I simplified the code so that we show the error UI based directly on the presence of the error labels. This makes the code significantly simpler. I also added unit tests to make sure that we're returning labels when we should not not returning them when we shouldn't. BUG=100451 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105944

Patch Set 1 #

Total comments: 4

Patch Set 2 : addressed review comments #

Total comments: 2

Patch Set 3 : removing using #

Patch Set 4 : added test for SyncGlobalError #

Patch Set 5 : fixed failure in debug build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -61 lines) Patch
M chrome/browser/sync/profile_sync_service_mock.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_global_error.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/sync/sync_global_error.cc View 1 2 3 7 chunks +32 lines, -27 lines 0 comments Download
A chrome/browser/sync/sync_global_error_unittest.cc View 1 2 3 4 1 chunk +122 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_ui_util.h View 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/sync/sync_ui_util.cc View 1 1 chunk +21 lines, -23 lines 0 comments Download
M chrome/browser/sync/sync_ui_util_unittest.cc View 1 2 3 4 2 chunks +70 lines, -6 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
sail
9 years, 2 months ago (2011-10-16 00:43:18 UTC) #1
Andrew T Wilson (Slow)
http://codereview.chromium.org/8308005/diff/1/chrome/browser/sync/sync_global_error.cc File chrome/browser/sync/sync_global_error.cc (right): http://codereview.chromium.org/8308005/diff/1/chrome/browser/sync/sync_global_error.cc#newcode97 chrome/browser/sync/sync_global_error.cc:97: bubble_accept_label.empty()) || I think the logic in the DCHECK ...
9 years, 2 months ago (2011-10-17 04:08:54 UTC) #2
sail
http://codereview.chromium.org/8308005/diff/1/chrome/browser/sync/sync_global_error.cc File chrome/browser/sync/sync_global_error.cc (right): http://codereview.chromium.org/8308005/diff/1/chrome/browser/sync/sync_global_error.cc#newcode97 chrome/browser/sync/sync_global_error.cc:97: bubble_accept_label.empty()) || On 2011/10/17 04:08:55, Andrew T Wilson wrote: ...
9 years, 2 months ago (2011-10-17 15:21:22 UTC) #3
Andrew T Wilson (Slow)
Tim, are you OK with no tests for sync_global_error? If so, LGTM.
9 years, 2 months ago (2011-10-17 15:54:44 UTC) #4
tim (not reviewing)
@sail - I may be missing something but I don't see how VerifySyncGlobalErrorResult tests the ...
9 years, 2 months ago (2011-10-17 16:12:27 UTC) #5
sail
http://codereview.chromium.org/8308005/diff/4001/chrome/browser/sync/sync_global_error.cc File chrome/browser/sync/sync_global_error.cc (right): http://codereview.chromium.org/8308005/diff/4001/chrome/browser/sync/sync_global_error.cc#newcode20 chrome/browser/sync/sync_global_error.cc:20: using namespace sync_ui_util; On 2011/10/17 16:12:27, timsteele wrote: > ...
9 years, 2 months ago (2011-10-17 16:27:52 UTC) #6
sail
On 2011/10/17 16:12:27, timsteele wrote: > @sail - I may be missing something but I ...
9 years, 2 months ago (2011-10-17 16:28:47 UTC) #7
tim (not reviewing)
On 2011/10/17 16:28:47, sail wrote: > On 2011/10/17 16:12:27, timsteele wrote: > > @sail - ...
9 years, 2 months ago (2011-10-17 16:33:44 UTC) #8
sail
Added test for SyncGlobalError. Please take another look. Thanks
9 years, 2 months ago (2011-10-17 17:53:45 UTC) #9
tim (not reviewing)
Thanks! LGTM
9 years, 2 months ago (2011-10-17 20:57:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/8308005/10002
9 years, 2 months ago (2011-10-17 20:58:02 UTC) #11
commit-bot: I haz the power
9 years, 2 months ago (2011-10-17 22:38:56 UTC) #12
Change committed as 105944

Powered by Google App Engine
This is Rietveld 408576698