Index: components/update_client/utils.cc |
diff --git a/components/update_client/utils.cc b/components/update_client/utils.cc |
index 00123f450d3988c505941ffdc2350c29d5f17931..236c27071c7eac9120218dbfc479944986db00ab 100644 |
--- a/components/update_client/utils.cc |
+++ b/components/update_client/utils.cc |
@@ -231,7 +231,7 @@ bool VerifyFileHash256(const base::FilePath& filepath, |
bool IsValidBrand(const std::string& brand) { |
const size_t kMaxBrandSize = 4; |
- if (brand.size() > kMaxBrandSize) |
+ if (!brand.empty() && brand.size() != kMaxBrandSize) |
return false; |
return std::find_if_not(brand.begin(), brand.end(), [](char ch) { |