diff options
author | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-07 22:27:43 +0000 |
---|---|---|
committer | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-07 22:27:43 +0000 |
commit | 942e202a50d64e0f21ebd872edcbfd857a320040 (patch) | |
tree | 36fa0759981ec2f4b1cba99bdb8b6b3d2e26627e /chrome/browser/sync/notifier/sync_notifier_factory.cc | |
parent | 316d6c6b8c65f182af6f04bc68fbcd281cd43b28 (diff) | |
download | chromium_src-942e202a50d64e0f21ebd872edcbfd857a320040.zip chromium_src-942e202a50d64e0f21ebd872edcbfd857a320040.tar.gz chromium_src-942e202a50d64e0f21ebd872edcbfd857a320040.tar.bz2 |
Changed jingle to use the IO thread from the passed in URLRequestContextGetter for doing its I/O rather than creating its own worker thread.
BUG=None
TEST=Unit-tests, Cloud print notifications, sync notifications.
Review URL: http://codereview.chromium.org/6793047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80853 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/notifier/sync_notifier_factory.cc')
-rw-r--r-- | chrome/browser/sync/notifier/sync_notifier_factory.cc | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/chrome/browser/sync/notifier/sync_notifier_factory.cc b/chrome/browser/sync/notifier/sync_notifier_factory.cc index 204faeb..1a1a531 100644 --- a/chrome/browser/sync/notifier/sync_notifier_factory.cc +++ b/chrome/browser/sync/notifier/sync_notifier_factory.cc @@ -42,11 +42,14 @@ net::HostPortPair StringToHostPortPair(const std::string& host_port_str, return net::HostPortPair(host, port); } -SyncNotifier* CreateDefaultSyncNotifier(const CommandLine& command_line, - const std::string& client_info) { +SyncNotifier* CreateDefaultSyncNotifier( + const CommandLine& command_line, + const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, + const std::string& client_info) { // Contains options specific to how sync clients send and listen to // jingle notifications. notifier::NotifierOptions notifier_options; + notifier_options.request_context_getter = request_context_getter; // Override the notification server host from the command-line, if provided. if (command_line.HasSwitch(switches::kSyncNotificationHost)) { @@ -99,7 +102,10 @@ SyncNotifierFactory::~SyncNotifierFactory() { } SyncNotifier* SyncNotifierFactory::CreateSyncNotifier( - const CommandLine& command_line) { - return CreateDefaultSyncNotifier(command_line, client_info_); + const CommandLine& command_line, + const scoped_refptr<net::URLRequestContextGetter>& request_context_getter) { + return CreateDefaultSyncNotifier(command_line, + request_context_getter, + client_info_); } } // namespace sync_notifier |