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

Unified Diff: ios/chrome/browser/memory/memory_metrics.cc

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? 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: ios/chrome/browser/memory/memory_metrics.cc
diff --git a/ios/chrome/browser/memory/memory_metrics.cc b/ios/chrome/browser/memory/memory_metrics.cc
index 1de2e2a451cd5ba666538818c7387212dd551ee2..43bf68740c5200f00efe6394dbf3c205ff344495 100644
--- a/ios/chrome/browser/memory/memory_metrics.cc
+++ b/ios/chrome/browser/memory/memory_metrics.cc
@@ -8,9 +8,10 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
+
#include "base/logging.h"
#include "base/mac/scoped_mach_port.h"
-#include "base/memory/scoped_ptr.h"
#include "base/process/process_handle.h"
#include "base/process/process_metrics.h"
#include "build/build_config.h"
@@ -47,7 +48,7 @@ uint64_t GetFreePhysicalBytes() {
uint64_t GetRealMemoryUsedInBytes() {
base::ProcessHandle process_handle = base::GetCurrentProcessHandle();
- scoped_ptr<base::ProcessMetrics> process_metrics(
+ std::unique_ptr<base::ProcessMetrics> process_metrics(
base::ProcessMetrics::CreateProcessMetrics(process_handle));
return static_cast<uint64_t>(process_metrics->GetWorkingSetSize());
}
« no previous file with comments | « ios/chrome/browser/memory/memory_debugger.mm ('k') | ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698