| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 from telemetry.page import page as page_module | 4 from telemetry.page import page as page_module |
| 5 from telemetry.page import shared_page_state | 5 from telemetry.page import shared_page_state |
| 6 from telemetry import story | 6 from telemetry import story |
| 7 | 7 |
| 8 | 8 |
| 9 class IntlKoThViPage(page_module.Page): | 9 class IntlKoThViPage(page_module.Page): |
| 10 | 10 |
| 11 def __init__(self, url, page_set): | 11 def __init__(self, url, page_set): |
| 12 super(IntlKoThViPage, self).__init__( | 12 super(IntlKoThViPage, self).__init__( |
| 13 url=url, page_set=page_set, | 13 url=url, page_set=page_set, |
| 14 shared_page_state_class=shared_page_state.SharedDesktopPageState) | 14 shared_page_state_class=shared_page_state.SharedDesktopPageState) |
| 15 self.archive_data_file = 'data/intl_ko_th_vi.json' | |
| 16 | 15 |
| 17 | 16 |
| 18 class IntlKoThViPageSet(story.StorySet): | 17 class IntlKoThViPageSet(story.StorySet): |
| 19 | 18 |
| 20 """ Popular pages in Korean, Thai and Vietnamese. """ | 19 """ Popular pages in Korean, Thai and Vietnamese. """ |
| 21 | 20 |
| 22 def __init__(self): | 21 def __init__(self): |
| 23 super(IntlKoThViPageSet, self).__init__( | 22 super(IntlKoThViPageSet, self).__init__( |
| 24 archive_data_file='data/intl_ko_th_vi.json', | 23 archive_data_file='data/intl_ko_th_vi.json', |
| 25 cloud_storage_bucket=story.PARTNER_BUCKET) | 24 cloud_storage_bucket=story.PARTNER_BUCKET) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 43 'http://www.donga.com/', | 42 'http://www.donga.com/', |
| 44 'http://www.chosun.com/', | 43 'http://www.chosun.com/', |
| 45 'http://www.danawa.com/', | 44 'http://www.danawa.com/', |
| 46 # Why: #10 site in Thailand | 45 # Why: #10 site in Thailand |
| 47 'http://pantip.com/', | 46 'http://pantip.com/', |
| 48 'http://thaimisc.com/' | 47 'http://thaimisc.com/' |
| 49 ] | 48 ] |
| 50 | 49 |
| 51 for url in urls_list: | 50 for url in urls_list: |
| 52 self.AddStory(IntlKoThViPage(url, self)) | 51 self.AddStory(IntlKoThViPage(url, self)) |
| OLD | NEW |