summaryrefslogtreecommitdiffstats
path: root/PRESUBMIT.py
Commit message (Collapse)AuthorAgeFilesLines
* Move Linux/Android breakpad implementation to breakpad componentjochen@chromium.org2013-10-221-1/+1
| | | | | | | | | | | | | Also split up breakpad component in more subdirectories and tighten up DEPS rules BUG=247431 R=rsesek@chromium.org TBR=darin@chromium.org Review URL: https://codereview.chromium.org/31243002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229964 0039d316-1c4b-4281-b951-d872f2087c98
* switch win_x64_rel to base_unittests so it's not building Allscottmg@chromium.org2013-10-171-1/+1
| | | | | | | | | R=maruel@chromium.org BUG=304877 Review URL: https://codereview.chromium.org/27751002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229252 0039d316-1c4b-4281-b951-d872f2087c98
* Move breakpad_mac* to breakpad componentjochen@chromium.org2013-10-111-0/+1
| | | | | | | | | | BUG=247431 R=joi@chromium.org, rsesek@chromium.org, thakis@chromium.org TBR=mark@chromium.org Review URL: https://codereview.chromium.org/26856002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228167 0039d316-1c4b-4281-b951-d872f2087c98
* Implement presubmit support for _unittest_win includes, etc.erikwright@chromium.org2013-10-091-3/+13
| | | | | | | | | | Without this change, xxx_unittest_win.cc would cause an erroneous presubmit error by including xxx_win.h as its first 'special' include. BUG=None Review URL: https://codereview.chromium.org/26486003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227823 0039d316-1c4b-4281-b951-d872f2087c98
* Run cros_x86 trybots on changes to ^(base|build|chromeos).*\.gypi?$.erg@chromium.org2013-09-301-0/+8
| | | | | | | | | | | | | Since the full chromeos builders are sensitive to high level gypi changes, make sure to do full tryjobs on them in addition to the faster linux_chromeos bots when gyp files change. BUG=none R=maruel@chromium.org, phajdan.jr@chromium.org Review URL: https://codereview.chromium.org/24366005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226033 0039d316-1c4b-4281-b951-d872f2087c98
* Exclude more files from the PRESUBMIT #include check.marja@chromium.org2013-09-201-3/+6
| | | | | | | | | | | These files need to be included out-of-order. BUG=NONE NOTRY=true Review URL: https://chromiumcodereview.appspot.com/24177004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224367 0039d316-1c4b-4281-b951-d872f2087c98
* Don't issue presubmit warning for use of wstrings in Windows-only files.isherman@chromium.org2013-08-291-1/+1
| | | | | | | | | | BUG=none TEST=none R=maruel@chromium.org Review URL: https://chromiumcodereview.appspot.com/22338004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220415 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] move browser process stuff into browser/ subdirjochen@chromium.org2013-08-201-1/+2
| | | | | | | | | | BUG=180021 R=marja@chromium.org TBR=joi@chromium.org,ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/23316003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218441 0039d316-1c4b-4281-b951-d872f2087c98
* Exclude GPU JSON data files from presubmit checksskyostil@chromium.org2013-08-201-0/+1
| | | | | | | | | | | | | | | | The following GPU source files contain JSON data with long lines, causing them to fail presubmit checks: gpu/config/gpu_driver_bug_list_json.cc gpu/config/gpu_switching_list_json.cc gpu/config/software_rendering_list_json.cc This patch adds them to the presubmit exclusion list so that changes to these files may still be landed using the commit queue. Review URL: https://chromiumcodereview.appspot.com/22891010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218373 0039d316-1c4b-4281-b951-d872f2087c98
* Add a presubmit check for tabs in grd files.thestig@chromium.org2013-07-311-0/+5
| | | | | | Review URL: https://chromiumcodereview.appspot.com/19741006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214530 0039d316-1c4b-4281-b951-d872f2087c98
* Ignore +grit entries in DEPS files.tony@chromium.org2013-07-261-14/+21
| | | | | | | | | | | | Sometimes the trailing slash doesn't exist on the DEPS on grit, but we were expecting it. BUG=None R=maruel@chromium.org Review URL: https://codereview.chromium.org/20770002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213989 0039d316-1c4b-4281-b951-d872f2087c98
* add win_x64_rel to default trybotsscottmg@chromium.org2013-07-231-0/+1
| | | | | | | | | R=jschuh,iannucci NOTRY=true Review URL: https://chromiumcodereview.appspot.com/19781004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213014 0039d316-1c4b-4281-b951-d872f2087c98
* Remove mac_asan from default try set because it's consistently failing.ajwong@chromium.org2013-07-191-2/+1
| | | | | | | | | | | It ain't flaky anymore cause it's fails consistently now. TBR=iannucci@chromium.org BUG=245262 Review URL: https://codereview.chromium.org/19873002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212699 0039d316-1c4b-4281-b951-d872f2087c98
* Add the android_aosp trybot to PRESUBMIT.pymkosiba@chromium.org2013-07-021-1/+8
| | | | | | | | | | | This adds the android_aosp trybot to the preferred trybot set. BUG=None NOTRY=true Review URL: https://chromiumcodereview.appspot.com/18367002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209667 0039d316-1c4b-4281-b951-d872f2087c98
* Ignore "incoming" DEPS on grit/ since it is generated code.joi@chromium.org2013-07-011-1/+3
| | | | | | | | | BUG=255149 R=finnur@chromium.org Review URL: https://codereview.chromium.org/18191003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209432 0039d316-1c4b-4281-b951-d872f2087c98
* Ignore hardcoded URLs and ForTest(ing)/for_test(ing) in comments.joi@chromium.org2013-05-231-4/+8
| | | | | | | | | | | | | This addresses a couple of bug reports I've received on these presubmit checks. I also fixed how reviewers_plus_owner is created in _CheckAddedDepsHaveTargetApprovals based on comments on a previous patch. BUG=None Review URL: https://chromiumcodereview.appspot.com/15755002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201792 0039d316-1c4b-4281-b951-d872f2087c98
* Fix _CheckAddedDepsHaveTargetApprovals for the case where no owner has been ↵joi@chromium.org2013-05-221-1/+3
| | | | | | | | | | | specified. TBR=maruel@chromium.org BUG=none Review URL: https://codereview.chromium.org/15491008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201426 0039d316-1c4b-4281-b951-d872f2087c98
* Forbid unwanted Skia ref-counting containersenne@chromium.org2013-05-201-0/+37
| | | | | | | | | | | | | | | | | | | | | | skia::RefPtr is the closest Chromium construct to scoped_refptr and also the safest Skia refcounting class. To avoid other people continually shooting themselves in the face mistaking SkRefPtr for skia::RefPtr (one of which refs the pointer you give it and the other doesn't), ban this in Chromium via global PRESUBMIT. The Skia team also prefers to keep the SkAutoTUnref template private (see discussion here: https://codereview.appspot.com/6849109/), so prefer SkRefPtr over that as well. Finally, SkAutoUnref and SkAutoRef are both templates that support SkRefPtr and SkAutoTUnref, so make sure these are unused as well. R=maruel@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/15063008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201029 0039d316-1c4b-4281-b951-d872f2087c98
* Add a presubmit check that requires an OWNERS approval from foo/bar/OWNERS ↵joi@chromium.org2013-05-131-0/+72
| | | | | | | | | | | if adding a "+foo/bar" rule to DEPS. BUG=none R=maruel@chromium.org Review URL: https://codereview.chromium.org/15043003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199726 0039d316-1c4b-4281-b951-d872f2087c98
* Using explicit checkout local path in presubmit checkdepsalancutter@chromium.org2013-05-091-1/+1
| | | | | | | | | | | | Ensure checkdeps searches the current repository instead of only Chromium's. This is part of enabling checkdeps in Blink. BUG=238992 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/14779012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199296 0039d316-1c4b-4281-b951-d872f2087c98
* Exclude content shell files from the "for testing" presubmit check.jochen@chromium.org2013-05-031-0/+2
| | | | | | | | | | We're using plenty of ...ForTesting() methods to run layout tests R=joi@chromium.org Review URL: https://codereview.chromium.org/14913002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198094 0039d316-1c4b-4281-b951-d872f2087c98
* Add "pixeltest" as a test type for presubmit.danakj@chromium.org2013-04-261-1/+1
| | | | | | | | | | | Similar to foo_unittest and foo_browsertest, the compositor also has foo_pixeltest files. R=maruel@chromium.org Review URL: https://chromiumcodereview.appspot.com/14315013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196796 0039d316-1c4b-4281-b951-d872f2087c98
* Allow test files to use non-platform suffixes for PRESUBMIT checks.danakj@chromium.org2013-04-231-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | The current check for deciding if a file is a unittest allows a strict whitelist of platforms as suffixes. However, when a unittest file becomes too large, it is useful to split it on other axes than by platform. This allows a _suffix for a topic to be used without failing production-only presubmit checks. In other words, it considers foo_bar_unittest_baz.cc to be a unittest. There are many examples of foo_unittest_utils.cc which are used only by unit tests throughout chromium, but they have been lucky to avoid using FunctionForTesting type functions. In cc/ we have run into this problem, so allowing our unittests to be considered non-production code prevents false positive warnings about our test files. NOTRY=true R=maruel@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/14317011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195780 0039d316-1c4b-4281-b951-d872f2087c98
* Convert an OS_SUN use to OS_SOLARIS.shess@chromium.org2013-04-171-1/+0
| | | | | | | | BUG=none Review URL: https://codereview.chromium.org/14101006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194681 0039d316-1c4b-4281-b951-d872f2087c98
* Update PRESUBMIT scripts to use PresubmitPromptOrNotify helper.wez@chromium.org2013-04-021-25/+4
| | | | | | | | NOTRY=true Review URL: https://chromiumcodereview.appspot.com/13093006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191863 0039d316-1c4b-4281-b951-d872f2087c98
* Initialize the simple cache backend at runtime. pasko@google.com2013-04-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We will need to choose the backend at runtime for A/B testing. This change is the first step towards backend comparisons: it moves the logic of choosing among cache backends to a single point (cache_creator.cc) and makes it logically separate from BackendImpl. Next step would be to inject performance-analyzer backend into this cache backend choice logic. The analyzer is going to be under a compile-time flag. With this change the Simple Cache Backend operation gets enabled when the "SimpleCacheTrial" experiment is set. Cache Initialization. The Simple Cache Backend now shares the common initialization/cleanup code. So it can delete inconsistent cache, cache of a different version etc asynchronously. It is just a positive side-effect of moving the backend choice to a single point. The CacheCreator with almost no change. To see the difference: shell> out/Debug/chrome --enable-logging=stderr --v=1 \ --user-data-dir=/tmp/unique --use-simple-cache-backend=on \ http://url 2>&1 | grep "Simple Cache" BUG=173390, 173384 TBR=maruel Review URL: https://chromiumcodereview.appspot.com/12794003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191830 0039d316-1c4b-4281-b951-d872f2087c98
* Remove cc/ from PRESUBMIT.py exception listjamesr@chromium.org2013-03-281-1/+0
| | | | | | | | | | | This directory should now always pass chromium's PRESUBMITs BUG=144577 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/13201005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191184 0039d316-1c4b-4281-b951-d872f2087c98
* Adding _Check* function for invalid OS_MACROs in src/PRESUBMIT.pydbeam@chromium.org2013-03-261-0/+70
| | | | | | | | | | | | R=maruel@chromium.org BUG=none CONTEXT=http://goo.gl/hrlj1 TEST=PRESUBMIT_test.py and less OS_MAXOSX! NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12845013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190693 0039d316-1c4b-4281-b951-d872f2087c98
* Remove webkit/compositor_bindings from PRESUBMIT exclusion listjamesr@chromium.org2013-03-191-1/+0
| | | | | | | | | | | | | | This was added when initially importing this code from WebKit that didn't comply with chromium's style rules. This code now passes lint and presubmit checks so there's no need for the exclusion. NOTRY=true BUG=144577 Review URL: https://chromiumcodereview.appspot.com/12695010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189029 0039d316-1c4b-4281-b951-d872f2087c98
* Add a few more configs to try jobs to match CQ (win:compile, mac:compile).jam@chromium.org2013-02-211-2/+4
| | | | | | Review URL: https://codereview.chromium.org/12328039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183833 0039d316-1c4b-4281-b951-d872f2087c98
* [NaCl SDK] make example Makefiles quiet by defaultsbc@chromium.org2013-02-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | This is a port of some of the changes made to the common.mk system when it was ported to support building nacltoons. Also, change oshelpers "rm -f" so that is doesn't output anything when it can't find files (this matches /bin/rm behavior). Also, remove redundant nmf build rules from host_vc.mk and host_gcc.mk. Also, add .mk files to exclusion list in top level PRESUBMIT.py since they contain lines longer than 80 chars and fixing this would make them harder to read. BUG=None Review URL: https://chromiumcodereview.appspot.com/12209097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181856 0039d316-1c4b-4281-b951-d872f2087c98
* Presubmit fix: add missing png suffix.oshima@chromium.org2013-01-251-1/+1
| | | | | | | | | | TBR=maruel@chromium.org BUG=none TEST=none Review URL: https://codereview.chromium.org/12033111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178899 0039d316-1c4b-4281-b951-d872f2087c98
* Presubmit check for the name of png files. They should not have abbreviations.oshima@chromium.org2013-01-251-0/+19
| | | | | | | | | | | NOTRY=true BUG=150046 TEST=none Review URL: https://chromiumcodereview.appspot.com/12047112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178837 0039d316-1c4b-4281-b951-d872f2087c98
* PRESUBMIT.py: Run only PRESUBMIT_test.py if PRESUBMIT.py changes.marja@chromium.org2013-01-211-1/+1
| | | | | | | | | | | | Previously, we used to run all _test.py files in this directory. BUG=NONE NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12037006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177927 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 176986 - breaks tools/perf and tools/telemetry presubmitnduca@chromium.org2013-01-161-77/+28
| | | | | | | | | | | | | | | | | | | | | | While I totally get this for production code, it doesn't apply to for example tools/perf, where we keep sitelists intentionally. Because this hooks into common checks, there's no clean way to disable it that I can see. > Warn when committing code with http:// URLs. > > We prefer HTTPS for everything, to the extent possible. > > NOTRY=true > BUG=156396 > > > Review URL: https://chromiumcodereview.appspot.com/11779037 TBR=palmer@chromium.org Review URL: https://codereview.chromium.org/11811004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177079 0039d316-1c4b-4281-b951-d872f2087c98
* Warn when committing code with http:// URLs.palmer@chromium.org2013-01-151-28/+77
| | | | | | | | | | | | We prefer HTTPS for everything, to the extent possible. NOTRY=true BUG=156396 Review URL: https://chromiumcodereview.appspot.com/11779037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176986 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate presubmit check for FilePathWatcher::Delegate, which no longer exists.darin@chromium.org2013-01-151-9/+0
| | | | | | | | BUG=130980 Review URL: https://codereview.chromium.org/11917002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176945 0039d316-1c4b-4281-b951-d872f2087c98
* Fix "gcl try" not working. I think the server was crashing because it didn't ↵jam@chromium.org2013-01-111-1/+1
| | | | | | | | | know what win_aura bots are anymore. Renamed to win7_aura. TBR=cmp Review URL: https://codereview.chromium.org/11853006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176262 0039d316-1c4b-4281-b951-d872f2087c98
* Don't issue try jobs for OWNERS-only changes.dbeam@chromium.org2013-01-101-1/+1
| | | | | | | | | | | BUG=None R=maruel@chromium.org TEST=PRESUBMIT_test.py, less needless try jobs. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11830057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176192 0039d316-1c4b-4281-b951-d872f2087c98
* Silence Valid authors debug msg in presubmitilevy@chromium.org2013-01-071-2/+1
| | | | | | | | | | | | | | Silence the valid authors debug message, unless the check fails. The message takes a lot of space because the author file is big, and is not especially helpful (just lists parse results from the authors file). NOTRY=True Review URL: https://chromiumcodereview.appspot.com/11782010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175360 0039d316-1c4b-4281-b951-d872f2087c98
* Remove last remaining call to FindOrCreateTabbedBrowser(). Fix up presubmit ↵robertshield@chromium.org2012-12-211-10/+0
| | | | | | | | | | | | check. BUG=129187 TEST=NONE Review URL: https://chromiumcodereview.appspot.com/11554003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174348 0039d316-1c4b-4281-b951-d872f2087c98
* base: Remove deprecated RunAllPending() function from MessageLoop API.tfarina@chromium.org2012-12-191-10/+0
| | | | | | | | | | | | | All the calls to RunAllPending() were moved to RunUntilIdle(), so now we can remove this. BUG=131220 R=willchan@chromium.org TBR=maruel@chromium.org # for presubmit Review URL: https://chromiumcodereview.appspot.com/11635008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173939 0039d316-1c4b-4281-b951-d872f2087c98
* PRESUBMIT #include check: exclude known cases which need a non-standard order.marja@chromium.org2012-12-181-2/+9
| | | | | | | | | | BUG=NONE NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11607019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173773 0039d316-1c4b-4281-b951-d872f2087c98
* Pass a list of strings rather than a string-as-list.joi@chromium.org2012-12-111-1/+1
| | | | | | | | | | | | | | This fixes a stupid bug that got past my testing (I tested the positive case but not the negative). TBR=maruel@chromium.org NOTRY=true BUG=None Review URL: https://chromiumcodereview.appspot.com/11534010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172328 0039d316-1c4b-4281-b951-d872f2087c98
* Add presubmit check to avoid adding hard-coded URLs or hostnames for ↵joi@chromium.org2012-12-111-17/+62
| | | | | | | | | | | server-side services to lower layers. BUG=164568 Review URL: https://chromiumcodereview.appspot.com/11475030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172221 0039d316-1c4b-4281-b951-d872f2087c98
* PRESUBMIT #include check: don't add a warning if we're committing.marja@chromium.org2012-12-101-2/+7
| | | | | | | | | | | | | This enables the commit queue to commit patches where the #include order is "wrong" according to the check. NOTRY=true BUG= Review URL: https://chromiumcodereview.appspot.com/11496010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172084 0039d316-1c4b-4281-b951-d872f2087c98
* Remove almost all usages of the context-free FindOrCreateTabbedBrowser.robertshield@chromium.org2012-12-061-1/+1
| | | | | | | | | | | Alter presubmit check to only warn about the deprecated flavour of FindOrCreateTabbedBrowser. BUG=129187 TEST=NONE Review URL: https://codereview.chromium.org/11444010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171570 0039d316-1c4b-4281-b951-d872f2087c98
* PRESUBMIT #include check enhancements.marja@chromium.org2012-12-061-29/+26
| | | | | | | | | | | | | | | | | 1) Handle #define and #undef the same way as #if etc. See e.g., https://codereview.chromium.org/11363222/diff/10015/chrome/browser/history/history_unittest.cc line 545. 2) Also headers can have the special first include, not only sources. See e.g., net/disk_cache/storage_block-inl.h. NOTRY=true BUG=NONE Review URL: https://chromiumcodereview.appspot.com/11441035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171511 0039d316-1c4b-4281-b951-d872f2087c98
* Add a presubmit check to prevent committing .rej/.orig patch filesenne@chromium.org2012-12-051-0/+11
| | | | | | | | | | | | | This is a follow-up to me having to remove some of these by hand in r171143. R=maruel@chromium.org NOTRY=true BUG=none Review URL: https://chromiumcodereview.appspot.com/11448014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171287 0039d316-1c4b-4281-b951-d872f2087c98
* Add HostDesktopType parameter to browser::FindAnyBrowser().gab@chromium.org2012-12-051-10/+0
| | | | | | | | | BUG=129187 Review URL: https://chromiumcodereview.appspot.com/11416349 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171175 0039d316-1c4b-4281-b951-d872f2087c98