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

Unified Diff: components/proximity_auth/ble/fake_wire_message.cc

Issue 1912433002: Convert //components/proximity_auth from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits 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
« no previous file with comments | « components/proximity_auth/ble/fake_wire_message.h ('k') | components/proximity_auth/bluetooth_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/ble/fake_wire_message.cc
diff --git a/components/proximity_auth/ble/fake_wire_message.cc b/components/proximity_auth/ble/fake_wire_message.cc
index 0997b3fadbdfc95503cbbe6154fe08749fe979e7..531f4d9b8ff1a36d285c8c2602e25f96a5ebdd0b 100644
--- a/components/proximity_auth/ble/fake_wire_message.cc
+++ b/components/proximity_auth/ble/fake_wire_message.cc
@@ -2,11 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "components/proximity_auth/ble/fake_wire_message.h"
+
+#include <memory>
#include <string>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "components/proximity_auth/ble/fake_wire_message.h"
#include "components/proximity_auth/wire_message.h"
namespace proximity_auth {
@@ -14,11 +15,12 @@ namespace proximity_auth {
FakeWireMessage::FakeWireMessage(const std::string& payload)
: WireMessage(payload) {}
-scoped_ptr<FakeWireMessage> FakeWireMessage::Deserialize(
+std::unique_ptr<FakeWireMessage> FakeWireMessage::Deserialize(
const std::string& serialized_message,
bool* is_incomplete_message) {
*is_incomplete_message = false;
- return scoped_ptr<FakeWireMessage>(new FakeWireMessage(serialized_message));
+ return std::unique_ptr<FakeWireMessage>(
+ new FakeWireMessage(serialized_message));
}
std::string FakeWireMessage::Serialize() const {
« no previous file with comments | « components/proximity_auth/ble/fake_wire_message.h ('k') | components/proximity_auth/bluetooth_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698