Index: extensions/browser/api/sockets_tcp/sockets_tcp_apitest.cc |
diff --git a/extensions/browser/api/sockets_tcp/sockets_tcp_apitest.cc b/extensions/browser/api/sockets_tcp/sockets_tcp_apitest.cc |
index d6db1620c23a8256e26d319180e75b40f42be76d..b5bbd0c473b76703896767e4c494d71412f60103 100644 |
--- a/extensions/browser/api/sockets_tcp/sockets_tcp_apitest.cc |
+++ b/extensions/browser/api/sockets_tcp/sockets_tcp_apitest.cc |
@@ -63,8 +63,8 @@ IN_PROC_BROWSER_TEST_F(SocketsTcpApiTest, SocketsTcpCreateGood) { |
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); |