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

Issue 10545170: [Sync] Propagate XMPP auth errors to SyncNotifierObservers (Closed)

Created:
8 years, 6 months ago by akalin
Modified:
8 years, 6 months ago
Reviewers:
rlarocque, gene, ghc
CC:
chromium-reviews, Raghu Simha, ncarter (slow), tim (not reviewing)
Visibility:
Public.

Description

[Sync] Propagate XMPP auth errors to SyncNotifierObservers Detect XMPP auth errors and add new notifications to SingleLoginAttempt and Login. Replace PushClientObserver::OnNotificationStateChange with OnNotifications{Enabled,Disabled} notifications. Change SyncNotifierObserver similarly. Handle InvalidationClient errors and propagate auth errors from that, too. Propagate XMPP auth errors all the way up to SyncManager. It will be handled in a future CL. BUG=38091 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142806

Patch Set 1 #

Patch Set 2 : fix compile errors #

Patch Set 3 : Fix compile error #

Total comments: 2

Patch Set 4 : Address comments #

Patch Set 5 : sync to head, fix win compile #

Patch Set 6 : Fix deps, win compile error #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+711 lines, -238 lines) Patch
M chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M chrome/service/cloud_print/cloud_print_proxy_backend.cc View 1 2 3 2 chunks +22 lines, -19 lines 0 comments Download
M jingle/notifier/communicator/login.h View 1 2 3 4 chunks +24 lines, -17 lines 0 comments Download
M jingle/notifier/communicator/login.cc View 1 2 3 4 chunks +19 lines, -5 lines 0 comments Download
M jingle/notifier/communicator/single_login_attempt.h View 1 2 3 1 chunk +18 lines, -1 line 0 comments Download
M jingle/notifier/communicator/single_login_attempt.cc View 1 2 3 3 chunks +11 lines, -1 line 0 comments Download
M jingle/notifier/communicator/single_login_attempt_unittest.cc View 1 2 3 4 chunks +24 lines, -10 lines 0 comments Download
M jingle/notifier/listener/fake_push_client.h View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M jingle/notifier/listener/fake_push_client.cc View 1 2 3 1 chunk +8 lines, -3 lines 0 comments Download
M jingle/notifier/listener/fake_push_client_observer.h View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M jingle/notifier/listener/fake_push_client_observer.cc View 1 2 3 4 5 2 chunks +11 lines, -6 lines 0 comments Download
M jingle/notifier/listener/non_blocking_push_client.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M jingle/notifier/listener/non_blocking_push_client.cc View 1 2 3 4 chunks +25 lines, -10 lines 0 comments Download
M jingle/notifier/listener/non_blocking_push_client_unittest.cc View 1 2 3 4 5 1 chunk +9 lines, -5 lines 0 comments Download
M jingle/notifier/listener/push_client_observer.h View 1 2 3 4 5 1 chunk +21 lines, -7 lines 0 comments Download
M jingle/notifier/listener/xmpp_push_client.h View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M jingle/notifier/listener/xmpp_push_client.cc View 1 2 3 4 5 2 chunks +12 lines, -4 lines 0 comments Download
M jingle/notifier/listener/xmpp_push_client_unittest.cc View 1 2 3 4 5 5 chunks +18 lines, -7 lines 0 comments Download
M sync/internal_api/public/engine/sync_status.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M sync/internal_api/public/sync_manager.h View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M sync/internal_api/sync_manager.cc View 1 2 3 4 5 5 chunks +46 lines, -20 lines 0 comments Download
M sync/internal_api/syncapi_unittest.cc View 1 2 3 4 1 chunk +9 lines, -6 lines 0 comments Download
M sync/notifier/chrome_invalidation_client.h View 1 2 3 4 6 chunks +28 lines, -4 lines 1 comment Download
M sync/notifier/chrome_invalidation_client.cc View 1 2 3 4 5 chunks +83 lines, -25 lines 0 comments Download
M sync/notifier/chrome_invalidation_client_unittest.cc View 1 2 3 4 5 6 chunks +75 lines, -11 lines 0 comments Download
M sync/notifier/invalidation_notifier.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M sync/notifier/invalidation_notifier.cc View 1 2 3 1 chunk +13 lines, -4 lines 0 comments Download
M sync/notifier/invalidation_notifier_unittest.cc View 1 2 3 4 2 chunks +10 lines, -4 lines 0 comments Download
M sync/notifier/mock_sync_notifier_observer.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier.cc View 1 2 3 4 3 chunks +32 lines, -19 lines 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier_unittest.cc View 1 2 3 4 1 chunk +10 lines, -4 lines 0 comments Download
A sync/notifier/notifications_disabled_reason.h View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
A sync/notifier/notifications_disabled_reason.cc View 1 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download
M sync/notifier/p2p_notifier.h View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M sync/notifier/p2p_notifier.cc View 1 2 3 2 chunks +16 lines, -7 lines 0 comments Download
M sync/notifier/p2p_notifier_unittest.cc View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M sync/notifier/push_client_channel.h View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M sync/notifier/push_client_channel.cc View 1 2 3 1 chunk +11 lines, -3 lines 0 comments Download
M sync/notifier/push_client_channel_unittest.cc View 1 2 3 4 5 1 chunk +10 lines, -4 lines 0 comments Download
M sync/notifier/sync_notifier_observer.h View 1 2 3 2 chunks +11 lines, -3 lines 0 comments Download
M sync/sync.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M sync/tools/sync_listen_notifications.cc View 1 2 3 2 chunks +10 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
akalin
+ghc for invalidation stuff (only InformError in chrome_invalidation_client.*) +gene for cloudprint stuff +rlarocque for everything ...
8 years, 6 months ago (2012-06-14 02:57:06 UTC) #1
gene
lgtm for cloudprint
8 years, 6 months ago (2012-06-14 06:14:41 UTC) #2
ghc
lgtm
8 years, 6 months ago (2012-06-14 17:47:32 UTC) #3
rlarocque
The code mostly looks good, though I still need to read through it in more ...
8 years, 6 months ago (2012-06-14 20:01:06 UTC) #4
akalin
Hmm, are you saying it would be better to have a bool for notificiations on/off, ...
8 years, 6 months ago (2012-06-15 03:54:14 UTC) #5
akalin
rlarocque: Addressed your comments, PTAL. gene: you may want to take another look, since I ...
8 years, 6 months ago (2012-06-16 01:06:55 UTC) #6
akalin
ping! On 2012/06/16 01:06:55, akalin wrote: > rlarocque: Addressed your comments, PTAL. > > gene: ...
8 years, 6 months ago (2012-06-18 17:36:32 UTC) #7
rlarocque
LGTM! I have one additional nit, but since it only affects the internals of one ...
8 years, 6 months ago (2012-06-18 18:14:14 UTC) #8
akalin
On 2012/06/18 18:14:14, rlarocque wrote: > LGTM! > > I have one additional nit, but ...
8 years, 6 months ago (2012-06-18 18:33:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10545170/19088
8 years, 6 months ago (2012-06-18 18:33:48 UTC) #10
commit-bot: I haz the power
8 years, 6 months ago (2012-06-18 20:50:31 UTC) #11
Change committed as 142806

Powered by Google App Engine
This is Rietveld 408576698