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

Unified Diff: chrome/browser/metrics/chrome_stability_metrics_provider_unittest.cc

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/chrome_stability_metrics_provider_unittest.cc
diff --git a/chrome/browser/metrics/chrome_stability_metrics_provider_unittest.cc b/chrome/browser/metrics/chrome_stability_metrics_provider_unittest.cc
index fa454c1899e67814f30273e7c0ffdd06cfc2334d..a23da907f093fd6e16f71d49c88660e255a98736 100644
--- a/chrome/browser/metrics/chrome_stability_metrics_provider_unittest.cc
+++ b/chrome/browser/metrics/chrome_stability_metrics_provider_unittest.cc
@@ -39,7 +39,7 @@ class ChromeStabilityMetricsProviderTest : public testing::Test {
TestingPrefServiceSimple* prefs() { return prefs_.get(); }
private:
- scoped_ptr<TestingPrefServiceSimple> prefs_;
+ std::unique_ptr<TestingPrefServiceSimple> prefs_;
content::TestBrowserThreadBundle thread_bundle_;
DISALLOW_COPY_AND_ASSIGN(ChromeStabilityMetricsProviderTest);
@@ -69,7 +69,7 @@ TEST_F(ChromeStabilityMetricsProviderTest, BrowserChildProcessObserver) {
TEST_F(ChromeStabilityMetricsProviderTest, NotificationObserver) {
ChromeStabilityMetricsProvider provider(prefs());
- scoped_ptr<TestingProfileManager> profile_manager(
+ std::unique_ptr<TestingProfileManager> profile_manager(
new TestingProfileManager(TestingBrowserProcess::GetGlobal()));
EXPECT_TRUE(profile_manager->SetUp());
@@ -77,7 +77,7 @@ TEST_F(ChromeStabilityMetricsProviderTest, NotificationObserver) {
TestingProfile* profile(
profile_manager->CreateTestingProfile("StabilityTestProfile"));
- scoped_ptr<content::MockRenderProcessHostFactory> rph_factory(
+ std::unique_ptr<content::MockRenderProcessHostFactory> rph_factory(
new content::MockRenderProcessHostFactory());
scoped_refptr<content::SiteInstance> site_instance(
content::SiteInstance::Create(profile));

Powered by Google App Engine
This is Rietveld 408576698