Index: extensions/browser/api/sockets_tcp_server/sockets_tcp_server_apitest.cc |
diff --git a/extensions/browser/api/sockets_tcp_server/sockets_tcp_server_apitest.cc b/extensions/browser/api/sockets_tcp_server/sockets_tcp_server_apitest.cc |
index 3414f36768d3e0fae85f868af68cfc9702db8959..8811c2ec52479dda9b3b34de56f5a75ea1866900 100644 |
--- a/extensions/browser/api/sockets_tcp_server/sockets_tcp_server_apitest.cc |
+++ b/extensions/browser/api/sockets_tcp_server/sockets_tcp_server_apitest.cc |
@@ -62,8 +62,8 @@ IN_PROC_BROWSER_TEST_F(SocketsTcpServerApiTest, SocketTCPCreateGood) { |
api_test_utils::RunFunctionAndReturnSingleResult( |
socket_create_function.get(), "[]", browser_context())); |
ASSERT_EQ(base::Value::TYPE_DICTIONARY, result->GetType()); |
- base::DictionaryValue* value = |
- static_cast<base::DictionaryValue*>(result.get()); |
+ scoped_ptr<base::DictionaryValue> value = |
+ base::DictionaryValue::From(result.Pass()); |
int socketId = -1; |
EXPECT_TRUE(value->GetInteger("socketId", &socketId)); |
ASSERT_TRUE(socketId > 0); |