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

Side by Side Diff: courgette/courgette_tool.cc

Issue 6100007: Revert 70782 - Made logging not look up --enable-dcheck from command line... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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) 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 #include <vector> 5 #include <vector>
6 #include <string> 6 #include <string>
7 7
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 if (status != courgette::OK) Problem("-applybsdiff failed."); 339 if (status != courgette::OK) Problem("-applybsdiff failed.");
340 340
341 WriteSinkToFile(&new_stream, new_file); 341 WriteSinkToFile(&new_stream, new_file);
342 } 342 }
343 343
344 int main(int argc, const char* argv[]) { 344 int main(int argc, const char* argv[]) {
345 base::AtExitManager at_exit_manager; 345 base::AtExitManager at_exit_manager;
346 CommandLine::Init(argc, argv); 346 CommandLine::Init(argc, argv);
347 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 347 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
348 348
349 (void)logging::InitLogging( 349 (void)logging::InitLogging(FILE_PATH_LITERAL("courgette.log"),
350 FILE_PATH_LITERAL("courgette.log"), 350 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG,
351 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, 351 logging::LOCK_LOG_FILE,
352 logging::LOCK_LOG_FILE, 352 logging::APPEND_TO_OLD_LOG_FILE);
353 logging::APPEND_TO_OLD_LOG_FILE,
354 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
355 logging::SetMinLogLevel(logging::LOG_VERBOSE); 353 logging::SetMinLogLevel(logging::LOG_VERBOSE);
356 354
357 bool cmd_dis = command_line.HasSwitch("dis"); 355 bool cmd_dis = command_line.HasSwitch("dis");
358 bool cmd_asm = command_line.HasSwitch("asm"); 356 bool cmd_asm = command_line.HasSwitch("asm");
359 bool cmd_disadj = command_line.HasSwitch("disadj"); 357 bool cmd_disadj = command_line.HasSwitch("disadj");
360 bool cmd_make_patch = command_line.HasSwitch("gen"); 358 bool cmd_make_patch = command_line.HasSwitch("gen");
361 bool cmd_apply_patch = command_line.HasSwitch("apply"); 359 bool cmd_apply_patch = command_line.HasSwitch("apply");
362 bool cmd_make_bsdiff_patch = command_line.HasSwitch("genbsdiff"); 360 bool cmd_make_bsdiff_patch = command_line.HasSwitch("genbsdiff");
363 bool cmd_apply_bsdiff_patch = command_line.HasSwitch("applybsdiff"); 361 bool cmd_apply_bsdiff_patch = command_line.HasSwitch("applybsdiff");
364 bool cmd_spread_1_adjusted = command_line.HasSwitch("gen1a"); 362 bool cmd_spread_1_adjusted = command_line.HasSwitch("gen1a");
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 } else if (cmd_spread_1_adjusted || cmd_spread_1_unadjusted) { 420 } else if (cmd_spread_1_adjusted || cmd_spread_1_unadjusted) {
423 if (values.size() != 3) 421 if (values.size() != 3)
424 UsageProblem("-gen1[au] <old_file> <new_file> <patch_files_root>"); 422 UsageProblem("-gen1[au] <old_file> <new_file> <patch_files_root>");
425 DisassembleAdjustDiff(values[0], values[1], values[2], 423 DisassembleAdjustDiff(values[0], values[1], values[2],
426 cmd_spread_1_adjusted); 424 cmd_spread_1_adjusted);
427 } else { 425 } else {
428 UsageProblem("No operation specified"); 426 UsageProblem("No operation specified");
429 } 427 }
430 } 428 }
431 } 429 }
OLDNEW
« no previous file with comments | « chrome_frame/test/net/fake_external_tab.cc ('k') | net/tools/flip_server/flip_in_mem_edsm_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698