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

Unified Diff: components/update_client/utils.h

Issue 1823273002: Send the value of google_brand::GetBrand in component update checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor unit test improvement. Created 4 years, 9 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 | « components/update_client/update_checker_unittest.cc ('k') | 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 80b7e071875f4d47913cf4760aa5f33983d898ec..bd428cafabdd441453c84334c7597c4c56d196d4 100644
--- a/components/update_client/utils.h
+++ b/components/update_client/utils.h
@@ -95,6 +95,9 @@ 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})?$ .
+bool IsValidBrand(const std::string& brand);
+
} // namespace update_client
#endif // COMPONENTS_UPDATE_CLIENT_UTILS_H_
« no previous file with comments | « components/update_client/update_checker_unittest.cc ('k') | components/update_client/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698