// Decode the JSON data from the response.
scoped_ptr<base::Value> value(base::JSONReader::Read(data_));
base::DictionaryValue* dict;
- if (!value.get() || value->GetType() != base::Value::TYPE_DICTIONARY ||
- !value->GetAsDictionary(&dict)) {
+ if (!value || !value->GetAsDictionary(&dict)) {
LOG(ERROR) << "Invalid token validation response: '" << data_ << "'";
return std::string();
}