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

Unified Diff: chrome/browser/chromeos/net/network_portal_detector_test_utils.cc

Issue 1870793002: Convert //chrome/browser/chromeos 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: chrome/browser/chromeos/net/network_portal_detector_test_utils.cc
diff --git a/chrome/browser/chromeos/net/network_portal_detector_test_utils.cc b/chrome/browser/chromeos/net/network_portal_detector_test_utils.cc
index c5d9adb4a738d519437fd150ac275ea19edb402c..38cf86449e881050486f84809ada4a317b84a8d7 100644
--- a/chrome/browser/chromeos/net/network_portal_detector_test_utils.cc
+++ b/chrome/browser/chromeos/net/network_portal_detector_test_utils.cc
@@ -7,9 +7,9 @@
#include <stddef.h>
#include <algorithm>
+#include <memory>
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram_base.h"
#include "base/metrics/histogram_samples.h"
#include "base/metrics/statistics_recorder.h"
@@ -44,7 +44,8 @@ bool EnumHistogramChecker::Check() {
}
return true;
}
- scoped_ptr<base::HistogramSamples> samples = histogram->SnapshotSamples();
+ std::unique_ptr<base::HistogramSamples> samples =
+ histogram->SnapshotSamples();
if (!samples.get()) {
if (!empty) {
LOG(ERROR) << "Non-empty expectations for " << histogram_ << " "

Powered by Google App Engine
This is Rietveld 408576698