diff options
author | holte <holte@chromium.org> | 2015-01-13 13:31:22 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-13 21:32:15 +0000 |
commit | 83fc6907e8de0362881e4bcdafd4a2186a008aee (patch) | |
tree | 9ee6e5cbfc4b9fe96bcce8a862b204d1246f759f /components | |
parent | 89d303ac3e23adf4ecff08e459a6bdf6b81ff033 (diff) | |
download | chromium_src-83fc6907e8de0362881e4bcdafd4a2186a008aee.zip chromium_src-83fc6907e8de0362881e4bcdafd4a2186a008aee.tar.gz chromium_src-83fc6907e8de0362881e4bcdafd4a2186a008aee.tar.bz2 |
Fix a bug in RapporService::LoadSecret
Testing for this fix to be added by
https://codereview.chromium.org/845863002/
BUG=448269
Review URL: https://codereview.chromium.org/848823002
Cr-Commit-Position: refs/heads/master@{#311327}
Diffstat (limited to 'components')
-rw-r--r-- | components/rappor/rappor_service.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/rappor/rappor_service.cc b/components/rappor/rappor_service.cc index 2519326b..1abe269 100644 --- a/components/rappor/rappor_service.cc +++ b/components/rappor/rappor_service.cc @@ -210,7 +210,7 @@ std::string RapporService::LoadSecret() { std::string secret_base64 = pref_service_->GetString(prefs::kRapporSecret); if (!secret_base64.empty()) { bool decoded = base::Base64Decode(secret_base64, &secret); - if (decoded && secret_.size() == HmacByteVectorGenerator::kEntropyInputSize) + if (decoded && secret.size() == HmacByteVectorGenerator::kEntropyInputSize) return secret; // If the preference fails to decode, or is the wrong size, it must be // corrupt, so continue as though it didn't exist yet and generate a new |