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

Unified Diff: chrome/browser/extensions/menu_manager_factory.cc

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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: chrome/browser/extensions/menu_manager_factory.cc
diff --git a/chrome/browser/extensions/menu_manager_factory.cc b/chrome/browser/extensions/menu_manager_factory.cc
index ef06d7fb710828572f8e5353bd5a01db882e9f84..8a6d8aed0d55169088a470a7728371dd71f05f1a 100644
--- a/chrome/browser/extensions/menu_manager_factory.cc
+++ b/chrome/browser/extensions/menu_manager_factory.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/extensions/menu_manager_factory.h"
+#include "base/memory/ptr_util.h"
#include "chrome/browser/extensions/menu_manager.h"
#include "chrome/browser/profiles/profile.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
@@ -26,9 +27,10 @@ MenuManagerFactory* MenuManagerFactory::GetInstance() {
}
// static
-scoped_ptr<KeyedService> MenuManagerFactory::BuildServiceInstanceForTesting(
+std::unique_ptr<KeyedService>
+MenuManagerFactory::BuildServiceInstanceForTesting(
content::BrowserContext* context) {
- return make_scoped_ptr(GetInstance()->BuildServiceInstanceFor(context));
+ return base::WrapUnique(GetInstance()->BuildServiceInstanceFor(context));
}
MenuManagerFactory::MenuManagerFactory()
« no previous file with comments | « chrome/browser/extensions/menu_manager_factory.h ('k') | chrome/browser/extensions/menu_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698