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

Side by Side Diff: courgette/courgette_tool.cc

Issue 6070006: Made logging not look up --enable-dcheck from command line (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed more compile failures 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(FILE_PATH_LITERAL("courgette.log"), 349 (void)logging::InitLogging(
350 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, 350 FILE_PATH_LITERAL("courgette.log"),
351 logging::LOCK_LOG_FILE, 351 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG,
352 logging::APPEND_TO_OLD_LOG_FILE); 352 logging::LOCK_LOG_FILE,
353 logging::APPEND_TO_OLD_LOG_FILE,
354 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
353 logging::SetMinLogLevel(logging::LOG_VERBOSE); 355 logging::SetMinLogLevel(logging::LOG_VERBOSE);
354 356
355 bool cmd_dis = command_line.HasSwitch("dis"); 357 bool cmd_dis = command_line.HasSwitch("dis");
356 bool cmd_asm = command_line.HasSwitch("asm"); 358 bool cmd_asm = command_line.HasSwitch("asm");
357 bool cmd_disadj = command_line.HasSwitch("disadj"); 359 bool cmd_disadj = command_line.HasSwitch("disadj");
358 bool cmd_make_patch = command_line.HasSwitch("gen"); 360 bool cmd_make_patch = command_line.HasSwitch("gen");
359 bool cmd_apply_patch = command_line.HasSwitch("apply"); 361 bool cmd_apply_patch = command_line.HasSwitch("apply");
360 bool cmd_make_bsdiff_patch = command_line.HasSwitch("genbsdiff"); 362 bool cmd_make_bsdiff_patch = command_line.HasSwitch("genbsdiff");
361 bool cmd_apply_bsdiff_patch = command_line.HasSwitch("applybsdiff"); 363 bool cmd_apply_bsdiff_patch = command_line.HasSwitch("applybsdiff");
362 bool cmd_spread_1_adjusted = command_line.HasSwitch("gen1a"); 364 bool cmd_spread_1_adjusted = command_line.HasSwitch("gen1a");
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 } else if (cmd_spread_1_adjusted || cmd_spread_1_unadjusted) { 422 } else if (cmd_spread_1_adjusted || cmd_spread_1_unadjusted) {
421 if (values.size() != 3) 423 if (values.size() != 3)
422 UsageProblem("-gen1[au] <old_file> <new_file> <patch_files_root>"); 424 UsageProblem("-gen1[au] <old_file> <new_file> <patch_files_root>");
423 DisassembleAdjustDiff(values[0], values[1], values[2], 425 DisassembleAdjustDiff(values[0], values[1], values[2],
424 cmd_spread_1_adjusted); 426 cmd_spread_1_adjusted);
425 } else { 427 } else {
426 UsageProblem("No operation specified"); 428 UsageProblem("No operation specified");
427 } 429 }
428 } 430 }
429 } 431 }
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