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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.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/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index c562cb52582cb6b5d8621582ecb15d381faebce7..e259db673c3f4c6a95f1b3deaa3f377c7a86d807 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -348,7 +348,7 @@ void WebView::resetVisitedLinkState(bool invalidateVisitedLinkHashes) {
}
void WebView::willEnterModalLoop() {
- pageLoadDeferrerStack().append(wrapUnique(new ScopedPageLoadDeferrer()));
+ pageLoadDeferrerStack().append(makeUnique<ScopedPageLoadDeferrer>());
}
void WebView::didExitModalLoop() {
@@ -3903,7 +3903,7 @@ void WebViewImpl::setPageOverlayColor(WebColor color) {
return;
m_pageColorOverlay =
- PageOverlay::create(mainFrameImpl(), wrapUnique(new ColorOverlay(color)));
+ PageOverlay::create(mainFrameImpl(), makeUnique<ColorOverlay>(color));
m_pageColorOverlay->update();
}
« no previous file with comments | « third_party/WebKit/Source/web/WebPepperSocket.cpp ('k') | third_party/WebKit/Source/web/tests/VisualViewportTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698