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

Unified Diff: chrome/browser/metrics/perf/perf_provider_chromeos.h

Issue 1886913002: Convert //chrome/browser/metrics from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/metrics/perf/perf_provider_chromeos.h
diff --git a/chrome/browser/metrics/perf/perf_provider_chromeos.h b/chrome/browser/metrics/perf/perf_provider_chromeos.h
index 68d1cd79b908705679f9fd06e7bda6a73e991dcc..3693c6db123797ed6dc5acfb1894c8e7fd6ee1a8 100644
--- a/chrome/browser/metrics/perf/perf_provider_chromeos.h
+++ b/chrome/browser/metrics/perf/perf_provider_chromeos.h
@@ -132,8 +132,8 @@ class PerfProvider : public base::NonThreadSafe,
// |result| is the return value of running perf/quipper. It is 0 if successful
// and nonzero if not successful.
void ParseOutputProtoIfValid(
- scoped_ptr<WindowedIncognitoObserver> incognito_observer,
- scoped_ptr<SampledProfile> sampled_profile,
+ std::unique_ptr<WindowedIncognitoObserver> incognito_observer,
+ std::unique_ptr<SampledProfile> sampled_profile,
int result,
const std::vector<uint8_t>& perf_data,
const std::vector<uint8_t>& perf_stat);
@@ -194,7 +194,7 @@ class PerfProvider : public base::NonThreadSafe,
// Collects perf data for a given |trigger_event|. Calls perf via the ChromeOS
// debug daemon's dbus interface.
- void CollectIfNecessary(scoped_ptr<SampledProfile> sampled_profile);
+ void CollectIfNecessary(std::unique_ptr<SampledProfile> sampled_profile);
// Collects perf data on a repeating basis by calling CollectIfNecessary() and
// reschedules it to be collected again.

Powered by Google App Engine
This is Rietveld 408576698