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

Unified Diff: content/browser/battery_status/battery_monitor_impl_browsertest.cc

Issue 1874893002: Convert //content/browser 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: content/browser/battery_status/battery_monitor_impl_browsertest.cc
diff --git a/content/browser/battery_status/battery_monitor_impl_browsertest.cc b/content/browser/battery_status/battery_monitor_impl_browsertest.cc
index 8e4b6bc89d7cc195165bbd02f9fe667197c374c7..f84da6fd5d08e77076f2ff395c2a21568274cbb6 100644
--- a/content/browser/battery_status/battery_monitor_impl_browsertest.cc
+++ b/content/browser/battery_status/battery_monitor_impl_browsertest.cc
@@ -75,7 +75,7 @@ class BatteryMonitorImplTest : public ContentBrowserTest {
// We keep a raw pointer to the FakeBatteryManager, which we expect to
// remain valid for the lifetime of the BatteryStatusService.
- scoped_ptr<FakeBatteryManager> battery_manager(new FakeBatteryManager(
+ std::unique_ptr<FakeBatteryManager> battery_manager(new FakeBatteryManager(
battery_service_->GetUpdateCallbackForTesting()));
battery_manager_ = battery_manager.get();
@@ -84,7 +84,7 @@ class BatteryMonitorImplTest : public ContentBrowserTest {
void TearDown() override {
battery_service_->SetBatteryManagerForTesting(
- scoped_ptr<device::BatteryStatusManager>());
+ std::unique_ptr<device::BatteryStatusManager>());
battery_manager_ = NULL;
}

Powered by Google App Engine
This is Rietveld 408576698