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

Unified Diff: extensions/browser/api/alarms/alarm_manager.cc

Issue 2551723002: Replace unique_ptr.reset/release with std::move under src/extensions (Closed)
Patch Set: Created 4 years 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 | « no previous file | extensions/browser/api/cast_channel/cast_message_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/alarms/alarm_manager.cc
diff --git a/extensions/browser/api/alarms/alarm_manager.cc b/extensions/browser/api/alarms/alarm_manager.cc
index 626c4ce6698f2650ae73c8f28f8ceb788c02c750..7b4cc11e636d347d301dcf2481e994d9743b8d4e 100644
--- a/extensions/browser/api/alarms/alarm_manager.cc
+++ b/extensions/browser/api/alarms/alarm_manager.cc
@@ -309,7 +309,7 @@ void AlarmManager::WriteToStorage(const std::string& extension_id) {
if (list != alarms_.end())
alarms = AlarmsToValue(list->second);
else
- alarms.reset(AlarmsToValue(AlarmList()).release());
+ alarms = AlarmsToValue(AlarmList());
storage->SetExtensionValue(extension_id, kRegisteredAlarms,
std::move(alarms));
}
« no previous file with comments | « no previous file | extensions/browser/api/cast_channel/cast_message_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698