Index: components/update_client/update_response.cc |
diff --git a/components/update_client/update_response.cc b/components/update_client/update_response.cc |
index c2349c11186705eb2112e3071292839a0a7adf6c..8fbc1ec094d781d184ea1f66e5c3b1125431437d 100644 |
--- a/components/update_client/update_response.cc |
+++ b/components/update_client/update_response.cc |
@@ -20,7 +20,6 @@ |
namespace update_client { |
-static const char* kExpectedResponseProtocol = "3.0"; |
const char UpdateResponse::Result::kCohort[] = "cohort"; |
const char UpdateResponse::Result::kCohortHint[] = "cohorthint"; |
const char UpdateResponse::Result::kCohortName[] = "cohortname"; |
@@ -367,11 +366,12 @@ bool UpdateResponse::Parse(const std::string& response_xml) { |
} |
// Check for the response "protocol" attribute. |
- if (GetAttribute(root, "protocol") != kExpectedResponseProtocol) { |
+ const auto protocol = GetAttribute(root, "protocol"); |
+ if (protocol != kProtocolVersion) { |
ParseError( |
"Missing/incorrect protocol on response tag " |
- "(expected '%s')", |
- kExpectedResponseProtocol); |
+ "(expected '%s', found '%s')", |
+ kProtocolVersion, protocol.c_str()); |
return false; |
} |