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

Unified Diff: content/child/service_worker/service_worker_dispatcher_unittest.cc

Issue 1865913005: Nuke WebPassOwnPtr<T> and replace it with std::unique_ptr<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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: content/child/service_worker/service_worker_dispatcher_unittest.cc
diff --git a/content/child/service_worker/service_worker_dispatcher_unittest.cc b/content/child/service_worker/service_worker_dispatcher_unittest.cc
index 6d6f939029ba3b3371677abd84c80d6dcf1d647e..8149885a382b8ba95814ea7a1b27c106bd3b11c1 100644
--- a/content/child/service_worker/service_worker_dispatcher_unittest.cc
+++ b/content/child/service_worker/service_worker_dispatcher_unittest.cc
@@ -125,16 +125,15 @@ class MockWebServiceWorkerProviderClientImpl
dispatcher_->RemoveProviderClient(provider_id_);
}
- void setController(
- blink::WebPassOwnPtr<blink::WebServiceWorker::Handle> handle,
- bool shouldNotifyControllerChange) override {
+ void setController(std::unique_ptr<blink::WebServiceWorker::Handle> handle,
+ bool shouldNotifyControllerChange) override {
// WebPassOwnPtr cannot be owned in Chromium, so drop the handle here.
// The destruction releases ServiceWorkerHandleReference.
is_set_controlled_called_ = true;
}
void dispatchMessageEvent(
- blink::WebPassOwnPtr<blink::WebServiceWorker::Handle> handle,
+ std::unique_ptr<blink::WebServiceWorker::Handle> handle,
const blink::WebString& message,
const blink::WebMessagePortChannelArray& channels) override {
// WebPassOwnPtr cannot be owned in Chromium, so drop the handle here.
« no previous file with comments | « content/child/service_worker/service_worker_dispatcher.cc ('k') | content/child/service_worker/web_service_worker_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698