| Index: PRESUBMIT.py
|
| diff --git a/PRESUBMIT.py b/PRESUBMIT.py
|
| index 55131cdd3acf92ecb39e109ad0d01b73fae0970e..6d09321209f2452fdfd08bb2e8f9668f5834177d 100644
|
| --- a/PRESUBMIT.py
|
| +++ b/PRESUBMIT.py
|
| @@ -368,6 +368,20 @@ _BANNED_CPP_FUNCTIONS = (
|
| False,
|
| (),
|
| ),
|
| + (
|
| + 'CallJavascriptFunctionUnsafe',
|
| + (
|
| + "Don't use CallJavascriptFunctionUnsafe() in new code. Instead, use",
|
| + 'AllowJavascript(), OnJavascriptAllowed()/OnJavascriptDisallowed(),',
|
| + 'and CallJavascriptFunction(). See https://goo.gl/qivavq.',
|
| + ),
|
| + False,
|
| + (
|
| + r'^content[\\\/]browser[\\\/]webui[\\\/]web_ui_impl\.(cc|h)$',
|
| + r'^content[\\\/]public[\\\/]browser[\\\/]web_ui\.h$',
|
| + r'^content[\\\/]public[\\\/]test[\\\/]test_web_ui\.(cc|h)$',
|
| + ),
|
| + ),
|
| )
|
|
|
|
|
|
|