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

Unified Diff: google_apis/gcm/engine/fake_connection_handler.cc

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/fake_connection_handler.cc
diff --git a/google_apis/gcm/engine/fake_connection_handler.cc b/google_apis/gcm/engine/fake_connection_handler.cc
index 86c2561d35755920779318817fb7df5b5584c5a7..ca0ba5ae01ad673b80dac380124e4ed699063b19 100644
--- a/google_apis/gcm/engine/fake_connection_handler.cc
+++ b/google_apis/gcm/engine/fake_connection_handler.cc
@@ -16,8 +16,9 @@ namespace gcm {
namespace {
// Build a basic login response.
-scoped_ptr<google::protobuf::MessageLite> BuildLoginResponse(bool fail_login) {
- scoped_ptr<mcs_proto::LoginResponse> login_response(
+std::unique_ptr<google::protobuf::MessageLite> BuildLoginResponse(
+ bool fail_login) {
+ std::unique_ptr<mcs_proto::LoginResponse> login_response(
new mcs_proto::LoginResponse());
login_response->set_id("id");
if (fail_login)

Powered by Google App Engine
This is Rietveld 408576698