Commit d7c67172 authored by Francois Doray's avatar Francois Doray Committed by Commit Bot

Add PRESUBMIT against usage of deprecated WebThreads.

Bug: 689520
Change-Id: Ie8418bc9afe6f9a106f5fdd85647006722dab50f
Reviewed-on: https://chromium-review.googlesource.com/595872Reviewed-by: default avatarDirk Pranke <dpranke@chromium.org>
Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
Commit-Queue: Francois Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#491041}
parent 3700a086
......@@ -332,7 +332,7 @@ _BANNED_CPP_FUNCTIONS = (
(),
),
(
'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 @@ _BANNED_CPP_FUNCTIONS = (
(),
),
(
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.',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment