| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "chrome/service/service_process.h" | 5 #include "chrome/service/service_process.h" | 
| 6 | 6 | 
| 7 #include <algorithm> | 7 #include <algorithm> | 
| 8 | 8 | 
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" | 
| 10 #include "base/callback.h" | 10 #include "base/callback.h" | 
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 52 const int64 kPolicyCheckDelayHours = 8; | 52 const int64 kPolicyCheckDelayHours = 8; | 
| 53 | 53 | 
| 54 const char kDefaultServiceProcessLocale[] = "en-US"; | 54 const char kDefaultServiceProcessLocale[] = "en-US"; | 
| 55 | 55 | 
| 56 class ServiceIOThread : public base::Thread { | 56 class ServiceIOThread : public base::Thread { | 
| 57  public: | 57  public: | 
| 58   explicit ServiceIOThread(const char* name); | 58   explicit ServiceIOThread(const char* name); | 
| 59   virtual ~ServiceIOThread(); | 59   virtual ~ServiceIOThread(); | 
| 60 | 60 | 
| 61  protected: | 61  protected: | 
| 62   virtual void CleanUp() OVERRIDE; | 62   virtual void CleanUp() override; | 
| 63 | 63 | 
| 64  private: | 64  private: | 
| 65   DISALLOW_COPY_AND_ASSIGN(ServiceIOThread); | 65   DISALLOW_COPY_AND_ASSIGN(ServiceIOThread); | 
| 66 }; | 66 }; | 
| 67 | 67 | 
| 68 ServiceIOThread::ServiceIOThread(const char* name) : base::Thread(name) {} | 68 ServiceIOThread::ServiceIOThread(const char* name) : base::Thread(name) {} | 
| 69 ServiceIOThread::~ServiceIOThread() { | 69 ServiceIOThread::~ServiceIOThread() { | 
| 70   Stop(); | 70   Stop(); | 
| 71 } | 71 } | 
| 72 | 72 | 
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 364   if (enabled_services_ && !ipc_server_->is_client_connected()) { | 364   if (enabled_services_ && !ipc_server_->is_client_connected()) { | 
| 365     GetCloudPrintProxy()->CheckCloudPrintProxyPolicy(); | 365     GetCloudPrintProxy()->CheckCloudPrintProxyPolicy(); | 
| 366   } | 366   } | 
| 367   ScheduleCloudPrintPolicyCheck(); | 367   ScheduleCloudPrintPolicyCheck(); | 
| 368 } | 368 } | 
| 369 | 369 | 
| 370 ServiceProcess::~ServiceProcess() { | 370 ServiceProcess::~ServiceProcess() { | 
| 371   Teardown(); | 371   Teardown(); | 
| 372   g_service_process = NULL; | 372   g_service_process = NULL; | 
| 373 } | 373 } | 
| OLD | NEW | 
|---|