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

Unified Diff: courgette/courgette_tool.cc

Issue 270062: Use ASCII strings for switch names. (Closed)
Patch Set: victory Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/chrome_launcher_unittest.cc ('k') | ipc/ipc_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/courgette_tool.cc
diff --git a/courgette/courgette_tool.cc b/courgette/courgette_tool.cc
index 91f02aa6730f7a83ee5dcb006e32c62ef3ffc8e4..ea5106eb5bf88143e6fd50493bb5b4a6d14ca34c 100644
--- a/courgette/courgette_tool.cc
+++ b/courgette/courgette_tool.cc
@@ -349,22 +349,22 @@ int main(int argc, const char* argv[]) {
CommandLine::Init(argc, argv);
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
- bool cmd_dis = command_line.HasSwitch(L"dis");
- bool cmd_asm = command_line.HasSwitch(L"asm");
- bool cmd_disadj = command_line.HasSwitch(L"disadj");
- bool cmd_make_patch = command_line.HasSwitch(L"gen");
- bool cmd_apply_patch = command_line.HasSwitch(L"apply");
- bool cmd_make_bsdiff_patch = command_line.HasSwitch(L"genbsdiff");
- bool cmd_apply_bsdiff_patch = command_line.HasSwitch(L"applybsdiff");
- bool cmd_spread_1_adjusted = command_line.HasSwitch(L"gen1a");
- bool cmd_spread_1_unadjusted = command_line.HasSwitch(L"gen1u");
+ bool cmd_dis = command_line.HasSwitch("dis");
+ bool cmd_asm = command_line.HasSwitch("asm");
+ bool cmd_disadj = command_line.HasSwitch("disadj");
+ bool cmd_make_patch = command_line.HasSwitch("gen");
+ bool cmd_apply_patch = command_line.HasSwitch("apply");
+ bool cmd_make_bsdiff_patch = command_line.HasSwitch("genbsdiff");
+ bool cmd_apply_bsdiff_patch = command_line.HasSwitch("applybsdiff");
+ bool cmd_spread_1_adjusted = command_line.HasSwitch("gen1a");
+ bool cmd_spread_1_unadjusted = command_line.HasSwitch("gen1u");
std::vector<std::wstring> values = command_line.GetLooseValues();
// '-repeat=N' is for debugging. Running many iterations can reveal leaks and
// bugs in cleanup.
int repeat_count = 1;
- std::wstring repeat_switch = command_line.GetSwitchValue(L"repeat");
+ std::wstring repeat_switch = command_line.GetSwitchValue("repeat");
if (!repeat_switch.empty())
if (!WideStringToInt(repeat_switch, &repeat_count))
repeat_count = 1;
« no previous file with comments | « chrome_frame/chrome_launcher_unittest.cc ('k') | ipc/ipc_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698