Index: rlz/lib/financial_ping.cc |
diff --git a/rlz/lib/financial_ping.cc b/rlz/lib/financial_ping.cc |
index e1e5eed0688058058ee9c33d6a72f6c04a3bd508..1e0e362e2f29dc87c60afc1fc10b141656a4d069 100644 |
--- a/rlz/lib/financial_ping.cc |
+++ b/rlz/lib/financial_ping.cc |
@@ -8,9 +8,10 @@ |
#include <stdint.h> |
+#include <memory> |
+ |
#include "base/atomicops.h" |
#include "base/macros.h" |
-#include "base/memory/scoped_ptr.h" |
#include "base/memory/weak_ptr.h" |
#include "base/strings/string_util.h" |
#include "base/strings/stringprintf.h" |
@@ -280,7 +281,7 @@ bool FinancialPing::PingServer(const char* request, std::string* response) { |
return false; |
// Get the response text. |
- scoped_ptr<char[]> buffer(new char[kMaxPingResponseLength]); |
+ std::unique_ptr<char[]> buffer(new char[kMaxPingResponseLength]); |
if (buffer.get() == NULL) |
return false; |
@@ -305,7 +306,7 @@ bool FinancialPing::PingServer(const char* request, std::string* response) { |
return false; |
// Run a blocking event loop to match the win inet implementation. |
- scoped_ptr<base::MessageLoop> message_loop; |
+ std::unique_ptr<base::MessageLoop> message_loop; |
// Ensure that we have a MessageLoop. |
if (!base::MessageLoop::current()) |
message_loop.reset(new base::MessageLoop); |
@@ -316,7 +317,7 @@ bool FinancialPing::PingServer(const char* request, std::string* response) { |
kFinancialServer, kFinancialPort, |
request); |
- scoped_ptr<net::URLFetcher> fetcher = |
+ std::unique_ptr<net::URLFetcher> fetcher = |
net::URLFetcher::Create(GURL(url), net::URLFetcher::GET, &delegate); |
fetcher->SetLoadFlags(net::LOAD_DISABLE_CACHE | |