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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 'googlepayments.com', | 304 'googlepayments.com', |
305 'googlesource.com', | 305 'googlesource.com', |
306 'googlesyndication.com', | 306 'googlesyndication.com', |
307 'googletagmanager.com', | 307 'googletagmanager.com', |
308 'googletagservices.com', | 308 'googletagservices.com', |
309 'googleusercontent.com', | 309 'googleusercontent.com', |
310 'googlevideo.com', | 310 'googlevideo.com', |
311 'gstatic.com', | 311 'gstatic.com', |
312 'gvt1.com', | 312 'gvt1.com', |
313 'gvt2.com', | 313 'gvt2.com', |
| 314 'gvt6.com', |
314 'withgoogle.com', | 315 'withgoogle.com', |
315 'youtu.be', | 316 'youtu.be', |
316 'youtube-3rd-party.com', | 317 'youtube-3rd-party.com', |
317 'youtube-nocookie.com', | 318 'youtube-nocookie.com', |
318 'youtube.ae', | 319 'youtube.ae', |
319 'youtube.al', | 320 'youtube.al', |
320 'youtube.am', | 321 'youtube.am', |
321 'youtube.at', | 322 'youtube.at', |
322 'youtube.az', | 323 'youtube.az', |
323 'youtube.ba', | 324 'youtube.ba', |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 return 1 | 586 return 1 |
586 | 587 |
587 with open(opts.output, 'wb') as f: | 588 with open(opts.output, 'wb') as f: |
588 f.write(cpp_code) | 589 f.write(cpp_code) |
589 | 590 |
590 return 0 | 591 return 0 |
591 | 592 |
592 | 593 |
593 if __name__ == '__main__': | 594 if __name__ == '__main__': |
594 sys.exit(main()) | 595 sys.exit(main()) |
OLD | NEW |