| Index: components/sync_sessions/PRESUBMIT.py
|
| diff --git a/components/sync_sessions/PRESUBMIT.py b/components/sync_sessions/PRESUBMIT.py
|
| index 70dee3d1689d2148f92f1d94c0ddbc936529d990..39f2f9ac418bddecbf4cd3b5c030c32cfe7e63e4 100644
|
| --- a/components/sync_sessions/PRESUBMIT.py
|
| +++ b/components/sync_sessions/PRESUBMIT.py
|
| @@ -2,7 +2,7 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| -"""Top-level presubmit script for sync_sessions.
|
| +"""Presubmit script for sync_sessions component.
|
|
|
| See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
|
| for more details about the presubmit API built into depot_tools.
|
| @@ -10,16 +10,22 @@ for more details about the presubmit API built into depot_tools.
|
|
|
| import re
|
|
|
| -SYNC_SESSIONS_SOURCE_FILES=(r'^components[\\/]sync_sessions[\\/].*\.(cc|h)$',)
|
| +SYNC_SESSIONS_SOURCE_FILES = (r'^components[\\/]sync_sessions[\\/].*\.(cc|h)$',)
|
|
|
| def CheckChangeLintsClean(input_api, output_api):
|
| source_filter = lambda x: input_api.FilterSourceFile(
|
| x, white_list=SYNC_SESSIONS_SOURCE_FILES, black_list=None)
|
| -
|
| return input_api.canned_checks.CheckChangeLintsClean(
|
| input_api, output_api, source_filter, lint_filters=[], verbose_level=1)
|
|
|
| -def CheckChangeOnUpload(input_api, output_api):
|
| +def CheckChanges(input_api, output_api):
|
| results = []
|
| results += CheckChangeLintsClean(input_api, output_api)
|
| + results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api)
|
| return results
|
| +
|
| +def CheckChangeOnUpload(input_api, output_api):
|
| + return CheckChanges(input_api, output_api)
|
| +
|
| +def CheckChangeOnCommit(input_api, output_api):
|
| + return CheckChanges(input_api, output_api)
|
|
|