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

Unified Diff: base/win/windows_version.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/win/win_util.cc ('k') | chrome/browser/android/bottombar/overlay_panel_content.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/windows_version.cc
diff --git a/base/win/windows_version.cc b/base/win/windows_version.cc
index eb3f4993d2cdc481869270ff50a59877b386767f..77e84de3cdb8735e095f610d84dbf4c084cb21ec 100644
--- a/base/win/windows_version.cc
+++ b/base/win/windows_version.cc
@@ -6,10 +6,11 @@
#include <windows.h>
+#include <memory>
+
#include "base/file_version_info_win.h"
#include "base/files/file_path.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "base/win/registry.h"
@@ -60,7 +61,7 @@ Version MajorMinorBuildToVersion(int major, int minor, int build) {
// compatibility mode for a down-level version of the OS, the file version of
// kernel32 will still be the "real" version.
Version GetVersionFromKernel32() {
- scoped_ptr<FileVersionInfoWin> file_version_info(
+ std::unique_ptr<FileVersionInfoWin> file_version_info(
static_cast<FileVersionInfoWin*>(
FileVersionInfoWin::CreateFileVersionInfo(
base::FilePath(FILE_PATH_LITERAL("kernel32.dll")))));
« no previous file with comments | « base/win/win_util.cc ('k') | chrome/browser/android/bottombar/overlay_panel_content.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698