summaryrefslogtreecommitdiffstats
path: root/chrome/service/cloud_print
diff options
context:
space:
mode:
authorsanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-21 03:25:25 +0000
committersanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-21 03:25:25 +0000
commitb770105f7e97a6ccb3e012f2cc87bea9a5edff3b (patch)
tree5adb9d8c9514cf96852c9664470d114aff02c461 /chrome/service/cloud_print
parentba1161fab422b5a0d35c715c6082e1a4c412e44d (diff)
downloadchromium_src-b770105f7e97a6ccb3e012f2cc87bea9a5edff3b.zip
chromium_src-b770105f7e97a6ccb3e012f2cc87bea9a5edff3b.tar.gz
chromium_src-b770105f7e97a6ccb3e012f2cc87bea9a5edff3b.tar.bz2
Added an implementation of the NetworkChangeNotifierThread interface for the service process and used it.
BUG=None. TEST=Unit-test provided. Also test cloud print proxy. Review URL: http://codereview.chromium.org/2086020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47881 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/cloud_print')
-rw-r--r--chrome/service/cloud_print/cloud_print_proxy_backend.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/service/cloud_print/cloud_print_proxy_backend.cc b/chrome/service/cloud_print/cloud_print_proxy_backend.cc
index 4b0616c..eff9bcf 100644
--- a/chrome/service/cloud_print/cloud_print_proxy_backend.cc
+++ b/chrome/service/cloud_print/cloud_print_proxy_backend.cc
@@ -15,6 +15,7 @@
#include "chrome/common/deprecated/event_sys-inl.h"
#include "chrome/common/net/notifier/listener/talk_mediator_impl.h"
#include "chrome/service/gaia/service_gaia_authenticator.h"
+#include "chrome/service/net/service_network_change_notifier_thread.h"
#include "chrome/service/service_process.h"
#include "googleurl/src/gurl.h"
@@ -230,8 +231,8 @@ void CloudPrintProxyBackend::Core::DoInitialize(const std::string& lsid,
gaia_auth_for_print->set_message_loop(MessageLoop::current());
if (gaia_auth_for_print->AuthenticateWithLsid(lsid, true)) {
auth_token_ = gaia_auth_for_print->auth_token();
- talk_mediator_.reset(
- new notifier::TalkMediatorImpl(false));
+ talk_mediator_.reset(new notifier::TalkMediatorImpl(
+ g_service_process->network_change_notifier_thread(), false));
talk_mediator_->AddSubscribedServiceUrl(kCloudPrintTalkServiceUrl);
talk_mediator_hookup_.reset(
NewEventListenerHookup(