diff options
author | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-21 03:25:25 +0000 |
---|---|---|
committer | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-21 03:25:25 +0000 |
commit | b770105f7e97a6ccb3e012f2cc87bea9a5edff3b (patch) | |
tree | 5adb9d8c9514cf96852c9664470d114aff02c461 /chrome/service/service_process.cc | |
parent | ba1161fab422b5a0d35c715c6082e1a4c412e44d (diff) | |
download | chromium_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/service_process.cc')
-rw-r--r-- | chrome/service/service_process.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/service/service_process.cc b/chrome/service/service_process.cc index 41bfe8d..9a39e5e 100644 --- a/chrome/service/service_process.cc +++ b/chrome/service/service_process.cc @@ -5,6 +5,7 @@ #include "chrome/service/service_process.h" #include "chrome/service/cloud_print/cloud_print_proxy.h" +#include "chrome/service/net/service_network_change_notifier_thread.h" ServiceProcess* g_service_process = NULL; @@ -24,10 +25,14 @@ bool ServiceProcess::Initialize() { Teardown(); return false; } + network_change_notifier_thread_ = + new ServiceNetworkChangeNotifierThread(io_thread_->message_loop()); + network_change_notifier_thread_->Initialize(); return true; } bool ServiceProcess::Teardown() { + network_change_notifier_thread_ = NULL; io_thread_.reset(); file_thread_.reset(); return true; |