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

Unified Diff: remoting/base/breakpad_win.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 | « remoting/base/auto_thread_task_runner.h ('k') | remoting/base/breakpad_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/breakpad_win.cc
diff --git a/remoting/base/breakpad_win.cc b/remoting/base/breakpad_win.cc
index 6ba02c5b43610def5a509680c1e497ba9930ff98..dc522230b787148f5b03204983dd6c3c19034b65 100644
--- a/remoting/base/breakpad_win.cc
+++ b/remoting/base/breakpad_win.cc
@@ -10,6 +10,8 @@
#include "remoting/base/breakpad.h"
#include <windows.h>
+
+#include <memory>
#include <string>
#include "base/atomicops.h"
@@ -17,7 +19,6 @@
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "base/win/current_module.h"
#include "base/win/wrapped_window_proc.h"
@@ -77,7 +78,7 @@ class BreakpadWin {
static int OnWindowProcedureException(EXCEPTION_POINTERS* exinfo);
// Breakpad's exception handler.
- scoped_ptr<google_breakpad::ExceptionHandler> breakpad_;
+ std::unique_ptr<google_breakpad::ExceptionHandler> breakpad_;
// This flag is used to indicate that an exception is already being handled.
volatile AtomicWord handling_exception_;
@@ -144,7 +145,7 @@ BreakpadWin* BreakpadWin::GetInstance() {
// Returns the Custom information to be used for crash reporting.
google_breakpad::CustomClientInfo* BreakpadWin::GetCustomInfo() {
- scoped_ptr<FileVersionInfo> version_info(
+ std::unique_ptr<FileVersionInfo> version_info(
FileVersionInfo::CreateFileVersionInfoForModule(CURRENT_MODULE()));
static wchar_t version[64];
« no previous file with comments | « remoting/base/auto_thread_task_runner.h ('k') | remoting/base/breakpad_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698