Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: components/policy/proto/PRESUBMIT.py

Issue 112893002: Fix the copyright header on the policy protobufs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: avoid triggering webview_licenses.py in unrelated line Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/policy/proto/PRESUBMIT.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/proto/PRESUBMIT.py
diff --git a/components/policy/proto/PRESUBMIT.py b/components/policy/proto/PRESUBMIT.py
index 406e24fcf9d1080c73e0b09e151a784b58d1aa3b..50d131414e9d3a1b37f457da83db46867460a380 100644
--- a/components/policy/proto/PRESUBMIT.py
+++ b/components/policy/proto/PRESUBMIT.py
@@ -32,9 +32,9 @@ def _CheckPolicyProtobufs(input_api, output_api):
path_a = input_api.os_path.join(root, *file_a.split('/'))
path_b = input_api.os_path.join(root, *file_b.split('/'))
with open(path_a, 'r') as f_a:
- content_a = f_a.read()
+ content_a = f_a.readlines()[3:]
with open(path_b, 'r') as f_b:
- content_b = f_b.read()
+ content_b = f_b.readlines()[3:]
if content_a != content_b:
# If you get this error then check |file_pairs| and make sure that the
# contents of the files in each pair match.
« no previous file with comments | « chrome/browser/policy/proto/PRESUBMIT.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698