Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: chrome/service/service_process.cc

Issue 12226045: Linux/ChromeOS Chromium style checker cleanup, chrome/ edition part 1. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const int64 kPolicyCheckDelayHours = 8; 53 const int64 kPolicyCheckDelayHours = 8;
54 54
55 const char kDefaultServiceProcessLocale[] = "en-US"; 55 const char kDefaultServiceProcessLocale[] = "en-US";
56 56
57 class ServiceIOThread : public base::Thread { 57 class ServiceIOThread : public base::Thread {
58 public: 58 public:
59 explicit ServiceIOThread(const char* name); 59 explicit ServiceIOThread(const char* name);
60 virtual ~ServiceIOThread(); 60 virtual ~ServiceIOThread();
61 61
62 protected: 62 protected:
63 virtual void CleanUp(); 63 virtual void CleanUp() OVERRIDE;
64 64
65 private: 65 private:
66 DISALLOW_COPY_AND_ASSIGN(ServiceIOThread); 66 DISALLOW_COPY_AND_ASSIGN(ServiceIOThread);
67 }; 67 };
68 68
69 ServiceIOThread::ServiceIOThread(const char* name) : base::Thread(name) {} 69 ServiceIOThread::ServiceIOThread(const char* name) : base::Thread(name) {}
70 ServiceIOThread::~ServiceIOThread() { 70 ServiceIOThread::~ServiceIOThread() {
71 Stop(); 71 Stop();
72 } 72 }
73 73
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 if (enabled_services_ && !ipc_server_->is_client_connected()) { 365 if (enabled_services_ && !ipc_server_->is_client_connected()) {
366 GetCloudPrintProxy()->CheckCloudPrintProxyPolicy(); 366 GetCloudPrintProxy()->CheckCloudPrintProxyPolicy();
367 } 367 }
368 ScheduleCloudPrintPolicyCheck(); 368 ScheduleCloudPrintPolicyCheck();
369 } 369 }
370 370
371 ServiceProcess::~ServiceProcess() { 371 ServiceProcess::~ServiceProcess() {
372 Teardown(); 372 Teardown();
373 g_service_process = NULL; 373 g_service_process = NULL;
374 } 374 }
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/print_system_cups.cc ('k') | chrome/test/base/chrome_process_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698