Add PRESUBMIT against usage of deprecated WebThreads.
Bug: 689520
Change-Id: Ie8418bc9afe6f9a106f5fdd85647006722dab50f
Reviewed-on: https://chromium-review.googlesource.com/595872
Reviewed-by: Dirk Pranke <[email protected]>
Reviewed-by: Gabriel Charette <[email protected]>
Commit-Queue: Francois Doray <[email protected]>
Cr-Commit-Position: refs/heads/master@{#491041}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 24150a9c..1161de84 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -332,7 +332,7 @@
(),
),
(
- 'BrowserThread::GetBlockingPool',
+ r'/(WebThread|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.',
@@ -342,7 +342,8 @@
(),
),
(
- r'/BrowserThread::(FILE|FILE_USER_BLOCKING|DB|PROCESS_LAUNCHER|CACHE)',
+ r'/(WebThread|BrowserThread)::'
+ r'(FILE|FILE_USER_BLOCKING|DB|PROCESS_LAUNCHER|CACHE)',
(
'The non-UI/IO BrowserThreads are deprecated, please migrate this',
'code to TaskScheduler. See https://goo.gl/mDSxKl for details.',