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

Unified Diff: sync/notifier/push_client_channel.cc

Issue 140513002: Client-to-server messages in GCMNetworkChannel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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
Index: sync/notifier/push_client_channel.cc
diff --git a/sync/notifier/push_client_channel.cc b/sync/notifier/push_client_channel.cc
index c54b1ba456fb4e946859064bd4bfd90455ea2f00..d7efda44d6c6eddfe3f200191f54b992e23be439 100644
--- a/sync/notifier/push_client_channel.cc
+++ b/sync/notifier/push_client_channel.cc
@@ -48,12 +48,12 @@ void PushClientChannel::SendEncodedMessage(const std::string& encoded_message) {
}
void PushClientChannel::OnNotificationsEnabled() {
- NotifyStateChange(INVALIDATIONS_ENABLED);
+ SetNetworkState(INVALIDATIONS_ENABLED);
}
void PushClientChannel::OnNotificationsDisabled(
notifier::NotificationsDisabledReason reason) {
- NotifyStateChange(FromNotifierReason(reason));
+ SetNetworkState(FromNotifierReason(reason));
}
void PushClientChannel::OnIncomingNotification(

Powered by Google App Engine
This is Rietveld 408576698