diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-26 20:01:49 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-26 20:01:49 +0000 |
commit | e3c945500273d95512e31180f4f49fa399f8091d (patch) | |
tree | 6fb1fa3d2679346e006464aa943f67359c6f7745 /PRESUBMIT.py | |
parent | 3e2d96f1b6ba00dc40c6ef51189be9e3177dc6df (diff) | |
download | chromium_src-e3c945500273d95512e31180f4f49fa399f8091d.zip chromium_src-e3c945500273d95512e31180f4f49fa399f8091d.tar.gz chromium_src-e3c945500273d95512e31180f4f49fa399f8091d.tar.bz2 |
Add a presubmit check to stop any more usages of harmful browser::Find* methods while we work through the existing list.
BUG=129187
Review URL: https://chromiumcodereview.appspot.com/10636058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144245 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r-- | PRESUBMIT.py | 55 |
1 files changed, 50 insertions, 5 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index ab24b57..cfd0cda 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -114,7 +114,7 @@ _BANNED_CPP_FUNCTIONS = ( ( 'FRIEND_TEST(', ( - 'Chromium code should not use gtest\'s FRIEND_TEST() macro. Include' + 'Chromium code should not use gtest\'s FRIEND_TEST() macro. Include', 'base/gtest_prod_util.h and use FRIEND_TEST_ALL_PREFIXES() instead.', ), False, @@ -122,19 +122,64 @@ _BANNED_CPP_FUNCTIONS = ( ( 'ScopedAllowIO', ( - 'New code should not use ScopedAllowIO. Post a task to the blocking pool' - 'or the FILE thread instead.', + 'New code should not use ScopedAllowIO. Post a task to the blocking', + 'pool or the FILE thread instead.', ), - False, + True, ), ( 'FilePathWatcher::Delegate', ( - 'New code should not use FilePathWatcher::Delegate. Use the callback' + 'New code should not use FilePathWatcher::Delegate. Use the callback', 'interface instead.', ), False, ), + ( + 'browser::FindLastActiveWithProfile', + ( + 'This function is deprecated and we\'re working on removing it. Pass', + 'more context to get a Browser*, like a WebContents, window, or session', + 'id. Talk to ben@ or jam@ for more information.', + ), + True, + ), + ( + 'browser::FindBrowserWithProfile', + ( + 'This function is deprecated and we\'re working on removing it. Pass', + 'more context to get a Browser*, like a WebContents, window, or session', + 'id. Talk to ben@ or jam@ for more information.', + ), + True, + ), + ( + 'browser::FindAnyBrowser', + ( + 'This function is deprecated and we\'re working on removing it. Pass', + 'more context to get a Browser*, like a WebContents, window, or session', + 'id. Talk to ben@ or jam@ for more information.', + ), + True, + ), + ( + 'browser::FindOrCreateTabbedBrowser', + ( + 'This function is deprecated and we\'re working on removing it. Pass', + 'more context to get a Browser*, like a WebContents, window, or session', + 'id. Talk to ben@ or jam@ for more information.', + ), + True, + ), + ( + 'browser::FindTabbedBrowser', + ( + 'This function is deprecated and we\'re working on removing it. Pass', + 'more context to get a Browser*, like a WebContents, window, or session', + 'id. Talk to ben@ or jam@ for more information.', + ), + True, + ), ) |