| Index: net/proxy/proxy_server_mac.cc
|
| diff --git a/net/proxy/proxy_server_mac.cc b/net/proxy/proxy_server_mac.cc
|
| index 4df37a47b0b1a1b43e10056c1a78b58585fa6781..d60a07a06e3b49b3718c882224057dc8421aa1c8 100644
|
| --- a/net/proxy/proxy_server_mac.cc
|
| +++ b/net/proxy/proxy_server_mac.cc
|
| @@ -25,8 +25,9 @@ ProxyServer ProxyServer::FromDictionary(Scheme scheme,
|
| }
|
|
|
| CFStringRef host_ref =
|
| - (CFStringRef)base::mac::GetValueFromDictionary(dict, host_key,
|
| - CFStringGetTypeID());
|
| + base::mac::CFCastStrict<CFStringRef>(
|
| + base::mac::GetValueFromDictionary(dict, host_key,
|
| + CFStringGetTypeID()));
|
| if (!host_ref) {
|
| LOG(WARNING) << "Could not find expected key "
|
| << base::SysCFStringRefToUTF8(host_key)
|
| @@ -36,8 +37,9 @@ ProxyServer ProxyServer::FromDictionary(Scheme scheme,
|
| std::string host = base::SysCFStringRefToUTF8(host_ref);
|
|
|
| CFNumberRef port_ref =
|
| - (CFNumberRef)base::mac::GetValueFromDictionary(dict, port_key,
|
| - CFNumberGetTypeID());
|
| + base::mac::CFCastStrict<CFNumberRef>(
|
| + base::mac::GetValueFromDictionary(dict, port_key,
|
| + CFNumberGetTypeID()));
|
| int port;
|
| if (port_ref) {
|
| CFNumberGetValue(port_ref, kCFNumberIntType, &port);
|
|
|