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

Unified Diff: third_party/WebKit/Source/modules/background_sync/SyncError.cpp

Issue 2481393002: [background-sync] Remove WebSyncError and SyncCallbacks (Closed)
Patch Set: Remove stray SyncError declaration Created 4 years, 1 month 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/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

Powered by Google App Engine
This is Rietveld 408576698