| Index: net/log/net_log_util.cc
 | 
| diff --git a/net/log/net_log_util.cc b/net/log/net_log_util.cc
 | 
| index a088420740848c4dc6d02850ef701844c064537d..2b5f6b553b7cd1490d2f6ef2aeb1775348fffbc9 100644
 | 
| --- a/net/log/net_log_util.cc
 | 
| +++ b/net/log/net_log_util.cc
 | 
| @@ -129,15 +129,17 @@ bool RequestCreatedBefore(const URLRequest* request1,
 | 
|  
 | 
|  // Returns a Value representing the state of a pre-existing URLRequest when
 | 
|  // net-internals was opened.
 | 
| -scoped_ptr<base::Value> GetRequestStateAsValue(const net::URLRequest* request,
 | 
| -                                               NetLogCaptureMode capture_mode) {
 | 
| +std::unique_ptr<base::Value> GetRequestStateAsValue(
 | 
| +    const net::URLRequest* request,
 | 
| +    NetLogCaptureMode capture_mode) {
 | 
|    return request->GetStateAsValue();
 | 
|  }
 | 
|  
 | 
|  }  // namespace
 | 
|  
 | 
| -scoped_ptr<base::DictionaryValue> GetNetConstants() {
 | 
| -  scoped_ptr<base::DictionaryValue> constants_dict(new base::DictionaryValue());
 | 
| +std::unique_ptr<base::DictionaryValue> GetNetConstants() {
 | 
| +  std::unique_ptr<base::DictionaryValue> constants_dict(
 | 
| +      new base::DictionaryValue());
 | 
|  
 | 
|    // Version of the file format.
 | 
|    constants_dict->SetInteger("logFormatVersion", kLogFormatVersion);
 | 
| @@ -149,7 +151,7 @@ scoped_ptr<base::DictionaryValue> GetNetConstants() {
 | 
|    // Add a dictionary with information about the relationship between CertStatus
 | 
|    // flags and their symbolic names.
 | 
|    {
 | 
| -    scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
| +    std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
|  
 | 
|      for (size_t i = 0; i < arraysize(kCertStatusFlags); i++)
 | 
|        dict->SetInteger(kCertStatusFlags[i].name, kCertStatusFlags[i].constant);
 | 
| @@ -160,7 +162,7 @@ scoped_ptr<base::DictionaryValue> GetNetConstants() {
 | 
|    // Add a dictionary with information about the relationship between load flag
 | 
|    // enums and their symbolic names.
 | 
|    {
 | 
| -    scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
| +    std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
|  
 | 
|      for (size_t i = 0; i < arraysize(kLoadFlags); i++)
 | 
|        dict->SetInteger(kLoadFlags[i].name, kLoadFlags[i].constant);
 | 
| @@ -171,7 +173,7 @@ scoped_ptr<base::DictionaryValue> GetNetConstants() {
 | 
|    // Add a dictionary with information about the relationship between load state
 | 
|    // enums and their symbolic names.
 | 
|    {
 | 
| -    scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
| +    std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
|  
 | 
|      for (size_t i = 0; i < arraysize(kLoadStateTable); i++)
 | 
|        dict->SetInteger(kLoadStateTable[i].name, kLoadStateTable[i].constant);
 | 
| @@ -180,7 +182,7 @@ scoped_ptr<base::DictionaryValue> GetNetConstants() {
 | 
|    }
 | 
|  
 | 
|    {
 | 
| -    scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
| +    std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
|  #define NET_INFO_SOURCE(label, string, value) \
 | 
|    dict->SetInteger(string, NET_INFO_##label);
 | 
|  #include "net/base/net_info_source_list.h"
 | 
| @@ -191,7 +193,7 @@ scoped_ptr<base::DictionaryValue> GetNetConstants() {
 | 
|    // Add information on the relationship between net error codes and their
 | 
|    // symbolic names.
 | 
|    {
 | 
| -    scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
| +    std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
|  
 | 
|      for (size_t i = 0; i < arraysize(kNetErrors); i++)
 | 
|        dict->SetInteger(ErrorToShortString(kNetErrors[i]), kNetErrors[i]);
 | 
| @@ -202,7 +204,7 @@ scoped_ptr<base::DictionaryValue> GetNetConstants() {
 | 
|    // Add information on the relationship between QUIC error codes and their
 | 
|    // symbolic names.
 | 
|    {
 | 
| -    scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
| +    std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
|  
 | 
|      for (QuicErrorCode error = QUIC_NO_ERROR; error < QUIC_LAST_ERROR;
 | 
|           error = static_cast<QuicErrorCode>(error + 1)) {
 | 
| @@ -216,7 +218,7 @@ scoped_ptr<base::DictionaryValue> GetNetConstants() {
 | 
|    // Add information on the relationship between QUIC RST_STREAM error codes
 | 
|    // and their symbolic names.
 | 
|    {
 | 
| -    scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
| +    std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
|  
 | 
|      for (QuicRstStreamErrorCode error = QUIC_STREAM_NO_ERROR;
 | 
|           error < QUIC_STREAM_LAST_ERROR;
 | 
| @@ -231,7 +233,7 @@ scoped_ptr<base::DictionaryValue> GetNetConstants() {
 | 
|    // Add information on the relationship between SDCH problem codes and their
 | 
|    // symbolic names.
 | 
|    {
 | 
| -    scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
| +    std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
|  
 | 
|      for (size_t i = 0; i < arraysize(kSdchProblems); i++)
 | 
|        dict->SetInteger(kSdchProblems[i].name, kSdchProblems[i].constant);
 | 
| @@ -242,7 +244,7 @@ scoped_ptr<base::DictionaryValue> GetNetConstants() {
 | 
|    // Information about the relationship between event phase enums and their
 | 
|    // symbolic names.
 | 
|    {
 | 
| -    scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
| +    std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
|  
 | 
|      dict->SetInteger("PHASE_BEGIN", NetLog::PHASE_BEGIN);
 | 
|      dict->SetInteger("PHASE_END", NetLog::PHASE_END);
 | 
| @@ -263,7 +265,7 @@ scoped_ptr<base::DictionaryValue> GetNetConstants() {
 | 
|    // Information about the relationship between address family enums and
 | 
|    // their symbolic names.
 | 
|    {
 | 
| -    scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
| +    std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
|  
 | 
|      dict->SetInteger("ADDRESS_FAMILY_UNSPECIFIED", ADDRESS_FAMILY_UNSPECIFIED);
 | 
|      dict->SetInteger("ADDRESS_FAMILY_IPV4", ADDRESS_FAMILY_IPV4);
 | 
| @@ -315,20 +317,21 @@ scoped_ptr<base::DictionaryValue> GetNetConstants() {
 | 
|    return constants_dict;
 | 
|  }
 | 
|  
 | 
| -NET_EXPORT scoped_ptr<base::DictionaryValue> GetNetInfo(
 | 
| +NET_EXPORT std::unique_ptr<base::DictionaryValue> GetNetInfo(
 | 
|      URLRequestContext* context,
 | 
|      int info_sources) {
 | 
|    // May only be called on the context's thread.
 | 
|    DCHECK(context->CalledOnValidThread());
 | 
|  
 | 
| -  scoped_ptr<base::DictionaryValue> net_info_dict(new base::DictionaryValue());
 | 
| +  std::unique_ptr<base::DictionaryValue> net_info_dict(
 | 
| +      new base::DictionaryValue());
 | 
|  
 | 
|    // TODO(mmenke):  The code for most of these sources should probably be moved
 | 
|    // into the sources themselves.
 | 
|    if (info_sources & NET_INFO_PROXY_SETTINGS) {
 | 
|      ProxyService* proxy_service = context->proxy_service();
 | 
|  
 | 
| -    scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
| +    std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
|      if (proxy_service->fetched_config().is_valid())
 | 
|        dict->Set("original", proxy_service->fetched_config().ToValue());
 | 
|      if (proxy_service->config().is_valid())
 | 
| @@ -349,7 +352,7 @@ NET_EXPORT scoped_ptr<base::DictionaryValue> GetNetInfo(
 | 
|        const std::string& proxy_uri = it->first;
 | 
|        const ProxyRetryInfo& retry_info = it->second;
 | 
|  
 | 
| -      scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
| +      std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
|        dict->SetString("proxy_uri", proxy_uri);
 | 
|        dict->SetString("bad_until",
 | 
|                        NetLog::TickCountToString(retry_info.bad_until));
 | 
| @@ -365,8 +368,9 @@ NET_EXPORT scoped_ptr<base::DictionaryValue> GetNetInfo(
 | 
|      DCHECK(host_resolver);
 | 
|      HostCache* cache = host_resolver->GetHostCache();
 | 
|      if (cache) {
 | 
| -      scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
| -      scoped_ptr<base::Value> dns_config = host_resolver->GetDnsConfigAsValue();
 | 
| +      std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
 | 
| +      std::unique_ptr<base::Value> dns_config =
 | 
| +          host_resolver->GetDnsConfigAsValue();
 | 
|        if (dns_config)
 | 
|          dict->Set("dns_config", std::move(dns_config));
 | 
|  
 | 
| @@ -499,7 +503,7 @@ NET_EXPORT scoped_ptr<base::DictionaryValue> GetNetInfo(
 | 
|    }
 | 
|  
 | 
|    if (info_sources & NET_INFO_SDCH) {
 | 
| -    scoped_ptr<base::Value> info_dict;
 | 
| +    std::unique_ptr<base::Value> info_dict;
 | 
|      SdchManager* sdch_manager = context->sdch_manager();
 | 
|      if (sdch_manager) {
 | 
|        info_dict = sdch_manager->SdchInfoToValue();
 | 
| 
 |