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

Unified Diff: ios/web/app/web_main_loop.mm

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add header 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: ios/web/app/web_main_loop.mm
diff --git a/ios/web/app/web_main_loop.mm b/ios/web/app/web_main_loop.mm
index ac91ba6b9fa39e6e558b29c822c6ed03e9cf3b7e..017ffa40cec97e04fd404dbf42891af4ed5aa0b2 100644
--- a/ios/web/app/web_main_loop.mm
+++ b/ios/web/app/web_main_loop.mm
@@ -82,7 +82,7 @@ void WebMainLoop::MainMessageLoopStart() {
system_monitor_.reset(new base::SystemMonitor);
#endif
// TODO(rohitrao): Do we need PowerMonitor on iOS, or can we get rid of it?
- scoped_ptr<base::PowerMonitorSource> power_monitor_source(
+ std::unique_ptr<base::PowerMonitorSource> power_monitor_source(
new base::PowerMonitorDeviceSource());
power_monitor_.reset(new base::PowerMonitor(std::move(power_monitor_source)));
network_change_notifier_.reset(net::NetworkChangeNotifier::Create());
@@ -130,7 +130,7 @@ int WebMainLoop::CreateThreads() {
// Must be size_t so we can increment it.
for (size_t thread_id = WebThread::UI + 1; thread_id < WebThread::ID_COUNT;
++thread_id) {
- scoped_ptr<WebThreadImpl>* thread_to_start = nullptr;
+ std::unique_ptr<WebThreadImpl>* thread_to_start = nullptr;
base::Thread::Options options;
switch (thread_id) {

Powered by Google App Engine
This is Rietveld 408576698