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/service/cloud_print | |
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/service/cloud_print')
-rw-r--r-- | chrome/service/cloud_print/cloud_print_proxy_backend.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/service/cloud_print/cloud_print_proxy_backend.cc b/chrome/service/cloud_print/cloud_print_proxy_backend.cc index 170976c..3f18c6f 100644 --- a/chrome/service/cloud_print/cloud_print_proxy_backend.cc +++ b/chrome/service/cloud_print/cloud_print_proxy_backend.cc @@ -20,6 +20,7 @@ #include "chrome/service/cloud_print/cloud_print_url_fetcher.h" #include "chrome/service/cloud_print/printer_job_handler.h" #include "chrome/service/gaia/service_gaia_authenticator.h" +#include "chrome/service/net/service_url_request_context.h" #include "chrome/service/service_process.h" #include "googleurl/src/gurl.h" #include "grit/generated_resources.h" @@ -371,10 +372,12 @@ void CloudPrintProxyBackend::Core::DoInitializeWithToken( auth_token_ = cloud_print_token; if (result.succeeded()) { - const notifier::NotifierOptions kNotifierOptions; + notifier::NotifierOptions notifier_options; + notifier_options.request_context_getter = + g_service_process->GetServiceURLRequestContextGetter(); talk_mediator_.reset(new notifier::TalkMediatorImpl( - new notifier::MediatorThreadImpl(kNotifierOptions), - kNotifierOptions)); + new notifier::MediatorThreadImpl(notifier_options), + notifier_options)); notifier::Subscription subscription; subscription.channel = kCloudPrintPushNotificationsSource; subscription.channel.append("/proxy/"); |