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

Unified Diff: PRESUBMIT.py

Issue 2841173002: Add presubmit check against usage of BrowserThread::GetBlockingPool(). (Closed)
Patch Set: fix Created 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 9d29982a0432e03586182154df67edb05ade4327..2bb70364529d86ea084fe9119449e4475bcd85bd 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -319,6 +319,16 @@ _BANNED_CPP_FUNCTIONS = (
True,
(),
),
+ (
+ 'BrowserThread::GetBlockingPool',
+ (
+ 'Use base/task_scheduler/post_task.h instead of the blocking pool. See',
+ 'mapping between both APIs in content/public/browser/browser_thread.h.',
+ 'For questions, contact base/task_scheduler/OWNERS.',
+ ),
+ True,
+ (),
+ ),
)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698