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

Unified Diff: third_party/WebKit/Source/core/events/KeyboardEvent.cpp

Issue 2494333002: Replace wrapUnique(new T(args)) by makeUnique<T>(args) in Blink (Closed)
Patch Set: Drop redundant WTF:: Created 4 years, 1 month 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: third_party/WebKit/Source/core/events/KeyboardEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
index 140f0829fb282e3b6448d57637e1e34bf869d8f4..ed4874279a25fee3e14338e647b6fb64e540d61b 100644
--- a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
+++ b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
@@ -97,7 +97,7 @@ KeyboardEvent::KeyboardEvent(const WebKeyboardEvent& key,
static_cast<PlatformEvent::Modifiers>(key.modifiers),
key.timeStampSeconds,
InputDeviceCapabilities::doesntFireTouchEventsSourceCapabilities()),
- m_keyEvent(wrapUnique(new WebKeyboardEvent(key))),
+ m_keyEvent(makeUnique<WebKeyboardEvent>(key)),
// TODO(crbug.com/482880): Fix this initialization to lazy initialization.
m_code(Platform::current()->domCodeStringFromEnum(key.domCode)),
m_key(Platform::current()->domKeyStringFromEnum(key.domKey)),
« no previous file with comments | « third_party/WebKit/Source/core/events/EventFactory.h ('k') | third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698