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

Unified Diff: chromeos/timezone/timezone_request.cc

Issue 2539363004: Make base::Value::TYPE a scoped enum. (Closed)
Patch Set: Rebase Created 4 years 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
Index: chromeos/timezone/timezone_request.cc
diff --git a/chromeos/timezone/timezone_request.cc b/chromeos/timezone/timezone_request.cc
index 940632ed08ef69ddd6364be6b7744098c1c21276..df1ef21e6d58cc38312146cd033c5d1fdd1cf611 100644
--- a/chromeos/timezone/timezone_request.cc
+++ b/chromeos/timezone/timezone_request.cc
@@ -188,10 +188,12 @@ bool ParseServerResponse(const GURL& server_url,
const base::DictionaryValue* response_object = NULL;
if (!response_value->GetAsDictionary(&response_object)) {
- PrintTimeZoneError(server_url,
- "Unexpected response type : " +
- base::StringPrintf("%u", response_value->GetType()),
- timezone);
+ PrintTimeZoneError(
+ server_url,
+ "Unexpected response type : " +
+ base::StringPrintf(
+ "%u", static_cast<unsigned int>(response_value->GetType())),
+ timezone);
RecordUmaEvent(TIMEZONE_REQUEST_EVENT_RESPONSE_MALFORMED);
return false;
}
« no previous file with comments | « chromeos/network/onc/onc_validator.cc ('k') | components/arc/bluetooth/bluetooth_type_converters_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698