Commit 620f4c6d authored by shimazu's avatar shimazu Committed by Commit bot

ServiceWorker: Change the return value of ServiceWorkerRegistration::unregister to boolean (4/4)

BUG=390894
TEST=N/A

Review URL: https://codereview.chromium.org/509283003

Cr-Commit-Position: refs/heads/master@{#293154}
parent 91f162a1
...@@ -268,12 +268,8 @@ void ServiceWorkerDispatcher::OnUnregistered( ...@@ -268,12 +268,8 @@ void ServiceWorkerDispatcher::OnUnregistered(
DCHECK(callbacks); DCHECK(callbacks);
if (!callbacks) if (!callbacks)
return; return;
#ifdef DISABLE_SERVICEWORKER_UNREGISTER_RESOLVE_TO_BOOLEAN
callbacks->onSuccess(NULL);
#else
bool is_success = true; bool is_success = true;
callbacks->onSuccess(&is_success); callbacks->onSuccess(&is_success);
#endif
pending_unregistration_callbacks_.Remove(request_id); pending_unregistration_callbacks_.Remove(request_id);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment