OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/service_process_util.h" | 5 #include "chrome/common/service_process_util.h" |
6 | 6 |
7 #include <algorithm> | |
8 #include <memory> | 7 #include <memory> |
9 | 8 |
10 #include "base/callback.h" | 9 #include "base/callback.h" |
11 #include "base/command_line.h" | 10 #include "base/command_line.h" |
12 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
13 #include "base/logging.h" | 12 #include "base/logging.h" |
14 #include "base/path_service.h" | 13 #include "base/path_service.h" |
15 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
16 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
17 #include "base/win/object_watcher.h" | 16 #include "base/win/object_watcher.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 HKEY_CURRENT_USER, | 168 HKEY_CURRENT_USER, |
170 base::UTF8ToWide(GetObsoleteServiceProcessAutoRunKey())); | 169 base::UTF8ToWide(GetObsoleteServiceProcessAutoRunKey())); |
171 return base::win::RemoveCommandFromAutoRun( | 170 return base::win::RemoveCommandFromAutoRun( |
172 HKEY_CURRENT_USER, base::UTF8ToWide(GetServiceProcessAutoRunKey())); | 171 HKEY_CURRENT_USER, base::UTF8ToWide(GetServiceProcessAutoRunKey())); |
173 } | 172 } |
174 | 173 |
175 void ServiceProcessState::TearDownState() { | 174 void ServiceProcessState::TearDownState() { |
176 delete state_; | 175 delete state_; |
177 state_ = NULL; | 176 state_ = NULL; |
178 } | 177 } |
OLD | NEW |