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

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

Issue 2858963002: Replace ASSERT with DCHECK in core/ (Closed)
Patch Set: WorkerBackingThread 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 558c0b7ee6f874bd345fec658ec8599751ac7aba..2738516710bd335ed2df5c41eca8df85e30a864e 100644
--- a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
@@ -218,7 +218,7 @@ FileList* DataTransfer::files() const {
}
void DataTransfer::setDragImage(Element* image, int x, int y) {
- ASSERT(image);
+ DCHECK(image);
if (!IsForDragAndDrop())
return;
@@ -265,7 +265,7 @@ std::unique_ptr<DragImage> DataTransfer::CreateDragImage(
static ImageResourceContent* GetImageResourceContent(Element* element) {
// Attempt to pull ImageResourceContent from element
- ASSERT(element);
+ DCHECK(element);
LayoutObject* layout_object = element->GetLayoutObject();
if (!layout_object || !layout_object->IsImage())
return 0;
@@ -316,7 +316,7 @@ void DataTransfer::DeclareAndWriteDragImage(Element* element,
void DataTransfer::WriteURL(Node* node, const KURL& url, const String& title) {
if (!data_object_)
return;
- ASSERT(!url.IsEmpty());
+ DCHECK(!url.IsEmpty());
data_object_->SetURLAndTitle(url, title);

Powered by Google App Engine
This is Rietveld 408576698