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/work_item_list.h" | 5 #include "chrome/installer/util/work_item_list.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "chrome/installer/util/callback_work_item.h" | 9 #include "chrome/installer/util/callback_work_item.h" |
10 #include "chrome/installer/util/copy_tree_work_item.h" | 10 #include "chrome/installer/util/copy_tree_work_item.h" |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 value_data, | 188 value_data, |
189 overwrite); | 189 overwrite); |
190 AddWorkItem(item); | 190 AddWorkItem(item); |
191 return item; | 191 return item; |
192 } | 192 } |
193 | 193 |
194 WorkItem* WorkItemList::AddSetRegValueWorkItem(HKEY predefined_root, | 194 WorkItem* WorkItemList::AddSetRegValueWorkItem(HKEY predefined_root, |
195 const std::wstring& key_path, | 195 const std::wstring& key_path, |
196 REGSAM wow64_access, | 196 REGSAM wow64_access, |
197 const std::wstring& value_name, | 197 const std::wstring& value_name, |
198 int64 value_data, | 198 int64_t value_data, |
199 bool overwrite) { | 199 bool overwrite) { |
200 WorkItem* item = reinterpret_cast<WorkItem*>( | 200 WorkItem* item = reinterpret_cast<WorkItem*>( |
201 WorkItem::CreateSetRegValueWorkItem(predefined_root, | 201 WorkItem::CreateSetRegValueWorkItem(predefined_root, |
202 key_path, | 202 key_path, |
203 wow64_access, | 203 wow64_access, |
204 value_name, | 204 value_name, |
205 value_data, | 205 value_data, |
206 overwrite)); | 206 overwrite)); |
207 AddWorkItem(item); | 207 AddWorkItem(item); |
208 return item; | 208 return item; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 if (result) | 256 if (result) |
257 VLOG(1) << "NoRollbackWorkItemList: list execution succeeded"; | 257 VLOG(1) << "NoRollbackWorkItemList: list execution succeeded"; |
258 | 258 |
259 status_ = LIST_EXECUTED; | 259 status_ = LIST_EXECUTED; |
260 return result; | 260 return result; |
261 } | 261 } |
262 | 262 |
263 void NoRollbackWorkItemList::Rollback() { | 263 void NoRollbackWorkItemList::Rollback() { |
264 // Ignore rollback. | 264 // Ignore rollback. |
265 } | 265 } |
OLD | NEW |