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

Unified Diff: third_party/crashpad/crashpad/minidump/minidump_unloaded_module_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_unloaded_module_writer.cc
diff --git a/third_party/crashpad/crashpad/minidump/minidump_unloaded_module_writer.cc b/third_party/crashpad/crashpad/minidump/minidump_unloaded_module_writer.cc
index 7a520ba772e291e3597a1843dcd38b67a9caa0fd..c73a9e624039a38287ca38f042fb49555bcf4ebb 100644
--- a/third_party/crashpad/crashpad/minidump/minidump_unloaded_module_writer.cc
+++ b/third_party/crashpad/crashpad/minidump/minidump_unloaded_module_writer.cc
@@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "minidump/minidump_unloaded_module_writer.h"
-
#include <limits>
+#include "base/memory/ptr_util.h"
+#include "minidump/minidump_unloaded_module_writer.h"
#include "minidump/minidump_writer_util.h"
#include "util/file/file_writer.h"
#include "util/numeric/in_range_cast.h"
@@ -123,14 +123,14 @@ void MinidumpUnloadedModuleListWriter::InitializeFromSnapshot(
DCHECK(unloaded_modules_.empty());
for (auto unloaded_module_snapshot : unloaded_module_snapshots) {
- auto unloaded_module = make_scoped_ptr(new MinidumpUnloadedModuleWriter());
+ auto unloaded_module = base::WrapUnique(new MinidumpUnloadedModuleWriter());
unloaded_module->InitializeFromSnapshot(unloaded_module_snapshot);
AddUnloadedModule(std::move(unloaded_module));
}
}
void MinidumpUnloadedModuleListWriter::AddUnloadedModule(
- scoped_ptr<MinidumpUnloadedModuleWriter> unloaded_module) {
+ std::unique_ptr<MinidumpUnloadedModuleWriter> unloaded_module) {
DCHECK_EQ(state(), kStateMutable);
unloaded_modules_.push_back(unloaded_module.release());

Powered by Google App Engine
This is Rietveld 408576698