| 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/set_reg_value_work_item.h" | 5 #include "chrome/installer/util/set_reg_value_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/win/registry.h" | 9 #include "base/win/registry.h" |
| 10 #include "chrome/installer/util/logging_installer.h" | 10 #include "chrome/installer/util/logging_installer.h" |
| 11 | 11 |
| 12 SetRegValueWorkItem::~SetRegValueWorkItem() { | 12 SetRegValueWorkItem::~SetRegValueWorkItem() { |
| 13 } | 13 } |
| 14 | 14 |
| 15 SetRegValueWorkItem::SetRegValueWorkItem(HKEY predefined_root, | 15 SetRegValueWorkItem::SetRegValueWorkItem(HKEY predefined_root, |
| 16 const std::wstring& key_path, | 16 const std::wstring& key_path, |
| 17 const std::wstring& value_name, | 17 const std::wstring& value_name, |
| 18 const std::wstring& value_data, | 18 const std::wstring& value_data, |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 result = key.WriteValue(value_name_.c_str(), previous_value, | 142 result = key.WriteValue(value_name_.c_str(), previous_value, |
| 143 static_cast<DWORD>(previous_value_.size()), | 143 static_cast<DWORD>(previous_value_.size()), |
| 144 previous_type_); | 144 previous_type_); |
| 145 VLOG(1) << "rollback: restoring " << value_name_ << " error: " << result; | 145 VLOG(1) << "rollback: restoring " << value_name_ << " error: " << result; |
| 146 } else { | 146 } else { |
| 147 NOTREACHED(); | 147 NOTREACHED(); |
| 148 } | 148 } |
| 149 | 149 |
| 150 status_ = VALUE_ROLL_BACK; | 150 status_ = VALUE_ROLL_BACK; |
| 151 } | 151 } |
| OLD | NEW |