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

Unified Diff: jingle/notifier/listener/push_client.cc

Issue 10436013: [Sync] Make InvalidationNotifier use PushClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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: jingle/notifier/listener/push_client.cc
diff --git a/jingle/notifier/listener/push_client.cc b/jingle/notifier/listener/push_client.cc
index d70426451e566121d64103e5e76306e4183acd9a..f96e8f8b787ad41133b440de2b346a702b317535 100644
--- a/jingle/notifier/listener/push_client.cc
+++ b/jingle/notifier/listener/push_client.cc
@@ -31,4 +31,11 @@ scoped_ptr<PushClient> PushClient::CreateDefault(
base::Bind(&CreateXmppPushClient, notifier_options)));
}
+scoped_ptr<PushClient> PushClient::CreateDefaultOnIOThread(
+ const NotifierOptions& notifier_options) {
+ CHECK(notifier_options.request_context_getter->GetIOMessageLoopProxy()->
+ BelongsToCurrentThread());
+ return CreateXmppPushClient(notifier_options);
+}
+
} // namespace notifier

Powered by Google App Engine
This is Rietveld 408576698