Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / remoting / host / token_validator_base.cc
index c370167..15f22bc 100644 (file)
@@ -178,8 +178,7 @@ std::string TokenValidatorBase::ProcessResponse() {
   // 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();
   }