Index: extensions/common/extension_api.cc |
diff --git a/extensions/common/extension_api.cc b/extensions/common/extension_api.cc |
index 81ca72ae5697f3da5fa45a0d7bde0febee023d94..ec6fa1802ffb0c61bf9d1de891dc848da5b718d7 100644 |
--- a/extensions/common/extension_api.cc |
+++ b/extensions/common/extension_api.cc |
@@ -60,8 +60,7 @@ scoped_ptr<base::ListValue> LoadSchemaList(const std::string& name, |
CHECK(result.get()) << error_message << " for schema " << schema; |
CHECK(result->IsType(base::Value::TYPE_LIST)) << " for schema " << schema; |
- return scoped_ptr<base::ListValue>(static_cast<base::ListValue*>( |
- result.release())); |
+ return base::ListValue::From(result.Pass()); |
} |
const base::DictionaryValue* FindListItem(const base::ListValue* list, |