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

Unified Diff: content/browser/indexed_db/leveldb/leveldb_database.cc

Issue 311263014: IndexedDB: Fix trivial cpplint.py errors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 6 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: 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()) {}
« no previous file with comments | « content/browser/indexed_db/indexed_db_value.h ('k') | content/browser/indexed_db/mock_indexed_db_callbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698