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

Unified Diff: third_party/WebKit/Source/core/editing/FrameSelection.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/editing/FrameSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
index 185a0f6caf986640bc58b4e94bc742f80fac2fa0..80ffa65fe2d2bc6b0e051c4fa3fee091bc0927ac 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -1315,9 +1315,9 @@ GranularityStrategy* FrameSelection::granularityStrategy() {
return m_granularityStrategy.get();
if (strategyType == SelectionStrategy::Direction)
- m_granularityStrategy = wrapUnique(new DirectionGranularityStrategy());
+ m_granularityStrategy = makeUnique<DirectionGranularityStrategy>();
else
- m_granularityStrategy = wrapUnique(new CharacterGranularityStrategy());
+ m_granularityStrategy = makeUnique<CharacterGranularityStrategy>();
return m_granularityStrategy.get();
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698