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

Unified Diff: components/bookmarks/test/test_bookmark_client.h

Issue 1906973002: Convert //components/bookmarks 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
Index: components/bookmarks/test/test_bookmark_client.h
diff --git a/components/bookmarks/test/test_bookmark_client.h b/components/bookmarks/test/test_bookmark_client.h
index a97019bc8447b4047955074bb9ea244796eda257..b5206f0da53b856bc6a854475d8b1b49578327be 100644
--- a/components/bookmarks/test/test_bookmark_client.h
+++ b/components/bookmarks/test/test_bookmark_client.h
@@ -7,8 +7,9 @@
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/bookmarks/browser/bookmark_client.h"
namespace bookmarks {
@@ -21,11 +22,11 @@ class TestBookmarkClient : public BookmarkClient {
~TestBookmarkClient() override;
// Returns a new BookmarkModel using a TestBookmarkClient.
- static scoped_ptr<BookmarkModel> CreateModel();
+ static std::unique_ptr<BookmarkModel> CreateModel();
// Returns a new BookmarkModel using |client|.
- static scoped_ptr<BookmarkModel> CreateModelWithClient(
- scoped_ptr<BookmarkClient> client);
+ static std::unique_ptr<BookmarkModel> CreateModelWithClient(
+ std::unique_ptr<BookmarkClient> client);
// Sets the list of extra nodes to be returned by the next call to
// CreateModel() or GetLoadExtraNodesCallback().
« no previous file with comments | « components/bookmarks/managed/managed_bookmarks_tracker_unittest.cc ('k') | components/bookmarks/test/test_bookmark_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698