| Index: third_party/WebKit/Source/modules/background_sync/SyncError.cpp
|
| diff --git a/third_party/WebKit/Source/modules/background_sync/SyncError.cpp b/third_party/WebKit/Source/modules/background_sync/SyncError.cpp
|
| deleted file mode 100644
|
| index b06769f7e267f1e424f7f9b999b3ffa58b102f68..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/Source/modules/background_sync/SyncError.cpp
|
| +++ /dev/null
|
| @@ -1,30 +0,0 @@
|
| -// Copyright 2015 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "modules/background_sync/SyncError.h"
|
| -
|
| -#include "core/dom/DOMException.h"
|
| -#include "core/dom/ExceptionCode.h"
|
| -
|
| -namespace blink {
|
| -
|
| -DOMException* SyncError::take(ScriptPromiseResolver*,
|
| - const WebSyncError& webError) {
|
| - switch (webError.errorType) {
|
| - case WebSyncError::ErrorTypeAbort:
|
| - return DOMException::create(AbortError, webError.message);
|
| - case WebSyncError::ErrorTypeNoPermission:
|
| - return DOMException::create(InvalidAccessError, webError.message);
|
| - case WebSyncError::ErrorTypeNotFound:
|
| - return DOMException::create(NotFoundError, webError.message);
|
| - case WebSyncError::ErrorTypePermissionDenied:
|
| - return DOMException::create(PermissionDeniedError, webError.message);
|
| - case WebSyncError::ErrorTypeUnknown:
|
| - return DOMException::create(UnknownError, webError.message);
|
| - }
|
| - ASSERT_NOT_REACHED();
|
| - return DOMException::create(UnknownError);
|
| -}
|
| -
|
| -} // namespace blink
|
|
|