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

Unified Diff: third_party/WebKit/Source/web/LocalFrameClientImpl.cpp

Issue 2847983002: Use unique_ptr for Create{ServiceWorkerNetworkProvider,ApplicationCacheHost} (Closed)
Patch Set: . Created 3 years, 8 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
Index: third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp b/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
index 914d1f3c76b88b5cd02b5a207f9d37e96682bfee..68939ce6904acfbd9a12d603fe96a372c413f0ab 100644
--- a/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
+++ b/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
@@ -907,7 +907,7 @@ std::unique_ptr<WebServiceWorkerProvider>
LocalFrameClientImpl::CreateServiceWorkerProvider() {
if (!web_frame_->Client())
return nullptr;
- return WTF::WrapUnique(web_frame_->Client()->CreateServiceWorkerProvider());
+ return web_frame_->Client()->CreateServiceWorkerProvider();
}
ContentSettingsClient& LocalFrameClientImpl::GetContentSettingsClient() {
@@ -924,8 +924,7 @@ LocalFrameClientImpl::CreateApplicationCacheHost(
WebApplicationCacheHostClient* client) {
if (!web_frame_->Client())
return nullptr;
- return WTF::WrapUnique(
- web_frame_->Client()->CreateApplicationCacheHost(client));
+ return web_frame_->Client()->CreateApplicationCacheHost(client);
}
void LocalFrameClientImpl::DispatchDidChangeManifest() {

Powered by Google App Engine
This is Rietveld 408576698