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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 } | 42 } |
43 | 43 |
44 DeleteRegKeyWorkItem* WorkItem::CreateDeleteRegKeyWorkItem( | 44 DeleteRegKeyWorkItem* WorkItem::CreateDeleteRegKeyWorkItem( |
45 HKEY predefined_root, const std::wstring& path) { | 45 HKEY predefined_root, const std::wstring& path) { |
46 return new DeleteRegKeyWorkItem(predefined_root, path); | 46 return new DeleteRegKeyWorkItem(predefined_root, path); |
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 DWORD type) { | 53 return new DeleteRegValueWorkItem(predefined_root, key_path, value_name); |
54 return new DeleteRegValueWorkItem(predefined_root, key_path, | |
55 value_name, type); | |
56 } | 54 } |
57 | 55 |
58 DeleteTreeWorkItem* WorkItem::CreateDeleteTreeWorkItem( | 56 DeleteTreeWorkItem* WorkItem::CreateDeleteTreeWorkItem( |
59 const FilePath& root_path, const std::vector<FilePath>& key_paths) { | 57 const FilePath& root_path, const std::vector<FilePath>& key_paths) { |
60 return new DeleteTreeWorkItem(root_path, key_paths); | 58 return new DeleteTreeWorkItem(root_path, key_paths); |
61 } | 59 } |
62 | 60 |
63 MoveTreeWorkItem* WorkItem::CreateMoveTreeWorkItem( | 61 MoveTreeWorkItem* WorkItem::CreateMoveTreeWorkItem( |
64 const std::wstring& source_path, | 62 const std::wstring& source_path, |
65 const std::wstring& dest_path, | 63 const std::wstring& dest_path, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 106 } |
109 | 107 |
110 // static | 108 // static |
111 WorkItemList* WorkItem::CreateNoRollbackWorkItemList() { | 109 WorkItemList* WorkItem::CreateNoRollbackWorkItemList() { |
112 return new NoRollbackWorkItemList(); | 110 return new NoRollbackWorkItemList(); |
113 } | 111 } |
114 | 112 |
115 WorkItemList* WorkItem::CreateConditionalWorkItemList(Condition* condition) { | 113 WorkItemList* WorkItem::CreateConditionalWorkItemList(Condition* condition) { |
116 return new ConditionalWorkItemList(condition); | 114 return new ConditionalWorkItemList(condition); |
117 } | 115 } |
OLD | NEW |