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

Unified Diff: Source/core/platform/chromium/ChromiumDataObject.cpp

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years 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
« no previous file with comments | « Source/core/page/DOMSelection.cpp ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/chromium/ChromiumDataObject.cpp
diff --git a/Source/core/platform/chromium/ChromiumDataObject.cpp b/Source/core/platform/chromium/ChromiumDataObject.cpp
index feb58e88fba51827360cf75f89c3ab89f0438868..dbb6641f803c1c4bf6bd00bb49766bd1453b28a2 100644
--- a/Source/core/platform/chromium/ChromiumDataObject.cpp
+++ b/Source/core/platform/chromium/ChromiumDataObject.cpp
@@ -31,7 +31,6 @@
#include "config.h"
#include "core/platform/chromium/ChromiumDataObject.h"
-#include "bindings/v8/ExceptionMessages.h"
#include "bindings/v8/ExceptionState.h"
#include "bindings/v8/ExceptionStatePlaceholder.h"
#include "core/dom/DataTransferItem.h"
@@ -100,7 +99,7 @@ PassRefPtr<ChromiumDataObjectItem> ChromiumDataObject::add(const String& data, c
{
RefPtr<ChromiumDataObjectItem> item = ChromiumDataObjectItem::createFromString(type, data);
if (!internalAddStringItem(item)) {
- exceptionState.throwDOMException(NotSupportedError, ExceptionMessages::failedToExecute("add", "DataTransferItemList"));
+ exceptionState.throwDOMException(NotSupportedError, "An item already exists for type '" + type + "'.");
return 0;
}
return item;
« no previous file with comments | « Source/core/page/DOMSelection.cpp ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698