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

Unified Diff: components/update_client/utils.h

Issue 1876573002: Component updater must enforce that the brand length is 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@apchange
Patch Set: Created 4 years, 8 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 | « no previous file | components/update_client/utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/utils.h
diff --git a/components/update_client/utils.h b/components/update_client/utils.h
index eed5bb054e9b334b23ae0c930f8066b4d8161ea4..ce0efeaaad9c95b4f5930c2361d396eb912080a6 100644
--- a/components/update_client/utils.h
+++ b/components/update_client/utils.h
@@ -96,7 +96,7 @@ std::string GetCrxComponentID(const CrxComponent& component);
bool VerifyFileHash256(const base::FilePath& filepath,
const std::string& expected_hash);
-// Returns true if the |brand| parameter matches ^([a-zA-Z]{4})?$ .
+// Returns true if the |brand| parameter matches ^[a-zA-Z]{4}?$ .
bool IsValidBrand(const std::string& brand);
// Returns true if the |ap| parameter matches ^[-+_=a-zA-Z0-9]{0,256}$ .
« no previous file with comments | « no previous file | components/update_client/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698