0
Commit Graph

68 Commits

Author SHA1 Message Date
tandrii
e5587794fa PRESUBMIT: use "master." prefix in CQ_INCLUDE_TRYBOTS.
R=jam@chromium.org,danakj@chromium.org,kbr@chromium.org
BUG=617627

Review-Url: https://codereview.chromium.org/2148053002
Cr-Commit-Position: refs/heads/master@{#405365}
2016-07-14 00:37:51 +00:00
jbudorick
3ae7a77b04 [Android] Remove android_chromium_gn_compile_{dbg,rel} from the CQ.
BUG=610839

Review-Url: https://codereview.chromium.org/1998693002
Cr-Commit-Position: refs/heads/master@{#394963}
2016-05-20 02:37:22 +00:00
dpranke
201d0fb218 Remove stale references to the blink_presubmit bot.
R=phajdan.jr@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1861173002

Cr-Commit-Position: refs/heads/master@{#385567}
2016-04-06 22:21:10 +00:00
agrieve
f32bcc73df Reland of Include isolate.py in data for Android unit tests
Now unconditionally including some directory trees to capture imports that differ based on python version (at least those that have come up so far).

BUG=589318, 599692

Review URL: https://codereview.chromium.org/1846103005

Cr-Commit-Position: refs/heads/master@{#384907}
2016-04-04 14:59:51 +00:00
sergiyb
b4f617bded Revert of Include isolate.py in data for Android unit tests (patchset id:200001 of https://codereview.chromium.org/1840113002/ )
Reason for revert:
Speculative revert, see http://crbug.com/599692.

Original issue's description:
> Reland of Include isolate.py in data for Android unit tests
>
> Now with check disabled for non-android checkouts.
>
> This is required for any test that uses an .isolate to push files to the
> device (e.g. base_unittests).
>
> BUG=589318
>
> Committed: https://crrev.com/4b6084284590609810fb2c0653fd1b42c6fcaddb
> Cr-Commit-Position: refs/heads/master@{#384039}

TBR=jochen@chromium.org,jbudorick@chromium.org,agrieve@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=589318, 599692

Review URL: https://codereview.chromium.org/1851773002

Cr-Commit-Position: refs/heads/master@{#384557}
2016-04-01 12:03:44 +00:00
benwells
cfc1fc6e71 Remove references to mac valgrind bot.
The bot has been removed from the memory FYI waterfall.

BUG=593920

Review URL: https://codereview.chromium.org/1844493002

Cr-Commit-Position: refs/heads/master@{#384106}
2016-03-30 22:04:52 +00:00
agrieve
4b60842845 Reland of Include isolate.py in data for Android unit tests
Now with check disabled for non-android checkouts.

This is required for any test that uses an .isolate to push files to the
device (e.g. base_unittests).

BUG=589318

Review URL: https://codereview.chromium.org/1840113002

Cr-Commit-Position: refs/heads/master@{#384039}
2016-03-30 18:52:08 +00:00
agrieve
e33676c3fa Revert of Include isolate.py in data for Android unit tests (patchset id:80001 of https://codereview.chromium.org/1784373002/ )
Reason for revert:
PRESUBMIT isn't working for non-android checkouts, as shown by:

https://codereview.chromium.org/1840913002/diff/1/build/android/test_runner.pydeps#oldcode138

Original issue's description:
> Include isolate.py in data for Android unit tests
>
> This is required for any test that uses an .isolate to push files to the
> device (e.g. base_unittests).
>
> BUG=589318
>
> Committed: https://crrev.com/9e299ea6bbf87415d64d9d84003162d71304ccb9
> Cr-Commit-Position: refs/heads/master@{#383127}

TBR=jochen@chromium.org,jbudorick@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=589318

Review URL: https://codereview.chromium.org/1839103002

Cr-Commit-Position: refs/heads/master@{#383733}
2016-03-29 15:48:24 +00:00
agrieve
9e299ea6bb Include isolate.py in data for Android unit tests
This is required for any test that uses an .isolate to push files to the
device (e.g. base_unittests).

BUG=589318

Review URL: https://codereview.chromium.org/1784373002

Cr-Commit-Position: refs/heads/master@{#383127}
2016-03-24 20:08:06 +00:00
dbeam
37e8e740cb Add presubmit warning about deprecated compiled_resources.gyp
Just use v2 instead ;) (compiled_resources2.gyp)

R=maruel@chromium.org,cpu@chromium.org
BUG=585553

Review URL: https://codereview.chromium.org/1686663002

Cr-Commit-Position: refs/heads/master@{#374762}
2016-02-10 23:00:46 +00:00
danakj
6ba4c1e61a Rename MOVE_ONLY_TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03
This renames the macro to be more standard and express its intent and
relationship to DISALLOW_COPY_AND_ASSIGN. It renames the macro to
DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND, as it does what
the old DISALLOW_COPY_AND_ASSIGN does, but also whitelists the type
for Bind/Callback to try move it.

R=Nico
TBR=sky
BUG=561749

Review URL: https://codereview.chromium.org/1501793003

Cr-Commit-Position: refs/heads/master@{#363712}
2015-12-08 02:31:53 +00:00
reillyi
3896573612 Add additional hosts to hard-coded service URL presubmit check
This adds additional domains to the root PRESUBMIT check,
"_CheckHardcodedGoogleHostsInLowerLayers", based on hostnames
currently used in Chromium.

Previously, this check only validated that "google.com" was not
hard-coded, but did not catch other common hostnames:

- gstatic.com
- googleapis.com
- googlezip.net
- googledrive.com
- appspot.com

Note that this check is non-blocking, only prompting the user
with a warning before continuing the submit operation.

BUG=164568
TEST=PRESUBMIT_test.py

Review URL: https://codereview.chromium.org/1403673003

Cr-Commit-Position: refs/heads/master@{#359869}
2015-11-16 18:28:18 +00:00
oysteine
c430ad4e91 Changed the CheckBaseMacrosInHeaders presubmit to pass over C++ comments
R=dbeam@chromium.org,maruel@chromium.org
BUG=545272

Review URL: https://codereview.chromium.org/1413263002

Cr-Commit-Position: refs/heads/master@{#355639}
2015-10-22 20:55:58 +00:00
dbeam
3aa3839c53 PRESUBMIT: Bark about DISALLOW_* macros without #include "base/macros.h"
I'm sick of enforcing this in like every code review.

R=cpu@chromium.org,maruel@chromium.org
TBR=phajdan.jr@chromium.org
BUG=none
TEST=PRESUBMIT_test.py

Review URL: https://codereview.chromium.org/1411553003

Cr-Commit-Position: refs/heads/master@{#354607}
2015-10-16 21:39:00 +00:00
dgn
38736db931 [android] Change the recommended log tag format to "cr_foo"
This is to ensure that log tags are not elided when retrieving
logcat output from crash reports. The log function has been
modified to make the transition easier and avoid specifying
the prefix everywhere.

This patch also moves some eliding testing from instrumentation
tests to junit tests, and adds a test to ensure that the new
tag format is not elided.

BUG=533072

Review URL: https://codereview.chromium.org/1354723004

Cr-Commit-Position: refs/heads/master@{#349733}
2015-09-18 19:21:52 +00:00
sdefresne
8ba0b88ca9 Turn components/crash into a layered component.
The crash component cannot be used on iOS (as it depends on //content).
Turn it into a layered component so that it is possible to put shared
code related to crash there (components/crash_keys and objc_zombie.{h,mm}).

BUG=522955
TBR=sky@chromium.org
TBR=jschuh@chromium.org
NOPRESUBMIT=true

Review URL: https://codereview.chromium.org/1315303004

Cr-Commit-Position: refs/heads/master@{#349643}
2015-09-18 10:33:52 +00:00
sdefresne
d7978868d7 Revert of Turn components/crash into a layered component. (patchset id:100001 of https://codereview.chromium.org/1315303004/ )
Reason for revert:
This breaks Webkit layout tests.

Original issue's description:
> Turn components/crash into a layered component.
>
> The crash component cannot be used on iOS (as it depends on //content).
> Turn it into a layered component so that it is possible to put shared
> code related to crash there (components/crash_keys and objc_zombie.{h,mm}).
>
> BUG=522955
> TBR=sky@chromium.org
> TBR=jschuh@chromium.org
> NOPRESUBMIT=true
>
> Committed: https://crrev.com/4e483c64be5136b785e92c5baa971baca7eea2bc
> Cr-Commit-Position: refs/heads/master@{#349384}

TBR=blundell@chromium.org,jam@chromium.org,jschuh@chromium.org,mark@chromium.org,rsesek@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=522955

Review URL: https://codereview.chromium.org/1351923002

Cr-Commit-Position: refs/heads/master@{#349417}
2015-09-17 14:28:49 +00:00
sdefresne
4e483c64be Turn components/crash into a layered component.
The crash component cannot be used on iOS (as it depends on //content).
Turn it into a layered component so that it is possible to put shared
code related to crash there (components/crash_keys and objc_zombie.{h,mm}).

BUG=522955
TBR=sky@chromium.org
TBR=jschuh@chromium.org
NOPRESUBMIT=true

Review URL: https://codereview.chromium.org/1315303004

Cr-Commit-Position: refs/heads/master@{#349384}
2015-09-17 08:45:51 +00:00
olli.raula
36aa8be4eb Move Singleton and related structs to namespace base
Public APIs from base should live inside base:: so moved Singleton class
and structs to base{} and fixed consumers.

also fixed:

** Presubmit ERRORS **
Found Singleton<T> in the following header files.
Please move them to an appropriate source file so that the template
gets instantiated in a single compilation unit.
  chrome/browser/plugins/plugin_finder.h \
  chromecast/media/base/media_message_loop.h \
  content/browser/media/android/media_drm_credential_manager.h

Presubmit warnings:
src/chrome/browser/extensions/warning_badge_service_factory.h:5:
  #ifndef header guard has wrong style, please use:
  CHROME_BROWSER_EXTENSIONS_WARNING_BADGE_SERVICE_FACTORY_H_
  [build/header_guard] [5]
src/chrome/browser/extensions/warning_badge_service_factory.h:39:
  #endif line should be "#endif  //
  CHROME_BROWSER_EXTENSIONS_WARNING_BADGE_SERVICE_FACTORY_H_"
  [build/header_guard] [5]

TBR=jam@chromium.org

Review URL: https://codereview.chromium.org/1308823002

Cr-Commit-Position: refs/heads/master@{#348136}
2015-09-10 11:15:10 +00:00
dgn
87d9fb6e6c [Android log] Fix presubmit check reports in base package
The presubmit check stop warning about Log calls from classes in the
org.chromium.base package.

Also does some refactoring to simplify logging related checks

BUG=498171

Review URL: https://codereview.chromium.org/1183493002

Cr-Commit-Position: refs/heads/master@{#334135}
2015-06-12 09:15:53 +00:00
dgn
aa68d5ec85 [Android log] Promote using hardcoded string tags
This is to avoid static initializers that would make the code slower.
See the linked bug for discussion.

This patch deprecates Log#makeTag(String) and adds presubmit checks
to enforce at submit time what makeTag was trying to do: length and
naming rules

BUG=485772

Review URL: https://codereview.chromium.org/1131903007

Cr-Commit-Position: refs/heads/master@{#333710}
2015-06-10 10:08:56 +00:00
dbeam
95c35a2fad Exclude .md files from version control conflict detection.
Turns out top-level headers basically look exactly like
a merge conflict marker.

R=jlklein@chromium.org
BUG=495338

Review URL: https://codereview.chromium.org/1153013005

Cr-Commit-Position: refs/heads/master@{#332313}
2015-06-02 01:40:56 +00:00
dgn
4401aa59ea [android log] Add documentation and presubmit checks for log usage.
The new check warns for new log usages that don't use base.Log

The documentation is added in-tree as a markdown file

BUG=472152

Review URL: https://codereview.chromium.org/1114593002

Cr-Commit-Position: refs/heads/master@{#327504}
2015-04-29 16:26:53 +00:00
davileen
e0426257f8 Add PRESUBMIT tests for _CheckUserActionUpdate function.
Presubmit does not contain any tests for the _CheckUserActionUpdate
function. This commit adds a test to check against an action in
actions.xml and one that is not found there. To do this we have to
improve the MockInputApi and MockFile classes.

BUG=462814

Review URL: https://codereview.chromium.org/966703003

Cr-Commit-Position: refs/heads/master@{#318759}
2015-03-02 21:11:31 +00:00
thakis
4f02f4cd6c Make git cl try to the same as hitting cq (except for presubmit).
PRESUBMIT.py used to contain a handwritten list of bots to trigger on
`git cl try`. It was always out of sync with what the cq did.
https://codereview.chromium.org/823823002 awesomely made `git cl try` do
the same thing as the commit queue, but it kept a few special-case rules around.

It's better to not have these special cases: Once the developer hits cq, all
the "intelligently" skipped bots need to be run anyways.  More importantly,
there should be only one system to decide what to run and it should be
identical for cq and `git cl try`.  Currently, we think this system is the
`analyze` step, and it does a decent job of that already.

BUG=none (but made possible by 443613)

Review URL: https://codereview.chromium.org/921323003

Cr-Commit-Position: refs/heads/master@{#317597}
2015-02-23 17:01:24 +00:00
sergiyb
8778ff8184 Removed references to win_gpu, which has been removed
BUG=426897
R=kbr@chromium.org,phajdan.jr@chromium.org,zmo@chromium.org,darin@chromium.org,brettw@chromium.org,cpu@chromium.org

Review URL: https://codereview.chromium.org/794303004

Cr-Commit-Position: refs/heads/master@{#316870}
2015-02-18 18:57:08 +00:00
glider
e61efad3b3 Reland https://codereview.chromium.org/929043002/: Add a presubmit check that warns about declaring Singleton<T> in header files
Add a presubmit check that warns about declaring Singleton<T> in header files
(except for base/memory/singleton.h)
This check is copied from presubmit_canned_checks.py in depot_tools/ with an
added exception for base/memory/singleton.h.
The corresponding code will be removed from presubmit_canned_checks.py afterwards.

BUG=349861

Review URL: https://codereview.chromium.org/933253002

Cr-Commit-Position: refs/heads/master@{#316852}
2015-02-18 17:40:14 +00:00
glider
99aac94df7 Revert of Add a presubmit check that warns about declaring Singleton<T> in header files (patchset id:20001 of https://codereview.chromium.org/929043002/)
Reason for revert:
Reverting because of presubmit crashes:

Traceback (most recent call last):
  File "/usr/local/google/ssd/depot_tools/git_cl.py", line 2983, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/local/google/ssd/depot_tools/git_cl.py", line 2969, in main
    return dispatcher.execute(OptionParser(), argv)
  File "/usr/local/google/ssd/depot_tools/subcommand.py", line 245, in execute
    return command(parser, args[1:])
  File "/usr/local/google/ssd/depot_tools/git_cl.py", line 1614, in CMDpresubmit
    change=cl.GetChange(base_branch, None))
  File "/usr/local/google/ssd/depot_tools/git_cl.py", line 936, in RunHook
    rietveld_obj=self.RpcServer())
  File "/usr/local/google/ssd/depot_tools/presubmit_support.py", line 1396, in DoPresubmitChecks
    results += executer.ExecPresubmitScript(presubmit_script, filename)
  File "/usr/local/google/ssd/depot_tools/presubmit_support.py", line 1313, in ExecPresubmitScript
    result = eval(function_name + '(*__args)', context)
  File "<string>", line 1, in <module>
  File "<string>", line 1727, in CheckChangeOnCommit
  File "<string>", line 1455, in _CommonChecks
  File "<string>", line 1322, in _CheckSingletonInHeaders
  File "/usr/local/google/ssd/depot_tools/presubmit_support.py", line 472, in ReadFile
    raise IOError('Access outside the repository root is denied.')
IOError: Access outside the repository root is denied.

Original issue's description:
> Add a presubmit check that warns about declaring Singleton<T> in header files
> (except for base/memory/singleton.h)
> This check is copied from presubmit_canned_checks.py in depot_tools/ with an
> added exception for base/memory/singleton.h.
> The corresponding code will be removed from presubmit_canned_checks.py afterwards.
>
> BUG=349861
> R=phajdan.jr@chromium.org,
>
> Committed: https://crrev.com/9b73d0393037452d13358f4e2766cb62adbdede8
> Cr-Commit-Position: refs/heads/master@{#316546}

TBR=phajdan.jr@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=349861

Review URL: https://codereview.chromium.org/934723003

Cr-Commit-Position: refs/heads/master@{#316559}
2015-02-17 11:19:16 +00:00
glider
9b73d03930 Add a presubmit check that warns about declaring Singleton<T> in header files
(except for base/memory/singleton.h)
This check is copied from presubmit_canned_checks.py in depot_tools/ with an
added exception for base/memory/singleton.h.
The corresponding code will be removed from presubmit_canned_checks.py afterwards.

BUG=349861
R=phajdan.jr@chromium.org,

Review URL: https://codereview.chromium.org/929043002

Cr-Commit-Position: refs/heads/master@{#316546}
2015-02-17 09:27:05 +00:00
mcasas
b7440c2829 Add PRESUBMIT check if modified UMA histogram name can be found (2)
This CL is an iteration of http://crrev.com/766713004, that got reverted
after http://crbug.com/445265 because it could not cope correctly
with structures of the type:

<histogram_suffixes name="SafeBrowsingStores.SBWhiteLists" separator=".">
  <suffix name="CSD" label="CSD"/>
  <suffix name="DownloadWhitelist" label="DownloadWhitelist"/>
  <affected-histogram name="SB2.DatabaseKilobytes"/>
</histogram_suffixes>

(in particular: affected-histogram-suffixes).

Limitation that should be solved now.

Original description ---------------------------------------------------

Add PRESUBMIT check if modified UMA histogram name can be found

This Presubmit checks if some diffs affect any UMA_HISTOGRAM_*
macro and, if so, checks if the histogram name is to be found
in either tools/metrics/histograms/histograms.xml or in the
CL diffs.

Addresses the problem of someone modifying code and
inadvertently forgetting a corresponding histograms.xml
adaptation, that has happened in the past.

BUG=434420, 445265

Review URL: https://codereview.chromium.org/885783007

Cr-Commit-Position: refs/heads/master@{#314557}
2015-02-04 14:53:08 +00:00
sergiyb
10ab0cd528 Removed references to linux_gpu, which has been removed
BUG=426897
R=kbr@chromium.org,phajdan.jr@chromium.org,zmo@chromium.org

Review URL: https://codereview.chromium.org/800013002

Cr-Commit-Position: refs/heads/master@{#313978}
2015-01-30 20:34:16 +00:00
asvitkine
e56a58d717 Revert of Add PRESUBMIT check if modified UMA histogram name can be found (patchset id:40001 of https://codereview.chromium.org/766713004/)
Reason for revert:
Produces false positive warnings on histograms using histogram_suffixes, see:

https://code.google.com/p/chromium/issues/detail?id=445265

Original issue's description:
> Add PRESUBMIT check if modified UMA histogram name can be found
>
> This Presubmit checks if some diffs affect any UMA_HISTOGRAM_*
> macro and, if so, checks if the histogram name is to be found
> in either tools/metrics/histograms/histograms.xml or in the
> CL diffs.
>
> Addresses the problem of someone modifying code and
> inadvertently forgetting a corresponding histograms.xml
> adaptation, that has happened in the past.
>
> BUG=434420
>
> Committed: https://crrev.com/2ece5270462346b1ac3bccd3bfe5e68d024b98b5
> Cr-Commit-Position: refs/heads/master@{#306388}

TBR=phajdan.jr@chromium.org,mcasas@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=434420, 445265

Review URL: https://codereview.chromium.org/841323002

Cr-Commit-Position: refs/heads/master@{#310863}
2015-01-09 21:45:16 +00:00
sergiyb
2adbe15c19 Removed references to mac_gpu, which has been removed
BUG=426897
R=kbr@chromium.org,phajdan.jr@chromium.org,zmo@chromium.org

Review URL: https://codereview.chromium.org/805483002

Cr-Commit-Position: refs/heads/master@{#308995}
2014-12-18 12:21:44 +00:00
gayane
3dff8c2676 Presubmit checks for user actions introduced in HTML files.
This presubmit task will catch the case when HTML files are modified with new user action and action.xml is not updated

BUG=431393

Review URL: https://codereview.chromium.org/719463003

Cr-Commit-Position: refs/heads/master@{#306842}
2014-12-04 17:10:50 +00:00
mcasas
2ece527046 Add PRESUBMIT check if modified UMA histogram name can be found
This Presubmit checks if some diffs affect any UMA_HISTOGRAM_*
macro and, if so, checks if the histogram name is to be found
in either tools/metrics/histograms/histograms.xml or in the
CL diffs.

Addresses the problem of someone modifying code and
inadvertently forgetting a corresponding histograms.xml
adaptation, that has happened in the past.

BUG=434420

Review URL: https://codereview.chromium.org/766713004

Cr-Commit-Position: refs/heads/master@{#306388}
2014-12-02 15:37:48 +00:00
Paweł Hajdan, Jr
9c89631fce Clean up PRESUBMIT.py - remove references to removed clang trybots
BUG=none
R=maruel@chromium.org

Review URL: https://codereview.chromium.org/683733009

Cr-Commit-Position: refs/heads/master@{#302800}
2014-11-05 15:05:37 +00:00
John Abd-El-Malek
a2226a6c81 Convert manually triggered try runs to use bots without _swarming prefix.
BUG=425813
R=phajdan.jr@chromium.org

Review URL: https://codereview.chromium.org/664413006

Cr-Commit-Position: refs/heads/master@{#300691}
2014-10-22 16:50:53 +00:00
mostynb
5a73a5d372 remove obsolete OVERRIDE/FINAL presubmit checks
BUG=417463

Review URL: https://codereview.chromium.org/655693003

Cr-Commit-Position: refs/heads/master@{#300675}
2014-10-22 13:21:49 +00:00
Paweł Hajdan, Jr
c793742b02 Remove references to linux_asan from PRESUBMIT files.
BUG=404694
R=earthdok@chromium.org

Review URL: https://codereview.chromium.org/637953005

Cr-Commit-Position: refs/heads/master@{#300468}
2014-10-21 12:06:11 +00:00
mohan.reddy
f21db965b7 Adding Presubmit error when OVERRIDE and FINAL is not used as C++11 standard
Alerting the error for use to use c++11 constructs |override| and |final|
instead of OVERRIDE and FINAL respctively

BUG=417463

Review URL: https://codereview.chromium.org/653883002

Cr-Commit-Position: refs/heads/master@{#299880}
2014-10-16 12:27:09 +00:00
lliabraa
35bab3936e Add PRESUBMIT check for #ifdefs on values that are always defined.
Several values are always defined and the developer actually wants to
do an #if check, not #ifdef.

BUG=417804

Review URL: https://codereview.chromium.org/595213004

Cr-Commit-Position: refs/heads/master@{#297627}
2014-10-01 12:16:58 +00:00
philipj
3f9d5bde73 Update some paths from components/breakpad/ to components/crash/
It was moved in https://crrev.com/55b8563

Found by git grep 'components.*breakpad'

BUG=406410
R=rsesek@chromium.org
TBR=jochen@chromium.org

Review URL: https://codereview.chromium.org/511223002

Cr-Commit-Position: refs/heads/master@{#292376}
2014-08-28 14:10:17 +00:00
Robert Sesek
abcd8100a5 Rename components/breakpad to components/crash.
In the near future, Crashpad (the new Mac crash reporter) will be integrated,
and it should be integrated/exposed transparently to the users of this
component.

BUG=406410
R=blundell@chromium.org
TBR=darin@chromium.org

Review URL: https://codereview.chromium.org/485893007

Cr-Commit-Position: refs/heads/master@{#292162}
2014-08-27 16:14:41 +00:00
dominik.rottsches@intel.com
e120b01ad8 Do not run header include order checks on blacklisted files
The header include order checks were running on all
affected files, including third_party for example,
this causes issues when rolling harfbuzz-ng.

BUG=404105
NOTRY=true

Review URL: https://codereview.chromium.org/462323003

Cr-Commit-Position: refs/heads/master@{#289968}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289968 0039d316-1c4b-4281-b951-d872f2087c98
2014-08-15 19:10:48 +00:00
sergeyberezin@chromium.org
0bb112369a Update masters after the tryserver split.
Also replace deprecated linux_chromium_rel with linux_chromium_rel_swarming, while I'm at it.

R=agable@chromium.org, maruel@chromium.org
BUG=395196

Review URL: https://codereview.chromium.org/415323002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285752 0039d316-1c4b-4281-b951-d872f2087c98
2014-07-26 04:38:32 +00:00
miguelg@chromium.org
5e4dbc79f8 Revert of Add PRESUBMIT.py warning for contradictory NOTREACHED() use. (https://codereview.chromium.org/344563003/)
Reason for revert:
It seems to be checking code that is not part of the diff. 

I also think there are some legitimate cases for not reached in the middle of a block but that is something that can be discussed on the bug.

Filed https://code.google.com/p/chromium/issues/detail?id=388731 to track.

Original issue's description:
> Add PRESUBMIT.py warning for contradictory NOTREACHED() use.
> 
> As recently discussed on chromium-dev [1] and subsequently incorporated into the
> Chromium Coding Style [2], NOTREACHED() followed by code is an anti-pattern.
> This CL lets PRESUBMIT.py detect most of these cases and print a warning to the
> developer.
> [1] https://groups.google.com/a/chromium.org/d/msg/chromium-dev/c2X0D1Z6X2o/ddkFLqQP0P0J
> [2] http://www.chromium.org/developers/coding-style#TOC-CHECK-DCHECK-and-NOTREACHED-
> 
> BUG=none
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279681

TBR=maruel@chromium.org,tnagel@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=none

Review URL: https://codereview.chromium.org/357693004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279710 0039d316-1c4b-4281-b951-d872f2087c98
2014-06-25 14:10:21 +00:00
tnagel@chromium.org
264246a7e8 Add PRESUBMIT.py warning for contradictory NOTREACHED() use.
As recently discussed on chromium-dev [1] and subsequently incorporated into the
Chromium Coding Style [2], NOTREACHED() followed by code is an anti-pattern.
This CL lets PRESUBMIT.py detect most of these cases and print a warning to the
developer.
[1] https://groups.google.com/a/chromium.org/d/msg/chromium-dev/c2X0D1Z6X2o/ddkFLqQP0P0J
[2] http://www.chromium.org/developers/coding-style#TOC-CHECK-DCHECK-and-NOTREACHED-

BUG=none

Review URL: https://codereview.chromium.org/344563003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279681 0039d316-1c4b-4281-b951-d872f2087c98
2014-06-25 11:55:21 +00:00
yoz@chromium.org
a334327dbe Make JSON validity presubmit test less stringent.
On Mac, Python 2.7 gives different results (line 1 column 3 char 2) than
Python 2.6 (line 1 column 2 char 2).

Review URL: https://codereview.chromium.org/335263002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277728 0039d316-1c4b-4281-b951-d872f2087c98
2014-06-17 11:41:53 +00:00
yoz@chromium.org
99171a9499 Add global presubmit that JSON and IDL files can be parsed.
Sometimes, changes to JSON/IDL files make them invalid. It's easier to check these at presubmit time than discovering they can't be parsed at runtime.

This just moves the check from chrome/common/extensions/api to top-level.
This presubmit check excludes files in test/data directories.

BUG=366395

Review URL: https://codereview.chromium.org/239283008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274432 0039d316-1c4b-4281-b951-d872f2087c98
2014-06-03 08:44:47 +00:00
phajdan.jr@chromium.org
7468ac52e7 Change top-level PRESUBMIT to support split tryserver
This also fixes problems with generic trybots not being triggered
when other presubmit files which already support multiple masters
get in scope.

BUG=334892
R=maruel@chromium.org

Review URL: https://codereview.chromium.org/197963003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256698 0039d316-1c4b-4281-b951-d872f2087c98
2014-03-12 23:35:57 +00:00