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

Unified Diff: services/shell/background/tests/background_shell_unittest.cc

Issue 2259823003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « services/file/file_service.cc ('k') | services/shell/public/cpp/interface_registry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/background/tests/background_shell_unittest.cc
diff --git a/services/shell/background/tests/background_shell_unittest.cc b/services/shell/background/tests/background_shell_unittest.cc
index b73c41ba685e386a2b2e429c14f48e1f980cdf6d..ca3bdb370932ae3a54fbc0b1707b62726a99f6dd 100644
--- a/services/shell/background/tests/background_shell_unittest.cc
+++ b/services/shell/background/tests/background_shell_unittest.cc
@@ -32,7 +32,7 @@ class ServiceImpl : public Service {
std::unique_ptr<TestCatalogStore> BuildTestCatalogStore() {
std::unique_ptr<base::ListValue> apps(new base::ListValue);
apps->Append(BuildPermissiveSerializedAppInfo(kTestName, "test"));
- return base::WrapUnique(new TestCatalogStore(std::move(apps)));
+ return base::MakeUnique<TestCatalogStore>(std::move(apps));
}
void SetFlagAndRunClosure(bool* flag, const base::Closure& closure) {
« no previous file with comments | « services/file/file_service.cc ('k') | services/shell/public/cpp/interface_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698