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

Unified Diff: chrome/browser/sync/notifier/chrome_invalidation_client.cc

Issue 7313018: [Sync] Have ChromeInvalidationClient call OnSessionStatus on its delegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/notifier/chrome_invalidation_client.cc
diff --git a/chrome/browser/sync/notifier/chrome_invalidation_client.cc b/chrome/browser/sync/notifier/chrome_invalidation_client.cc
index 463265adb2149ec70d64c51e2c8b2361883bc577..88f172df7c1eeb2895e402e71fa7ceab577ba4fd 100644
--- a/chrome/browser/sync/notifier/chrome_invalidation_client.cc
+++ b/chrome/browser/sync/notifier/chrome_invalidation_client.cc
@@ -118,6 +118,7 @@ void ChromeInvalidationClient::RegisterTypes(
void ChromeInvalidationClient::Ready(
invalidation::InvalidationClient* client) {
ticl_ready_ = true;
+ listener_->OnSessionStatusChanged(true);
Nicolas Zea 2011/07/07 00:48:01 nit: style guide prefers an enum instead of bool f
registration_manager_->SetRegisteredTypes(registered_types_);
}
@@ -270,6 +271,8 @@ void ChromeInvalidationClient::ReissueRegistrations(
void ChromeInvalidationClient::InformError(
invalidation::InvalidationClient* client,
const invalidation::ErrorInfo& error_info) {
+ listener_->OnSessionStatusChanged(false);
+ LOG(ERROR) << "Invalidation client encountered an error";
// TODO(ghc): handle the error.
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698