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

Unified Diff: content/browser/power_usage_monitor_impl_unittest.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
« no previous file with comments | « content/browser/power_usage_monitor_impl.cc ('k') | content/browser/ppapi_plugin_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/power_usage_monitor_impl_unittest.cc
diff --git a/content/browser/power_usage_monitor_impl_unittest.cc b/content/browser/power_usage_monitor_impl_unittest.cc
index 2aac58594893f09904f325e01c788fc87055ac08..1b3446f39bf325df717b66b82c5ff9da5f8c8407 100644
--- a/content/browser/power_usage_monitor_impl_unittest.cc
+++ b/content/browser/power_usage_monitor_impl_unittest.cc
@@ -65,7 +65,7 @@ class PowerUsageMonitorTest : public testing::Test {
void SetUp() override {
monitor_.reset(new PowerUsageMonitor);
// PowerUsageMonitor assumes ownership.
- scoped_ptr<SystemInterfaceForTest> test_interface(
+ std::unique_ptr<SystemInterfaceForTest> test_interface(
new SystemInterfaceForTest());
system_interface_ = test_interface.get();
monitor_->SetSystemInterfaceForTest(std::move(test_interface));
@@ -87,7 +87,7 @@ class PowerUsageMonitorTest : public testing::Test {
NOTIFICATION_RENDERER_PROCESS_CLOSED, kDummyRenderProcessHostID);
}
- scoped_ptr<PowerUsageMonitor> monitor_;
+ std::unique_ptr<PowerUsageMonitor> monitor_;
SystemInterfaceForTest* system_interface_;
TestBrowserThreadBundle thread_bundle_;
};
« no previous file with comments | « content/browser/power_usage_monitor_impl.cc ('k') | content/browser/ppapi_plugin_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698