OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 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 | 6 |
7 """Takes the JSON files in components/domain_reliability/baked_in_configs and | 7 """Takes the JSON files in components/domain_reliability/baked_in_configs and |
8 encodes their contents as an array of C strings that gets compiled in to Chrome | 8 encodes their contents as an array of C strings that gets compiled in to Chrome |
9 and loaded at runtime.""" | 9 and loaded at runtime.""" |
10 | 10 |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 'google.tm', | 282 'google.tm', |
283 'google.tn', | 283 'google.tn', |
284 'google.to', | 284 'google.to', |
285 'google.tt', | 285 'google.tt', |
286 'google.us', | 286 'google.us', |
287 'google.uz', | 287 'google.uz', |
288 'google.vg', | 288 'google.vg', |
289 'google.vu', | 289 'google.vu', |
290 'google.ws', | 290 'google.ws', |
291 'googleadservices.com', | 291 'googleadservices.com', |
| 292 'googleadsserving.cn', |
292 'googlealumni.com', | 293 'googlealumni.com', |
293 'googleapis.com', | 294 'googleapis.com', |
294 'googleapps.com', | 295 'googleapps.com', |
295 'googlecbs.com', | 296 'googlecbs.com', |
296 'googlecommerce.com', | 297 'googlecommerce.com', |
297 'googledrive.com', | 298 'googledrive.com', |
298 'googleenterprise.com', | 299 'googleenterprise.com', |
299 'googlegoro.com', | 300 'googlegoro.com', |
300 'googlehosted.com', | 301 'googlehosted.com', |
301 'googlepayments.com', | 302 'googlepayments.com', |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 return 1 | 550 return 1 |
550 | 551 |
551 with open(cpp_file, 'wb') as f: | 552 with open(cpp_file, 'wb') as f: |
552 f.write(cpp_code) | 553 f.write(cpp_code) |
553 | 554 |
554 return 0 | 555 return 0 |
555 | 556 |
556 | 557 |
557 if __name__ == '__main__': | 558 if __name__ == '__main__': |
558 sys.exit(main()) | 559 sys.exit(main()) |
OLD | NEW |