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

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

Issue 2847983002: Use unique_ptr for Create{ServiceWorkerNetworkProvider,ApplicationCacheHost} (Closed)
Patch Set: addressed comments 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 b3f7b8861882ee647dd305a33a1caa13d712d203..07cb12537070ca99f3cab5b5fd25e575de895d9e 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() {
« no previous file with comments | « content/renderer/shared_worker/embedded_shared_worker_stub.cc ('k') | third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698