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

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

Issue 2896443003: Replace remaining ASSERT with DCHECK/_EQ as appropriate (Closed)
Patch Set: Created 3 years, 7 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/DataTransfer.cpp
diff --git a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
index 17e594029e9a4086bb9cad75ef71833679ed45be..c0e335f7a7f8234807ffbe243a70ea060dab7a1f 100644
--- a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
@@ -355,7 +355,7 @@ void DataTransfer::WriteSelection(const FrameSelection& selection) {
void DataTransfer::SetAccessPolicy(DataTransferAccessPolicy policy) {
// once you go numb, can never go back
- ASSERT(policy_ != kDataTransferNumb || policy == kDataTransferNumb);
+ DCHECK(policy_ != kDataTransferNumb || policy == kDataTransferNumb);
policy_ = policy;
}
@@ -386,7 +386,7 @@ DragOperation DataTransfer::SourceOperation() const {
DragOperation DataTransfer::DestinationOperation() const {
DragOperation op = ConvertEffectAllowedToDragOperation(drop_effect_);
- ASSERT(op == kDragOperationCopy || op == kDragOperationNone ||
+ DCHECK(op == kDragOperationCopy || op == kDragOperationNone ||
op == kDragOperationLink ||
op == (DragOperation)(kDragOperationGeneric | kDragOperationMove) ||
op == kDragOperationEvery);

Powered by Google App Engine
This is Rietveld 408576698