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

Unified Diff: chrome/browser/ui/app_list/app_context_menu_unittest.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 | « chrome/browser/ui/app_list/app_context_menu.h ('k') | chrome/browser/ui/app_list/app_list_model_builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/app_context_menu_unittest.cc
diff --git a/chrome/browser/ui/app_list/app_context_menu_unittest.cc b/chrome/browser/ui/app_list/app_context_menu_unittest.cc
index 2db8878ad283038ad32be7f70b822fab5f3c8f3e..9483db16997083eecde6853af76e1550c7f47e7a 100644
--- a/chrome/browser/ui/app_list/app_context_menu_unittest.cc
+++ b/chrome/browser/ui/app_list/app_context_menu_unittest.cc
@@ -79,7 +79,8 @@ class FakeAppListControllerDelegate :
DISALLOW_COPY_AND_ASSIGN(FakeAppListControllerDelegate);
};
-scoped_ptr<KeyedService> MenuManagerFactory(content::BrowserContext* context) {
+std::unique_ptr<KeyedService> MenuManagerFactory(
+ content::BrowserContext* context) {
return extensions::MenuManagerFactory::BuildServiceInstanceForTesting(
context);
}
@@ -275,9 +276,9 @@ class AppContextMenuTest : public AppListTestBase {
}
private:
- scoped_ptr<KeyedService> menu_manager_;
- scoped_ptr<FakeAppListControllerDelegate> controller_;
- scoped_ptr<FakeAppContextMenuDelegate> menu_delegate_;
+ std::unique_ptr<KeyedService> menu_manager_;
+ std::unique_ptr<FakeAppListControllerDelegate> controller_;
+ std::unique_ptr<FakeAppContextMenuDelegate> menu_delegate_;
DISALLOW_COPY_AND_ASSIGN(AppContextMenuTest);
};
« no previous file with comments | « chrome/browser/ui/app_list/app_context_menu.h ('k') | chrome/browser/ui/app_list/app_list_model_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698