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

Unified Diff: components/update_client/action.cc

Issue 2521063004: Replace ptr.reset with std::move in src/components (Closed)
Patch Set: Created 4 years, 1 month 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 | « components/storage_monitor/storage_monitor_mac.mm ('k') | components/update_client/action_update.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/action.cc
diff --git a/components/update_client/action.cc b/components/update_client/action.cc
index 39d15d8b262bc8717a0fe048288a27fe9bc58a08..7fab8a8d8edb880fe149dbc99e63a0bc5ce26e81 100644
--- a/components/update_client/action.cc
+++ b/components/update_client/action.cc
@@ -145,7 +145,7 @@ void ActionImpl::UpdateCrx() {
FROM_HERE, base::Bind(&Action::Run, base::Unretained(update_action.get()),
update_context_, callback_));
- update_context_->current_action.reset(update_action.release());
+ update_context_->current_action = std::move(update_action);
}
void ActionImpl::UpdateCrxComplete(CrxUpdateItem* item) {
@@ -177,7 +177,7 @@ void ActionImpl::UpdateCrxComplete(CrxUpdateItem* item) {
FROM_HERE, base::Bind(&Action::Run, base::Unretained(action_wait.get()),
update_context_, callback_));
- update_context_->current_action.reset(action_wait.release());
+ update_context_->current_action = std::move(action_wait);
}
}
« no previous file with comments | « components/storage_monitor/storage_monitor_mac.mm ('k') | components/update_client/action_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698