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

Unified Diff: PRESUBMIT.py

Issue 2953473002: Use leveldb_env::OpenDB() to open leveldb databases. (Closed)
Patch Set: Rebase; address comments Created 3 years, 5 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: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index fc07745f03e6be082dcde4964da3fb2028706d6b..547ae462e38b98948479e2ffcdbcfa5fd0c398ac 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -383,6 +383,18 @@ _BANNED_CPP_FUNCTIONS = (
r'^content[\\\/]public[\\\/]test[\\\/]test_web_ui\.(cc|h)$',
),
),
+ (
+ 'leveldb::DB::Open',
+ (
+ 'Instead of leveldb::DB::Open() use leveldb_env::OpenDB() from',
+ 'third_party/leveldatabase/env_chromium.h. It exposes databases to',
+ "Chrome's tracing, making their memory usage visible.",
+ ),
+ True,
+ (
+ r'^third_party/leveldatabase/.*\.(cc|h)$',
+ ),
+ )
)

Powered by Google App Engine
This is Rietveld 408576698