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

Unified Diff: components/undo/undo_manager.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 5 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 | « components/undo/bookmark_undo_service.cc ('k') | components/update_client/action_update_check.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/undo/undo_manager.cc
diff --git a/components/undo/undo_manager.cc b/components/undo/undo_manager.cc
index 28a8ab2c25dc850eff28be402d7568807fa17305..e27e948b671fd57f8adc55eacf6f7fdc9d88de36 100644
--- a/components/undo/undo_manager.cc
+++ b/components/undo/undo_manager.cc
@@ -4,6 +4,8 @@
#include "components/undo/undo_manager.h"
+#include <utility>
+
#include "base/auto_reset.h"
#include "base/logging.h"
#include "components/undo/undo_manager_observer.h"
@@ -88,10 +90,10 @@ void UndoManager::AddUndoOperation(scoped_ptr<UndoOperation> operation) {
}
if (group_actions_count_) {
- pending_grouped_action_->AddOperation(operation.Pass());
+ pending_grouped_action_->AddOperation(std::move(operation));
} else {
UndoGroup* new_action = new UndoGroup();
- new_action->AddOperation(operation.Pass());
+ new_action->AddOperation(std::move(operation));
AddUndoGroup(new_action);
}
}
« no previous file with comments | « components/undo/bookmark_undo_service.cc ('k') | components/update_client/action_update_check.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698