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

Unified Diff: sync/notifier/non_blocking_invalidator.cc

Issue 140513002: Client-to-server messages in GCMNetworkChannel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mac build error (for real) 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
« no previous file with comments | « sync/notifier/non_blocking_invalidator.h ('k') | sync/notifier/sync_system_resources.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/non_blocking_invalidator.cc
diff --git a/sync/notifier/non_blocking_invalidator.cc b/sync/notifier/non_blocking_invalidator.cc
index 5ec17586c4f324a96925dca378f1d90baa2c1366..1b90a97fa5250bc01b83e05f613361589543ad33 100644
--- a/sync/notifier/non_blocking_invalidator.cc
+++ b/sync/notifier/non_blocking_invalidator.cc
@@ -13,6 +13,7 @@
#include "base/thread_task_runner_handle.h"
#include "base/threading/thread.h"
#include "jingle/notifier/listener/push_client.h"
+#include "sync/notifier/gcm_network_channel_delegate.h"
#include "sync/notifier/invalidation_notifier.h"
#include "sync/notifier/object_id_invalidation_map.h"
#include "sync/notifier/sync_system_resources.h"
@@ -247,9 +248,12 @@ NetworkChannelCreator
notifier_options);
}
-NetworkChannelCreator
- NonBlockingInvalidator::MakeGCMNetworkChannelCreator() {
- return base::Bind(SyncNetworkChannel::CreateGCMNetworkChannel);
+NetworkChannelCreator NonBlockingInvalidator::MakeGCMNetworkChannelCreator(
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter,
+ scoped_ptr<GCMNetworkChannelDelegate> delegate) {
+ return base::Bind(&SyncNetworkChannel::CreateGCMNetworkChannel,
+ request_context_getter,
+ base::Passed(&delegate));
}
} // namespace syncer
« no previous file with comments | « sync/notifier/non_blocking_invalidator.h ('k') | sync/notifier/sync_system_resources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698