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

Unified Diff: components/update_client/action_update.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/update_client/action.cc ('k') | components/update_client/update_engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/action_update.cc
diff --git a/components/update_client/action_update.cc b/components/update_client/action_update.cc
index be64b23288acc769aeee89cd14785ef8fb7fa0e4..3888d7c1214a56560556fffc582849f512fa3f01 100644
--- a/components/update_client/action_update.cc
+++ b/components/update_client/action_update.cc
@@ -248,7 +248,7 @@ void ActionUpdateDiff::TryUpdateFull() {
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);
}
bool ActionUpdateDiff::IsBackgroundDownload(const CrxUpdateItem* item) {
« no previous file with comments | « components/update_client/action.cc ('k') | components/update_client/update_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698