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

Unified Diff: sync/tools/sync_listen_notifications.cc

Issue 116533006: Control invalidations network channel from TiclInvalidationService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years 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
« sync/sync_tests.gypi ('K') | « sync/tools/sync_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/tools/sync_listen_notifications.cc
diff --git a/sync/tools/sync_listen_notifications.cc b/sync/tools/sync_listen_notifications.cc
index 5d212f3b8e201d428aed1232e157e988d90ceaa0..12d089b5dee356881da5147603fd50ee3ce2ddee 100644
--- a/sync/tools/sync_listen_notifications.cc
+++ b/sync/tools/sync_listen_notifications.cc
@@ -177,17 +177,21 @@ int SyncListenNotificationsMain(int argc, char* argv[]) {
ParseNotifierOptions(
command_line,
new MyTestURLRequestContextGetter(io_thread.message_loop_proxy()));
+ syncer::NetworkChannelCreator network_channel_creator =
+ syncer::NonBlockingInvalidator::MakePushClientChannelCreator(
+ notifier_options);
const char kClientInfo[] = "sync_listen_notifications";
NullInvalidationStateTracker null_invalidation_state_tracker;
scoped_ptr<Invalidator> invalidator(
new NonBlockingInvalidator(
- notifier_options,
+ network_channel_creator,
base::RandBytesAsString(8),
null_invalidation_state_tracker.GetSavedInvalidations(),
null_invalidation_state_tracker.GetBootstrapData(),
WeakHandle<InvalidationStateTracker>(
null_invalidation_state_tracker.AsWeakPtr()),
- kClientInfo));
+ kClientInfo,
+ notifier_options.request_context_getter));
NotificationPrinter notification_printer;
« sync/sync_tests.gypi ('K') | « sync/tools/sync_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698