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

Side by Side Diff: chrome/browser/component_updater/component_patcher_operation.cc

Issue 18332014: Move Copy* into the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: windows Created 7 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/component_updater/component_patcher_operation.h" 5 #include "chrome/browser/component_updater/component_patcher_operation.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 if (!installer->GetInstalledFile(input_rel_path, &input_abs_path_)) 119 if (!installer->GetInstalledFile(input_rel_path, &input_abs_path_))
120 return ComponentUnpacker::kDeltaMissingExistingFile; 120 return ComponentUnpacker::kDeltaMissingExistingFile;
121 121
122 return ComponentUnpacker::kNone; 122 return ComponentUnpacker::kNone;
123 } 123 }
124 124
125 ComponentUnpacker::Error DeltaUpdateOpCopy::DoRun(ComponentPatcher*, 125 ComponentUnpacker::Error DeltaUpdateOpCopy::DoRun(ComponentPatcher*,
126 int* error) { 126 int* error) {
127 *error = 0; 127 *error = 0;
128 if (!file_util::CopyFile(input_abs_path_, output_abs_path_)) 128 if (!base::CopyFile(input_abs_path_, output_abs_path_))
129 return ComponentUnpacker::kDeltaOperationFailure; 129 return ComponentUnpacker::kDeltaOperationFailure;
130 130
131 return ComponentUnpacker::kNone; 131 return ComponentUnpacker::kNone;
132 } 132 }
133 133
134 DeltaUpdateOpCreate::DeltaUpdateOpCreate() {} 134 DeltaUpdateOpCreate::DeltaUpdateOpCreate() {}
135 135
136 ComponentUnpacker::Error DeltaUpdateOpCreate::DoParseArguments( 136 ComponentUnpacker::Error DeltaUpdateOpCreate::DoParseArguments(
137 base::DictionaryValue* command_args, 137 base::DictionaryValue* command_args,
138 const base::FilePath& input_dir, 138 const base::FilePath& input_dir,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 ComponentPatcher* patcher, 213 ComponentPatcher* patcher,
214 int* error) { 214 int* error) {
215 *error = 0; 215 *error = 0;
216 return patcher->Patch(ComponentPatcher::kPatchTypeCourgette, 216 return patcher->Patch(ComponentPatcher::kPatchTypeCourgette,
217 input_abs_path_, 217 input_abs_path_,
218 patch_abs_path_, 218 patch_abs_path_,
219 output_abs_path_, 219 output_abs_path_,
220 error); 220 error);
221 } 221 }
222 222
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698