Chromium Code Reviews| Index: chrome/common/crash_keys.cc |
| diff --git a/chrome/common/crash_keys.cc b/chrome/common/crash_keys.cc |
| index edb6cac4edd35110539c9d57dea893c34620498a..4914f366325d2f763c8f2840b5e21ef18bb619af 100644 |
| --- a/chrome/common/crash_keys.cc |
| +++ b/chrome/common/crash_keys.cc |
| @@ -11,7 +11,6 @@ |
| #include "base/strings/string_util.h" |
| #include "base/strings/stringprintf.h" |
| #include "base/strings/utf_string_conversions.h" |
| -#include "chrome/installer/util/google_update_settings.h" |
| #if defined(OS_MACOSX) |
| #include "breakpad/src/common/simple_string_dictionary.h" |
| @@ -225,15 +224,14 @@ size_t RegisterChromeCrashKeys() { |
| kSingleChunkLength); |
| } |
| -void SetClientID(const std::string& client_id) { |
| - std::string guid(client_id); |
| +void SetClientIDFromGUID(const std::string& client_guid) { |
| + std::string stripped_guid(client_guid); |
| // Remove all instance of '-' char from the GUID. So BCD-WXY becomes BCDWXY. |
|
Ilya Sherman
2014/07/08 03:21:38
nit: "instance" -> "instances"
gab
2014/07/08 18:42:23
Done.
|
| - ReplaceSubstringsAfterOffset(&guid, 0, "-", ""); |
| - if (guid.empty()) |
| + ReplaceSubstringsAfterOffset(&stripped_guid, 0, "-", ""); |
| + if (stripped_guid.empty()) |
| return; |
| - base::debug::SetCrashKeyValue(kClientID, guid); |
| - GoogleUpdateSettings::SetMetricsId(guid); |
|
Ilya Sherman
2014/07/08 03:21:38
Why is this line safe to remove? Are you sure tha
gab
2014/07/08 18:42:23
No it's not needed from the other call and yes thi
|
| + base::debug::SetCrashKeyValue(kClientID, stripped_guid); |
| } |
| static bool IsBoringSwitch(const std::string& flag) { |