[ServiceWorker] Remove an unnecessary DCHECK
In the implementations of
ServiceWorkerRegistrationObjectHost.{SetNavigationPreloadHeader,EnableNavigationPreload},
if
ServiceWorkerStorage::{UpdateNavigationPreloadHeader,UpdateNavigationPreloadEnabled}
failed, a ServiceWorkerErrorType::kUnknown error code is sent back to
Blink side, over there it's mapped as an ExceptionCode::kUnknownError to
construct a DOMException to be exported to JavaScript context.
This is an acceptable behavior, as all of other core DOMException codes
are not appropriate to indicate such an storage access failure, and
we're already putting an error message "Failed to access storage." into
the JavaScript DOMException mentioned above.
Based on above explanations, this CL removes an unnecessary DCHECK
against the kUnKnownError in Blink side.
BUG=807239
Change-Id: Ic2222e264139abc000f5a8894bb0b33932b5335d
Reviewed-on: https://chromium-review.googlesource.com/908059Reviewed-by:
Matt Falkenhagen <falken@chromium.org>
Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Han Leon <leon.han@intel.com>
Cr-Commit-Position: refs/heads/master@{#536029}
Showing
Please register or sign in to comment