Index: components/undo/undo_manager_test.cc |
diff --git a/components/undo/undo_manager_test.cc b/components/undo/undo_manager_test.cc |
index 21efdb72b2f76dd7a6488be032190e721f455ce6..19bbdc330715c2dabf89a5f61c37b486f0eb4279 100644 |
--- a/components/undo/undo_manager_test.cc |
+++ b/components/undo/undo_manager_test.cc |
@@ -2,9 +2,11 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "components/undo/undo_manager.h" |
+ |
#include "base/auto_reset.h" |
#include "base/macros.h" |
-#include "components/undo/undo_manager.h" |
+#include "base/memory/ptr_util.h" |
#include "components/undo/undo_manager_observer.h" |
#include "components/undo/undo_operation.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -86,7 +88,7 @@ void TestUndoService::Redo() { |
} |
void TestUndoService::TriggerOperation() { |
- undo_manager_.AddUndoOperation(make_scoped_ptr(new TestUndoOperation(this))); |
+ undo_manager_.AddUndoOperation(base::WrapUnique(new TestUndoOperation(this))); |
} |
void TestUndoService::RecordUndoCall() { |