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

Unified Diff: google_apis/gcm/engine/connection_handler.h

Issue 1873663002: Convert //google_apis from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: google_apis/gcm/engine/connection_handler.h
diff --git a/google_apis/gcm/engine/connection_handler.h b/google_apis/gcm/engine/connection_handler.h
index b719ac762609fe6d3eef2728769ce3efd06afa5b..da12722daf19dfefaea48fbafa44894005f849d2 100644
--- a/google_apis/gcm/engine/connection_handler.h
+++ b/google_apis/gcm/engine/connection_handler.h
@@ -5,8 +5,9 @@
#ifndef GOOGLE_APIS_GCM_ENGINE_CONNECTION_HANDLER_H_
#define GOOGLE_APIS_GCM_ENGINE_CONNECTION_HANDLER_H_
+#include <memory>
+
#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
#include "google_apis/gcm/base/gcm_export.h"
namespace net{
@@ -35,7 +36,7 @@ class SocketOutputStream;
// messages can be sent/received again.
class GCM_EXPORT ConnectionHandler {
public:
- typedef base::Callback<void(scoped_ptr<google::protobuf::MessageLite>)>
+ typedef base::Callback<void(std::unique_ptr<google::protobuf::MessageLite>)>
ProtoReceivedCallback;
typedef base::Closure ProtoSentCallback;
typedef base::Callback<void(int)> ConnectionChangedCallback;

Powered by Google App Engine
This is Rietveld 408576698