From f2a33ff9cbc6d19943f1c7fbddd1f23d23975577 Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Wed, 11 Dec 2013 21:33:03 +0100 Subject: Update Chromium to branch 1650 (31.0.1650.63) Change-Id: I57d8c832eaec1eb2364e0a8e7352a6dd354db99f Reviewed-by: Jocelyn Turcotte --- chromium/PRESUBMIT.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'chromium/PRESUBMIT.py') diff --git a/chromium/PRESUBMIT.py b/chromium/PRESUBMIT.py index 0b1f6c7f0b2..cf9941e7e1e 100644 --- a/chromium/PRESUBMIT.py +++ b/chromium/PRESUBMIT.py @@ -25,6 +25,7 @@ _EXCLUDED_PATHS = ( r".*MakeFile$", r".+_autogen\.h$", r".+[\\\/]pnacl_shim\.c$", + r"^gpu[\\\/]config[\\\/].*_list_json\.cc$", ) # Fragment of a regular expression that matches C++ and Objective-C++ @@ -156,7 +157,8 @@ _BANNED_CPP_FUNCTIONS = ( ), True, ( - r"^content[\\\/]shell[\\\/]shell_browser_main\.cc$", + r"^content[\\\/]shell[\\\/]browser[\\\/]shell_browser_main\.cc$", + r"^content[\\\/]shell[\\\/]browser[\\\/]shell_message_filter\.cc$", r"^net[\\\/]disk_cache[\\\/]cache_util\.cc$", ), ), @@ -307,7 +309,7 @@ def _CheckNoNewWStrings(input_api, output_api): problems = [] for f in input_api.AffectedFiles(): if (not f.LocalPath().endswith(('.cc', '.h')) or - f.LocalPath().endswith('test.cc')): + f.LocalPath().endswith(('test.cc', '_win.cc', '_win.h'))): continue allowWString = False @@ -569,9 +571,12 @@ def _CheckIncludeOrderInFile(input_api, f, changed_linenums): """Checks the #include order for the given file f.""" system_include_pattern = input_api.re.compile(r'\s*#include \<.*') - # Exclude #include <.../...> includes from the check; e.g., includes - # often need to appear in a specific order. - excluded_include_pattern = input_api.re.compile(r'\s*#include \<.*/.*') + # Exclude the following includes from the check: + # 1) #include <.../...>, e.g., includes often need to appear in a + # specific order. + # 2) , "build/build_config.h" + excluded_include_pattern = input_api.re.compile( + r'\s*#include (\<.*/.*|\|"build/build_config.h")') custom_include_pattern = input_api.re.compile(r'\s*#include "(?P.*)"') if_pattern = input_api.re.compile( r'\s*#\s*(if|elif|else|endif|define|undef).*') -- cgit v1.2.1