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

Unified Diff: third_party/WebKit/Source/core/clipboard/DataObject.cpp

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: Created 3 years, 11 months 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/core/clipboard/DataObject.cpp
diff --git a/third_party/WebKit/Source/core/clipboard/DataObject.cpp b/third_party/WebKit/Source/core/clipboard/DataObject.cpp
index ea267e89f1aeff97fa3a3218b9bda224b6d8c4cf..fcbbe5179b3571131f97acb0eb1783eb22fab864 100644
--- a/third_party/WebKit/Source/core/clipboard/DataObject.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataObject.cpp
@@ -43,7 +43,7 @@ namespace blink {
DataObject* DataObject::createFromPasteboard(PasteMode pasteMode) {
DataObject* dataObject = create();
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
HashSet<String> typesSeen;
#endif
WebClipboard::Buffer buffer = Pasteboard::generalPasteboard()->buffer();
@@ -133,7 +133,7 @@ void DataObject::clearData(const String& type) {
Vector<String> DataObject::types() const {
Vector<String> results;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
HashSet<String> typesSeen;
#endif
bool containsFiles = false;

Powered by Google App Engine
This is Rietveld 408576698