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

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

Issue 17894007: Update includes and delete remaining strings forwarding headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_win.h" 5 #include "chrome/browser/component_updater/component_patcher_win.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/process_util.h" 13 #include "base/process_util.h"
14 #include "base/string_util.h" 14 #include "base/strings/string_util.h"
15 #include "base/win/scoped_handle.h" 15 #include "base/win/scoped_handle.h"
16 #include "chrome/installer/util/util_constants.h" 16 #include "chrome/installer/util/util_constants.h"
17 17
18 namespace { 18 namespace {
19 19
20 std::string PatchTypeToCommandLineSwitch( 20 std::string PatchTypeToCommandLineSwitch(
21 ComponentPatcher::PatchType patch_type) { 21 ComponentPatcher::PatchType patch_type) {
22 if (patch_type == ComponentPatcher::kPatchTypeCourgette) 22 if (patch_type == ComponentPatcher::kPatchTypeCourgette)
23 return std::string(installer::kCourgette); 23 return std::string(installer::kCourgette);
24 else if (patch_type == ComponentPatcher::kPatchTypeBsdiff) 24 else if (patch_type == ComponentPatcher::kPatchTypeBsdiff)
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 !base::WaitForExitCode(ph, &exit_code)) { 103 !base::WaitForExitCode(ph, &exit_code)) {
104 *error = GetLastError(); 104 *error = GetLastError();
105 return ComponentUnpacker::kDeltaPatchProcessFailure; 105 return ComponentUnpacker::kDeltaPatchProcessFailure;
106 } 106 }
107 107
108 *error = exit_code; 108 *error = exit_code;
109 return *error ? ComponentUnpacker::kDeltaOperationFailure : 109 return *error ? ComponentUnpacker::kDeltaOperationFailure :
110 ComponentUnpacker::kNone; 110 ComponentUnpacker::kNone;
111 } 111 }
112 112
OLDNEW
« no previous file with comments | « base/stringprintf.h ('k') | chrome/browser/component_updater/test/component_updater_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698