Index: content/browser/indexed_db/leveldb/leveldb_database.cc |
diff --git a/content/browser/indexed_db/leveldb/leveldb_database.cc b/content/browser/indexed_db/leveldb/leveldb_database.cc |
index 9ef3929a50aba9a81b9fcc498cf4295248b1194e..16f4fc79c61b11289ff3733ed6eda9f0f4a7dbff 100644 |
--- a/content/browser/indexed_db/leveldb/leveldb_database.cc |
+++ b/content/browser/indexed_db/leveldb/leveldb_database.cc |
@@ -127,7 +127,7 @@ class LockImpl : public LevelDBLock { |
DISALLOW_COPY_AND_ASSIGN(LockImpl); |
}; |
-} |
+} // namespace |
scoped_ptr<LevelDBLock> LevelDBDatabase::LockForTesting( |
const base::FilePath& file_name) { |
@@ -190,7 +190,7 @@ static void ParseAndHistogramIOErrorDetails(const std::string& histogram_name, |
std::string error_histogram_name(histogram_name); |
if (result == leveldb_env::METHOD_AND_PFE) { |
- DCHECK(error < 0); |
+ DCHECK_LT(error, 0); |
error_histogram_name.append(std::string(".PFE.") + |
leveldb_env::MethodIDToString(method)); |
base::LinearHistogram::FactoryGet( |
@@ -215,7 +215,7 @@ static void ParseAndHistogramCorruptionDetails( |
const std::string& histogram_name, |
const leveldb::Status& status) { |
int error = leveldb_env::GetCorruptionCode(status); |
- DCHECK(error >= 0); |
+ DCHECK_GE(error, 0); |
std::string corruption_histogram_name(histogram_name); |
corruption_histogram_name.append(".Corruption"); |
const int kNumPatterns = leveldb_env::GetNumCorruptionCodes(); |
@@ -396,7 +396,7 @@ class IteratorImpl : public LevelDBIterator { |
DISALLOW_COPY_AND_ASSIGN(IteratorImpl); |
}; |
-} |
+} // namespace |
IteratorImpl::IteratorImpl(scoped_ptr<leveldb::Iterator> it) |
: iterator_(it.Pass()) {} |