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

Unified Diff: chrome/browser/profile_resetter/brandcode_config_fetcher.cc

Issue 2919133002: Fix profile resetter Omaha request: (Closed)
Patch Set: Move #include Created 3 years, 6 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 | « chrome/browser/profile_resetter/brandcode_config_fetcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profile_resetter/brandcode_config_fetcher.cc
diff --git a/chrome/browser/profile_resetter/brandcode_config_fetcher.cc b/chrome/browser/profile_resetter/brandcode_config_fetcher.cc
index ec825eee218735a986e3ae5271da1f9a26aa76c5..a0618199e15850da69579c4ca837adbcd79c3950 100644
--- a/chrome/browser/profile_resetter/brandcode_config_fetcher.cc
+++ b/chrome/browser/profile_resetter/brandcode_config_fetcher.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/profile_resetter/brandcode_config_fetcher.h"
#include <stddef.h>
+#include <vector>
#include "base/callback_helpers.h"
#include "base/macros.h"
@@ -22,18 +23,15 @@ namespace {
const int kDownloadTimeoutSec = 10;
const char kPostXml[] =
-"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<request version=\"1.3.17.0\" protocol=\"3.0\" testsource=\"dev\" "
- "shell_version=\"1.2.3.5\">\n"
-" <os platform=\"win\" version=\"6.1\" sp=\"\" arch=\"x86\" />\n"
-" <app\n"
-" appid=\"{8A69D345-D564-463C-AFF1-A69D9E530F96}\"\n"
-" version=\"0.0.0.0\"\n"
-" >\n"
-" <data name=\"install\" "
- "index=\"__BRANDCODE_PLACEHOLDER__\" />\n"
-" </app>\n"
-"</request>";
+ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
+ "<request"
+ " version=\"chromeprofilereset-1.1\""
+ " protocol=\"3.0\""
+ " installsource=\"profilereset\">"
+ " <app appid=\"{8A69D345-D564-463C-AFF1-A69D9E530F96}\">"
+ " <data name=\"install\" index=\"__BRANDCODE_PLACEHOLDER__\"/>"
+ " </app>"
+ "</request>";
// Returns the query to the server which can be used to retrieve the config.
// |brand| is a brand code, it mustn't be empty.
@@ -139,7 +137,7 @@ bool XmlConfigParser::IsParsingData() const {
std::equal(elements_.begin(), elements_.end(), data_path);
}
-} // namespace
+} // namespace
BrandcodeConfigFetcher::BrandcodeConfigFetcher(const FetchCallback& callback,
const GURL& url,
« no previous file with comments | « chrome/browser/profile_resetter/brandcode_config_fetcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698