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

Side by Side Diff: PRESUBMIT.py

Issue 2841173002: Add presubmit check against usage of BrowserThread::GetBlockingPool(). (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Top-level presubmit script for Chromium. 5 """Top-level presubmit script for Chromium.
6 6
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
8 for more details about the presubmit API built into depot_tools. 8 for more details about the presubmit API built into depot_tools.
9 """ 9 """
10 10
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 ), 311 ),
312 ), 312 ),
313 ( 313 (
314 '#pragma comment(lib,', 314 '#pragma comment(lib,',
315 ( 315 (
316 'Specify libraries to link with in build files and not in the source.', 316 'Specify libraries to link with in build files and not in the source.',
317 ), 317 ),
318 True, 318 True,
319 (), 319 (),
320 ), 320 ),
321 (
322 'BrowserThread::GetBlockingPool',
323 (
324 'Use base/task_scheduler/post_task.h instead of the blocking pool.',
325 ),
326 True,
gab 2017/04/28 01:58:24 Does True here mean "block CQ" or "warning only"?
fdoray 2017/05/01 17:39:03 Discussed offline. If a components already has co
327 (),
328 ),
321 ) 329 )
322 330
323 331
324 _IPC_ENUM_TRAITS_DEPRECATED = ( 332 _IPC_ENUM_TRAITS_DEPRECATED = (
325 'You are using IPC_ENUM_TRAITS() in your code. It has been deprecated.\n' 333 'You are using IPC_ENUM_TRAITS() in your code. It has been deprecated.\n'
326 'See http://www.chromium.org/Home/chromium-security/education/security-tips- for-ipc') 334 'See http://www.chromium.org/Home/chromium-security/education/security-tips- for-ipc')
327 335
328 336
329 _VALID_OS_MACROS = ( 337 _VALID_OS_MACROS = (
330 # Please keep sorted. 338 # Please keep sorted.
(...skipping 2119 matching lines...) Expand 10 before | Expand all | Expand 10 after
2450 output_api, 2458 output_api,
2451 json_url='http://chromium-status.appspot.com/current?format=json')) 2459 json_url='http://chromium-status.appspot.com/current?format=json'))
2452 2460
2453 results.extend( 2461 results.extend(
2454 input_api.canned_checks.CheckPatchFormatted(input_api, output_api)) 2462 input_api.canned_checks.CheckPatchFormatted(input_api, output_api))
2455 results.extend(input_api.canned_checks.CheckChangeHasBugField( 2463 results.extend(input_api.canned_checks.CheckChangeHasBugField(
2456 input_api, output_api)) 2464 input_api, output_api))
2457 results.extend(input_api.canned_checks.CheckChangeHasDescription( 2465 results.extend(input_api.canned_checks.CheckChangeHasDescription(
2458 input_api, output_api)) 2466 input_api, output_api))
2459 return results 2467 return results
OLDNEW
« 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