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

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

Issue 2873293002: Replace ASSERT with DCHECK_EQ as appropriate (Closed)
Patch Set: rebase 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/DataObjectItem.cpp
diff --git a/third_party/WebKit/Source/core/clipboard/DataObjectItem.cpp b/third_party/WebKit/Source/core/clipboard/DataObjectItem.cpp
index 785d4a52974a6d32d5d7450799830512559d7957..25a6b890cbb4b670ff7daf65edb71566a2a5ff94 100644
--- a/third_party/WebKit/Source/core/clipboard/DataObjectItem.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataObjectItem.cpp
@@ -125,7 +125,7 @@ File* DataObjectItem::GetAsFile() const {
return nullptr;
}
- ASSERT(source_ == kPasteboardSource);
+ DCHECK_EQ(source_, kPasteboardSource);
if (GetType() == kMimeTypeImagePng) {
WebBlobInfo blob_info = Platform::Current()->Clipboard()->ReadImage(
WebClipboard::kBufferStandard);
@@ -141,12 +141,12 @@ File* DataObjectItem::GetAsFile() const {
}
String DataObjectItem::GetAsString() const {
- ASSERT(kind_ == kStringKind);
+ DCHECK_EQ(kind_, kStringKind);
if (source_ == kInternalSource)
return data_;
- ASSERT(source_ == kPasteboardSource);
+ DCHECK_EQ(source_, kPasteboardSource);
WebClipboard::Buffer buffer = Pasteboard::GeneralPasteboard()->GetBuffer();
String data;
« no previous file with comments | « third_party/WebKit/Source/core/clipboard/DataObject.cpp ('k') | third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698