Index: components/rappor/rappor_service.cc |
diff --git a/components/rappor/rappor_service.cc b/components/rappor/rappor_service.cc |
index 2519326beabdd98f3a3862e39fc95ed56cba8e15..1abe269c2d8447fca5de7d0e0aff286d871ce379 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 |