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

Unified Diff: base/profiler/win32_stack_frame_unwinder.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 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 | « base/profiler/win32_stack_frame_unwinder.h ('k') | base/profiler/win32_stack_frame_unwinder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/profiler/win32_stack_frame_unwinder.cc
diff --git a/base/profiler/win32_stack_frame_unwinder.cc b/base/profiler/win32_stack_frame_unwinder.cc
index 472f4f15ffdbac803189d5e7875c9e8e7c559db8..9e6ab392524e27cb8083feb4f01669d28df08a26 100644
--- a/base/profiler/win32_stack_frame_unwinder.cc
+++ b/base/profiler/win32_stack_frame_unwinder.cc
@@ -2,12 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/macros.h"
#include "base/profiler/win32_stack_frame_unwinder.h"
#include <windows.h>
+
#include <utility>
+#include "base/macros.h"
+#include "base/memory/ptr_util.h"
+
namespace base {
// Win32UnwindFunctions -------------------------------------------------------
@@ -109,8 +112,7 @@ Win32StackFrameUnwinder::UnwindFunctions::~UnwindFunctions() {}
Win32StackFrameUnwinder::UnwindFunctions::UnwindFunctions() {}
Win32StackFrameUnwinder::Win32StackFrameUnwinder()
- : Win32StackFrameUnwinder(make_scoped_ptr(new Win32UnwindFunctions)) {
-}
+ : Win32StackFrameUnwinder(WrapUnique(new Win32UnwindFunctions)) {}
Win32StackFrameUnwinder::~Win32StackFrameUnwinder() {}
@@ -178,8 +180,7 @@ bool Win32StackFrameUnwinder::TryUnwind(CONTEXT* context,
}
Win32StackFrameUnwinder::Win32StackFrameUnwinder(
- scoped_ptr<UnwindFunctions> unwind_functions)
- : at_top_frame_(true),
- unwind_functions_(std::move(unwind_functions)) {}
+ std::unique_ptr<UnwindFunctions> unwind_functions)
+ : at_top_frame_(true), unwind_functions_(std::move(unwind_functions)) {}
} // namespace base
« no previous file with comments | « base/profiler/win32_stack_frame_unwinder.h ('k') | base/profiler/win32_stack_frame_unwinder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698