| 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);
|
| }
|
| }
|
|
|