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

Unified Diff: third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp

Issue 2909613002: Replaced usage of RefPtr::Release with std::move wraps. (Closed)
Patch Set: Created 3 years, 7 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/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
diff --git a/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp b/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
index c8cdd80d54ec9cc20e0e1125343a1133dd5bd41c..cd24f367518f57aa8fb1a38d13a686b23650bf72 100644
--- a/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
+++ b/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
@@ -174,7 +174,7 @@ void ServiceWorkerRegistrationNotifications::PrepareShow(
RefPtr<SecurityOrigin> origin = GetExecutionContext()->GetSecurityOrigin();
NotificationResourcesLoader* loader = new NotificationResourcesLoader(
WTF::Bind(&ServiceWorkerRegistrationNotifications::DidLoadResources,
- WrapWeakPersistent(this), origin.Release(), data,
+ WrapWeakPersistent(this), std::move(origin), data,
WTF::Passed(std::move(callbacks))));
loaders_.insert(loader);
loader->Start(GetExecutionContext(), data);

Powered by Google App Engine
This is Rietveld 408576698