Index: chrome/browser/extensions/extension_action_test_util.cc |
diff --git a/chrome/browser/extensions/extension_action_test_util.cc b/chrome/browser/extensions/extension_action_test_util.cc |
index e622d8e3d9967342e88158ca9d1c5dafaf6de63e..b5104ff2b0b58df5fdf3c875bc64350aa7d846b4 100644 |
--- a/chrome/browser/extensions/extension_action_test_util.cc |
+++ b/chrome/browser/extensions/extension_action_test_util.cc |
@@ -4,7 +4,9 @@ |
#include "chrome/browser/extensions/extension_action_test_util.h" |
-#include "base/memory/scoped_ptr.h" |
+#include <memory> |
+ |
+#include "base/memory/ptr_util.h" |
#include "base/run_loop.h" |
#include "chrome/browser/extensions/extension_action.h" |
#include "chrome/browser/extensions/extension_action_manager.h" |
@@ -77,8 +79,9 @@ size_t GetPageActionCount(content::WebContents* web_contents, |
} |
// Creates a new ToolbarActionsModel for the given |context|. |
-scoped_ptr<KeyedService> BuildToolbarModel(content::BrowserContext* context) { |
- return make_scoped_ptr( |
+std::unique_ptr<KeyedService> BuildToolbarModel( |
+ content::BrowserContext* context) { |
+ return base::WrapUnique( |
new ToolbarActionsModel(Profile::FromBrowserContext(context), |
extensions::ExtensionPrefs::Get(context))); |
} |