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

Side by Side Diff: courgette/courgette_minimal_tool.cc

Issue 14820034: Cleanup: Remove unneeded base/file_util.h includes in chrome_frame, courgette, ipc, media, and net. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: fix build Created 7 years, 7 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 | « courgette/base_test_unittest.cc ('k') | courgette/disassembler_win32_x86_unittest.cc » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // 'courgette_minimal_tool' is not meant to be a serious command-line tool. It 5 // 'courgette_minimal_tool' is not meant to be a serious command-line tool. It
6 // has the minimum logic to apply a Courgette patch to a file. The main purpose 6 // has the minimum logic to apply a Courgette patch to a file. The main purpose
7 // is to monitor the code size of the patcher. 7 // is to monitor the code size of the patcher.
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/file_util.h"
12
13 #include "courgette/third_party/bsdiff.h" 11 #include "courgette/third_party/bsdiff.h"
14 #include "courgette/courgette.h" 12 #include "courgette/courgette.h"
15 #include "courgette/streams.h" 13 #include "courgette/streams.h"
16 14
17 void PrintHelp() { 15 void PrintHelp() {
18 fprintf(stderr, 16 fprintf(stderr,
19 "Usage:\n" 17 "Usage:\n"
20 " courgette_minimal_tool <old-file-input> <patch-file-input>" 18 " courgette_minimal_tool <old-file-input> <patch-file-input>"
21 " <new-file-output>\n" 19 " <new-file-output>\n"
22 "\n"); 20 "\n");
(...skipping 24 matching lines...) Expand all
47 if (status != courgette::C_OK) { 45 if (status != courgette::C_OK) {
48 if (status == courgette::C_READ_OPEN_ERROR) Problem("Can't open file."); 46 if (status == courgette::C_READ_OPEN_ERROR) Problem("Can't open file.");
49 if (status == courgette::C_WRITE_OPEN_ERROR) Problem("Can't open file."); 47 if (status == courgette::C_WRITE_OPEN_ERROR) Problem("Can't open file.");
50 if (status == courgette::C_READ_ERROR) Problem("Can't read from file."); 48 if (status == courgette::C_READ_ERROR) Problem("Can't read from file.");
51 if (status == courgette::C_WRITE_ERROR) Problem("Can't write to file."); 49 if (status == courgette::C_WRITE_ERROR) Problem("Can't write to file.");
52 Problem("patch failed."); 50 Problem("patch failed.");
53 } 51 }
54 52
55 return 0; 53 return 0;
56 } 54 }
OLDNEW
« no previous file with comments | « courgette/base_test_unittest.cc ('k') | courgette/disassembler_win32_x86_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698