summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/PRESUBMIT.py
diff options
context:
space:
mode:
authorgayane <gayane@chromium.org>2014-12-05 08:16:46 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-05 16:18:18 +0000
commit860db5c33134662dd2a27c8c295df8d55fdbadea (patch)
treee1623e3be875cb7c1f9715b895869cd6c817ab57 /chrome/browser/resources/PRESUBMIT.py
parent1521a2f69c826dcaaecafb10e0875573dce77265 (diff)
downloadchromium_src-860db5c33134662dd2a27c8c295df8d55fdbadea.zip
chromium_src-860db5c33134662dd2a27c8c295df8d55fdbadea.tar.gz
chromium_src-860db5c33134662dd2a27c8c295df8d55fdbadea.tar.bz2
Fixing bugs introduced by new presubmit changes
Fixing issues introduced by https://codereview.chromium.org/719463003/. - Fixing the constant suffix in case of boolean action - comment fix for mocks. BUG=439328 TBR=phajdan.jr@chromium.org, brettw@chromium.org Review URL: https://codereview.chromium.org/757233004 Cr-Commit-Position: refs/heads/master@{#307030}
Diffstat (limited to 'chrome/browser/resources/PRESUBMIT.py')
-rw-r--r--chrome/browser/resources/PRESUBMIT.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/resources/PRESUBMIT.py b/chrome/browser/resources/PRESUBMIT.py
index 0aa7b96..e22e2a0 100644
--- a/chrome/browser/resources/PRESUBMIT.py
+++ b/chrome/browser/resources/PRESUBMIT.py
@@ -59,8 +59,8 @@ def IsActionPresent(current_actions, metric_name, is_boolean):
action = 'name="{0}"'.format(metric_name)
return action in current_actions
- action_disabled = 'name="{0}_Disabled"'.format(metric_name)
- action_enabled = 'name="{0}_Enabled"'.format(metric_name)
+ action_disabled = 'name="{0}_Disable"'.format(metric_name)
+ action_enabled = 'name="{0}_Enable"'.format(metric_name)
return (action_disabled in current_actions and
action_enabled in current_actions)