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

Unified Diff: extensions/browser/event_listener_map_unittest.cc

Issue 2252373002: 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 | « extensions/browser/api/usb/usb_apitest.cc ('k') | extensions/browser/event_router_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/event_listener_map_unittest.cc
diff --git a/extensions/browser/event_listener_map_unittest.cc b/extensions/browser/event_listener_map_unittest.cc
index 4391b2cf816f8182551ec972a293a7629cfe92a6..b308f18ba4579042f275e960ea1d78b5ea60b735 100644
--- a/extensions/browser/event_listener_map_unittest.cc
+++ b/extensions/browser/event_listener_map_unittest.cc
@@ -69,9 +69,9 @@ class EventListenerMapTest : public testing::Test {
const GURL& url) {
EventFilteringInfo info;
info.SetURL(url);
- std::unique_ptr<Event> result(new Event(
- events::FOR_TEST, event_name, base::WrapUnique(new ListValue()), NULL,
- GURL(), EventRouter::USER_GESTURE_UNKNOWN, info));
+ std::unique_ptr<Event> result(
+ new Event(events::FOR_TEST, event_name, base::MakeUnique<ListValue>(),
+ NULL, GURL(), EventRouter::USER_GESTURE_UNKNOWN, info));
return result;
}
« no previous file with comments | « extensions/browser/api/usb/usb_apitest.cc ('k') | extensions/browser/event_router_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698