Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: rlz/lib/financial_ping.cc

Issue 1856623002: convert //rlz to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « rlz/chromeos/lib/rlz_value_store_chromeos.cc ('k') | rlz/lib/rlz_lib_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 |
« no previous file with comments | « rlz/chromeos/lib/rlz_value_store_chromeos.cc ('k') | rlz/lib/rlz_lib_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698