diff options
author | kushi.p@gmail.com <kushi.p@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-13 22:13:33 +0000 |
---|---|---|
committer | kushi.p@gmail.com <kushi.p@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-13 22:13:33 +0000 |
commit | 88563f68ec16520622e52672f352bee026865557 (patch) | |
tree | e7e5dc554372b4bc695a7dad9908732a6f527156 /base/mac/foundation_util.mm | |
parent | 6275aa9b9c9237147d7a2dc74a60da5bd68a21ef (diff) | |
download | chromium_src-88563f68ec16520622e52672f352bee026865557.zip chromium_src-88563f68ec16520622e52672f352bee026865557.tar.gz chromium_src-88563f68ec16520622e52672f352bee026865557.tar.bz2 |
Continuing with DCHECK() replacement. Switching to DCHECK_GT for better debug of broken contracts
BUG=58409
Review URL: http://codereview.chromium.org/6690002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77977 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/mac/foundation_util.mm')
-rw-r--r-- | base/mac/foundation_util.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/mac/foundation_util.mm b/base/mac/foundation_util.mm index 7a777dd..146f2ca 100644 --- a/base/mac/foundation_util.mm +++ b/base/mac/foundation_util.mm @@ -168,7 +168,7 @@ FilePath GetAppBundlePath(const FilePath& exec_name) { // Don't prepend '/' to the first component. std::vector<std::string>::const_iterator it = components.begin(); std::string bundle_name = *it; - DCHECK(it->length() > 0); + DCHECK_GT(it->length(), 0U); // If the first component ends in ".app", we're already done. if (it->length() > kExtLength && !it->compare(it->length() - kExtLength, kExtLength, kExt, kExtLength)) @@ -181,7 +181,7 @@ FilePath GetAppBundlePath(const FilePath& exec_name) { // Go through the remaining components. for (++it; it != components.end(); ++it) { - DCHECK(it->length() > 0); + DCHECK_GT(it->length(), 0U); bundle_name += *it; |