| 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/installer/util/self_reg_work_item.h" | 5 #include "chrome/installer/util/self_reg_work_item.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "base/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "chrome/installer/util/logging_installer.h" | 10 #include "chrome/installer/util/logging_installer.h" |
| 11 | 11 |
| 12 // Default registration export names. | 12 // Default registration export names. |
| 13 const char kDefaultRegistrationEntryPoint[] = "DllRegisterServer"; | 13 const char kDefaultRegistrationEntryPoint[] = "DllRegisterServer"; |
| 14 const char kDefaultUnregistrationEntryPoint[] = "DllUnregisterServer"; | 14 const char kDefaultUnregistrationEntryPoint[] = "DllUnregisterServer"; |
| 15 | 15 |
| 16 // User-level registration export names. | 16 // User-level registration export names. |
| 17 const char kUserRegistrationEntryPoint[] = "DllRegisterUserServer"; | 17 const char kUserRegistrationEntryPoint[] = "DllRegisterUserServer"; |
| 18 const char kUserUnregistrationEntryPoint[] = "DllUnregisterUserServer"; | 18 const char kUserUnregistrationEntryPoint[] = "DllUnregisterUserServer"; |
| 19 | 19 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 if (ignore_failure_) | 94 if (ignore_failure_) |
| 95 success = true; | 95 success = true; |
| 96 return success; | 96 return success; |
| 97 } | 97 } |
| 98 | 98 |
| 99 void SelfRegWorkItem::Rollback() { | 99 void SelfRegWorkItem::Rollback() { |
| 100 if (!ignore_failure_) { | 100 if (!ignore_failure_) { |
| 101 RegisterDll(!do_register_); | 101 RegisterDll(!do_register_); |
| 102 } | 102 } |
| 103 } | 103 } |
| OLD | NEW |