Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: chrome/installer/util/work_item.cc

Issue 7976045: Fix in-use updates for Chrome Frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sanity check before dcommit Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/installer/util/work_item.h ('k') | chrome/installer/util/work_item_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_reg_key_work_item.h" 8 #include "chrome/installer/util/copy_reg_key_work_item.h"
9 #include "chrome/installer/util/copy_tree_work_item.h" 9 #include "chrome/installer/util/copy_tree_work_item.h"
10 #include "chrome/installer/util/create_dir_work_item.h" 10 #include "chrome/installer/util/create_dir_work_item.h"
11 #include "chrome/installer/util/create_reg_key_work_item.h" 11 #include "chrome/installer/util/create_reg_key_work_item.h"
12 #include "chrome/installer/util/delete_tree_work_item.h" 12 #include "chrome/installer/util/delete_tree_work_item.h"
13 #include "chrome/installer/util/delete_reg_key_work_item.h" 13 #include "chrome/installer/util/delete_reg_key_work_item.h"
14 #include "chrome/installer/util/delete_reg_value_work_item.h" 14 #include "chrome/installer/util/delete_reg_value_work_item.h"
15 #include "chrome/installer/util/move_tree_work_item.h" 15 #include "chrome/installer/util/move_tree_work_item.h"
16 #include "chrome/installer/util/self_reg_work_item.h" 16 #include "chrome/installer/util/self_reg_work_item.h"
17 #include "chrome/installer/util/set_reg_value_work_item.h" 17 #include "chrome/installer/util/set_reg_value_work_item.h"
18 #include "chrome/installer/util/work_item_list.h" 18 #include "chrome/installer/util/work_item_list.h"
19 19
20 WorkItem::WorkItem() : ignore_failure_(false) { 20 WorkItem::WorkItem() : ignore_failure_(false) {
21 } 21 }
22 22
23 WorkItem::~WorkItem() { 23 WorkItem::~WorkItem() {
24 } 24 }
25 25
26 CopyRegKeyWorkItem* WorkItem::CreateCopyRegKeyWorkItem( 26 CopyRegKeyWorkItem* WorkItem::CreateCopyRegKeyWorkItem(
27 HKEY predefined_root, 27 HKEY predefined_root,
28 const std::wstring& source_key_path, 28 const std::wstring& source_key_path,
29 const std::wstring& dest_key_path) { 29 const std::wstring& dest_key_path,
30 CopyOverWriteOption overwrite_option) {
30 return new CopyRegKeyWorkItem(predefined_root, source_key_path, 31 return new CopyRegKeyWorkItem(predefined_root, source_key_path,
31 dest_key_path); 32 dest_key_path, overwrite_option);
32 } 33 }
33 34
34 CopyTreeWorkItem* WorkItem::CreateCopyTreeWorkItem( 35 CopyTreeWorkItem* WorkItem::CreateCopyTreeWorkItem(
35 const FilePath& source_path, 36 const FilePath& source_path,
36 const FilePath& dest_path, 37 const FilePath& dest_path,
37 const FilePath& temp_dir, 38 const FilePath& temp_dir,
38 CopyOverWriteOption overwrite_option, 39 CopyOverWriteOption overwrite_option,
39 const FilePath& alternative_path) { 40 const FilePath& alternative_path) {
40 return new CopyTreeWorkItem(source_path, dest_path, temp_dir, 41 return new CopyTreeWorkItem(source_path, dest_path, temp_dir,
41 overwrite_option, alternative_path); 42 overwrite_option, alternative_path);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 122 }
122 123
123 // static 124 // static
124 WorkItemList* WorkItem::CreateNoRollbackWorkItemList() { 125 WorkItemList* WorkItem::CreateNoRollbackWorkItemList() {
125 return new NoRollbackWorkItemList(); 126 return new NoRollbackWorkItemList();
126 } 127 }
127 128
128 WorkItemList* WorkItem::CreateConditionalWorkItemList(Condition* condition) { 129 WorkItemList* WorkItem::CreateConditionalWorkItemList(Condition* condition) {
129 return new ConditionalWorkItemList(condition); 130 return new ConditionalWorkItemList(condition);
130 } 131 }
OLDNEW
« no previous file with comments | « chrome/installer/util/work_item.h ('k') | chrome/installer/util/work_item_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698