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

Side by Side Diff: components/domain_reliability/bake_in_configs.py

Issue 938253002: Domain Reliability: Add config for *.googleadsserving.cn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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
« no previous file with comments | « no previous file | components/domain_reliability/baked_in_configs.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 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
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
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())
OLDNEW
« no previous file with comments | « no previous file | components/domain_reliability/baked_in_configs.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698