| 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.h" | 5 #include "chrome/installer/util/work_item.h" |
| 6 | 6 |
| 7 #include "chrome/installer/util/conditional_work_item_list.h" | 7 #include "chrome/installer/util/conditional_work_item_list.h" |
| 8 #include "chrome/installer/util/copy_tree_work_item.h" | 8 #include "chrome/installer/util/copy_tree_work_item.h" |
| 9 #include "chrome/installer/util/create_dir_work_item.h" | 9 #include "chrome/installer/util/create_dir_work_item.h" |
| 10 #include "chrome/installer/util/create_reg_key_work_item.h" | 10 #include "chrome/installer/util/create_reg_key_work_item.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 47 } |
| 48 | 48 |
| 49 DeleteRegValueWorkItem* WorkItem::CreateDeleteRegValueWorkItem( | 49 DeleteRegValueWorkItem* WorkItem::CreateDeleteRegValueWorkItem( |
| 50 HKEY predefined_root, | 50 HKEY predefined_root, |
| 51 const std::wstring& key_path, | 51 const std::wstring& key_path, |
| 52 const std::wstring& value_name) { | 52 const std::wstring& value_name) { |
| 53 return new DeleteRegValueWorkItem(predefined_root, key_path, value_name); | 53 return new DeleteRegValueWorkItem(predefined_root, key_path, value_name); |
| 54 } | 54 } |
| 55 | 55 |
| 56 DeleteTreeWorkItem* WorkItem::CreateDeleteTreeWorkItem( | 56 DeleteTreeWorkItem* WorkItem::CreateDeleteTreeWorkItem( |
| 57 const FilePath& root_path, const std::vector<FilePath>& key_paths) { | 57 const FilePath& root_path, |
| 58 return new DeleteTreeWorkItem(root_path, key_paths); | 58 const FilePath& temp_path, |
| 59 const std::vector<FilePath>& key_paths) { |
| 60 return new DeleteTreeWorkItem(root_path, temp_path, key_paths); |
| 59 } | 61 } |
| 60 | 62 |
| 61 MoveTreeWorkItem* WorkItem::CreateMoveTreeWorkItem( | 63 MoveTreeWorkItem* WorkItem::CreateMoveTreeWorkItem( |
| 62 const FilePath& source_path, | 64 const FilePath& source_path, |
| 63 const FilePath& dest_path, | 65 const FilePath& dest_path, |
| 64 const FilePath& temp_dir) { | 66 const FilePath& temp_dir) { |
| 65 return new MoveTreeWorkItem(source_path, dest_path, temp_dir); | 67 return new MoveTreeWorkItem(source_path, dest_path, temp_dir); |
| 66 } | 68 } |
| 67 | 69 |
| 68 SetRegValueWorkItem* WorkItem::CreateSetRegValueWorkItem( | 70 SetRegValueWorkItem* WorkItem::CreateSetRegValueWorkItem( |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 } | 108 } |
| 107 | 109 |
| 108 // static | 110 // static |
| 109 WorkItemList* WorkItem::CreateNoRollbackWorkItemList() { | 111 WorkItemList* WorkItem::CreateNoRollbackWorkItemList() { |
| 110 return new NoRollbackWorkItemList(); | 112 return new NoRollbackWorkItemList(); |
| 111 } | 113 } |
| 112 | 114 |
| 113 WorkItemList* WorkItem::CreateConditionalWorkItemList(Condition* condition) { | 115 WorkItemList* WorkItem::CreateConditionalWorkItemList(Condition* condition) { |
| 114 return new ConditionalWorkItemList(condition); | 116 return new ConditionalWorkItemList(condition); |
| 115 } | 117 } |
| OLD | NEW |