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

Unified Diff: chrome/installer/util/channel_info.cc

Issue 2073323002: Change the value separator for stats default param. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/installer/util/channel_info.h ('k') | chrome/installer/util/channel_info_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/channel_info.cc
diff --git a/chrome/installer/util/channel_info.cc b/chrome/installer/util/channel_info.cc
index aa205980a7f545da7deb796280fdc9c969f336cc..dae2c4e913fedfa5e77d747e550a0c00676e0ec0 100644
--- a/chrome/installer/util/channel_info.cc
+++ b/chrome/installer/util/channel_info.cc
@@ -25,7 +25,7 @@ const wchar_t kModAppLauncherDeprecated[] = L"-applauncher";
const wchar_t kModMultiInstall[] = L"-multi";
const wchar_t kModReadyMode[] = L"-readymode";
const wchar_t kModStage[] = L"-stage:";
-const wchar_t kModStatsDefault[] = L"-statsdef:";
+const wchar_t kModStatsDefault[] = L"-statsdef=";
const wchar_t kSfxFull[] = L"-full";
const wchar_t kSfxMigrating[] = L"-migrating";
const wchar_t kSfxMultiFail[] = L"-multifail";
@@ -73,7 +73,8 @@ bool FindModifier(ModifierIndex index,
base::string16::size_type mod_position = base::string16::npos;
base::string16::size_type mod_length =
base::string16::traits_type::length(kModifiers[index]);
- const bool mod_takes_arg = (kModifiers[index][mod_length - 1] == L':');
+ char last_char = kModifiers[index][mod_length - 1];
+ const bool mod_takes_arg = (last_char == L':' || last_char == L'=');
base::string16::size_type pos = 0;
do {
mod_position = ap_value.find(kModifiers[index], pos, mod_length);
« no previous file with comments | « chrome/installer/util/channel_info.h ('k') | chrome/installer/util/channel_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698