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

Unified Diff: components/crash/core/common/crash_keys.cc

Issue 2671383002: Double variations crash key size (Closed)
Patch Set: Remove an expectation based on chunk size Created 3 years, 10 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 | « components/crash/core/common/crash_keys.h ('k') | components/crash/core/common/crash_keys_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crash/core/common/crash_keys.cc
diff --git a/components/crash/core/common/crash_keys.cc b/components/crash/core/common/crash_keys.cc
index 6c2d3828deee3ad3c6096a0f31431d026c476275..9e3346bfd988e827665d6a69932ea7515403fbbe 100644
--- a/components/crash/core/common/crash_keys.cc
+++ b/components/crash/core/common/crash_keys.cc
@@ -93,12 +93,12 @@ void SetVariationsList(const std::vector<std::string>& variations) {
base::StringPrintf("%" PRIuS, variations.size()));
std::string variations_string;
- variations_string.reserve(kLargeSize);
+ variations_string.reserve(kHugeSize);
for (size_t i = 0; i < variations.size(); ++i) {
const std::string& variation = variations[i];
// Do not truncate an individual experiment.
- if (variations_string.size() + variation.size() >= kLargeSize)
+ if (variations_string.size() + variation.size() >= kHugeSize)
break;
variations_string += variation;
variations_string += ",";
« no previous file with comments | « components/crash/core/common/crash_keys.h ('k') | components/crash/core/common/crash_keys_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698