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

Unified Diff: net/base/mime_util.cc

Issue 6851016: multiple files: Move from DCHECK to DCHECK_EQ (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed trailing whitespace in net/base/mime_util.cc Created 9 years, 8 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
« no previous file with comments | « ipc/ipc_channel_posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mime_util.cc
diff --git a/net/base/mime_util.cc b/net/base/mime_util.cc
index 988922edcfb5550a0d37cc52851e0cea6a80b58d..51bf9643a3641ba24d0436e2ef04781f820ebf9e 100644
--- a/net/base/mime_util.cc
+++ b/net/base/mime_util.cc
@@ -385,8 +385,8 @@ bool MimeUtil::IsSupportedMimeType(const std::string& mime_type) const {
bool MimeUtil::MatchesMimeType(const std::string &mime_type_pattern,
const std::string &mime_type) const {
// verify caller is passing lowercase
- DCHECK(mime_type_pattern == StringToLowerASCII(mime_type_pattern));
- DCHECK(mime_type == StringToLowerASCII(mime_type));
+ DCHECK_EQ(StringToLowerASCII(mime_type_pattern), mime_type_pattern);
+ DCHECK_EQ(StringToLowerASCII(mime_type), mime_type);
// This comparison handles absolute maching and also basic
// wildcards. The plugin mime types could be:
« no previous file with comments | « ipc/ipc_channel_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698