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

Side by Side Diff: chrome/browser/chromeos/input_method/litify_proto_file.py

Issue 8799005: Revert 112965 - Support mozc suggest window on ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/input_method/input_method.gyp ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Litify a .proto file. 6 """Litify a .proto file.
7 7
8 This program add a line 8 This program add a line
9 "option optimize_for = LITE_RUNTIME;" 9 "option optimize_for = LITE_RUNTIME;"
10 to the input .proto file. 10 to the input .proto file.
(...skipping 13 matching lines...) Expand all
24 output_file = open(sys.argv[2], 'w') 24 output_file = open(sys.argv[2], 'w')
25 for line in fileinput.input(sys.argv[1]): 25 for line in fileinput.input(sys.argv[1]):
26 output_file.write(line) 26 output_file.write(line)
27 27
28 output_file.write("\noption optimize_for = LITE_RUNTIME;\n") 28 output_file.write("\noption optimize_for = LITE_RUNTIME;\n")
29 return 0 29 return 0
30 30
31 31
32 if __name__ == '__main__': 32 if __name__ == '__main__':
33 sys.exit(main(sys.argv)) 33 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/input_method.gyp ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698