Index: components/update_client/utils.h |
diff --git a/components/update_client/utils.h b/components/update_client/utils.h |
index af353f76d67634f33c7aac80d9d7c0bf357c574d..1a086060185aca0d0533575df0bbe443ba1f5375 100644 |
--- a/components/update_client/utils.h |
+++ b/components/update_client/utils.h |
@@ -99,6 +99,9 @@ bool VerifyFileHash256(const base::FilePath& filepath, |
// 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})$ . |
waffles
2016/04/08 21:06:16
Nit: no need for parens.
Sorin Jianu
2016/04/08 21:13:42
Done.
|
+bool IsValidAp(const std::string& ap); |
+ |
// Removes the unsecure urls in the |urls| parameter. |
void RemoveUnsecureUrls(std::vector<GURL>* urls); |