| Index: components/sync/PRESUBMIT.py
|
| diff --git a/components/sync/PRESUBMIT.py b/components/sync/PRESUBMIT.py
|
| index b9b669f7be151dfa7def85e517c6c12109d36e47..276449b4a40d52ef50f644a703b0a95210e7f9aa 100644
|
| --- a/components/sync/PRESUBMIT.py
|
| +++ b/components/sync/PRESUBMIT.py
|
| @@ -61,6 +61,10 @@ MODEL_TYPE_FILE_NAME = 'model_type.cc'
|
|
|
| SYNC_SOURCE_FILES = (r'^components[\\/]sync[\\/].*\.(cc|h)$',)
|
|
|
| +# The wrapper around lint that is called below disables a set of filters if the
|
| +# passed filter evaluates to false. Pass a junk filter to avoid this behavior.
|
| +LINT_FILTERS = ['+fake/filter']
|
| +
|
| def CheckModelTypeInfoMap(input_api, output_api, model_type_file):
|
| """Checks the kModelTypeInfoMap in model_type.cc follows conventions.
|
| Checks that the kModelTypeInfoMap follows the below rules:
|
| @@ -366,9 +370,9 @@ def FieldNumberToPrototypeString(field_number):
|
| def CheckChangeLintsClean(input_api, output_api):
|
| source_filter = lambda x: input_api.FilterSourceFile(
|
| x, white_list=SYNC_SOURCE_FILES, black_list=None)
|
| -
|
| return input_api.canned_checks.CheckChangeLintsClean(
|
| - input_api, output_api, source_filter, lint_filters=[], verbose_level=1)
|
| + input_api, output_api, source_filter, lint_filters=LINT_FILTERS,
|
| + verbose_level=1)
|
|
|
| def CheckChanges(input_api, output_api):
|
| results = []
|
|
|