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

Unified Diff: components/undo/undo_manager_test.cc

Issue 1917673002: Convert //components/[u-z]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 months 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/undo_manager.cc ('k') | components/url_formatter/url_formatter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « components/undo/undo_manager.cc ('k') | components/url_formatter/url_formatter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698