| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/delete_reg_value_work_item.h" | 5 #include "chrome/installer/util/delete_reg_value_work_item.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/registry.h" | 8 #include "base/win/registry.h" |
| 9 #include "chrome/installer/util/logging_installer.h" | 9 #include "chrome/installer/util/logging_installer.h" |
| 10 | 10 |
| 11 using base::win::RegKey; |
| 12 |
| 11 DeleteRegValueWorkItem::DeleteRegValueWorkItem(HKEY predefined_root, | 13 DeleteRegValueWorkItem::DeleteRegValueWorkItem(HKEY predefined_root, |
| 12 const std::wstring& key_path, | 14 const std::wstring& key_path, |
| 13 const std::wstring& value_name, | 15 const std::wstring& value_name, |
| 14 bool is_str_type) | 16 bool is_str_type) |
| 15 : predefined_root_(predefined_root), | 17 : predefined_root_(predefined_root), |
| 16 key_path_(key_path), | 18 key_path_(key_path), |
| 17 value_name_(value_name), | 19 value_name_(value_name), |
| 18 is_str_type_(is_str_type), | 20 is_str_type_(is_str_type), |
| 19 status_(DELETE_VALUE), | 21 status_(DELETE_VALUE), |
| 20 old_dw_(0) { | 22 old_dw_(0) { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 old_dw_))) { | 76 old_dw_))) { |
| 75 status_ = VALUE_ROLLED_BACK; | 77 status_ = VALUE_ROLLED_BACK; |
| 76 LOG(INFO) << "rollback: restored " << value_name_; | 78 LOG(INFO) << "rollback: restored " << value_name_; |
| 77 } else { | 79 } else { |
| 78 LOG(ERROR) << "failed to restore value " << value_name_; | 80 LOG(ERROR) << "failed to restore value " << value_name_; |
| 79 } | 81 } |
| 80 | 82 |
| 81 key.Close(); | 83 key.Close(); |
| 82 return; | 84 return; |
| 83 } | 85 } |
| OLD | NEW |