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

Unified Diff: third_party/crashpad/crashpad/minidump/minidump_string_writer.cc

Issue 1911823002: Convert //third_party from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update crashpad's README.chromium 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: third_party/crashpad/crashpad/minidump/minidump_string_writer.cc
diff --git a/third_party/crashpad/crashpad/minidump/minidump_string_writer.cc b/third_party/crashpad/crashpad/minidump/minidump_string_writer.cc
index 5bf57dd9ea7bc5850c3c8f616ba43877c18d3fee..77d8748bf2d530820a30723548b66eea8104c1d7 100644
--- a/third_party/crashpad/crashpad/minidump/minidump_string_writer.cc
+++ b/third_party/crashpad/crashpad/minidump/minidump_string_writer.cc
@@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "minidump/minidump_string_writer.h"
-
#include <utility>
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
+#include "minidump/minidump_string_writer.h"
#include "minidump/minidump_writer_util.h"
#include "util/file/file_writer.h"
#include "util/numeric/safe_assignment.h"
@@ -119,7 +119,7 @@ void MinidumpStringListWriter<MinidumpStringWriterType>::InitializeFromVector(
template <typename MinidumpStringWriterType>
void MinidumpStringListWriter<MinidumpStringWriterType>::AddStringUTF8(
const std::string& string_utf8) {
- auto string_writer = make_scoped_ptr(new MinidumpStringWriterType());
+ auto string_writer = base::WrapUnique(new MinidumpStringWriterType());
string_writer->SetUTF8(string_utf8);
AddChild(std::move(string_writer));
}

Powered by Google App Engine
This is Rietveld 408576698