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

Unified Diff: components/update_client/utils.cc

Issue 1606943007: Implement Windows GPO support for "dlpref" in component updater. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whitespace comments only Created 4 years, 11 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/utils.h ('k') | components/update_client/utils_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/utils.cc
diff --git a/components/update_client/utils.cc b/components/update_client/utils.cc
index ca1cf3bc1a0e80ea40fcc550a08a7f90e6fc1aaa..8135596f2e5b47d5d0ede81447fe5ed71ccaf588 100644
--- a/components/update_client/utils.cc
+++ b/components/update_client/utils.cc
@@ -64,6 +64,7 @@ std::string BuildProtocolRequest(const std::string& browser_version,
const std::string& channel,
const std::string& lang,
const std::string& os_long_name,
+ const std::string& download_preference,
const std::string& request_body,
const std::string& additional_attributes) {
const std::string prod_id(
@@ -98,6 +99,9 @@ std::string BuildProtocolRequest(const std::string& browser_version,
if (is_wow64)
base::StringAppendF(&request, " wow64=\"1\"");
#endif
+ if (!download_preference.empty())
+ base::StringAppendF(&request, " dlpref=\"%s\"",
+ download_preference.c_str());
base::StringAppendF(&request, ">");
// HW platform information.
« no previous file with comments | « components/update_client/utils.h ('k') | components/update_client/utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698