| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 | 4 |
| 5 import copy | 5 import copy |
| 6 import os.path | 6 import os.path |
| 7 import re | 7 import re |
| 8 | 8 |
| 9 from json_parse import OrderedDict | 9 from json_parse import OrderedDict |
| 10 | 10 |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 def _GetPlatforms(json): | 488 def _GetPlatforms(json): |
| 489 if 'platforms' not in json: | 489 if 'platforms' not in json: |
| 490 return None | 490 return None |
| 491 platforms = [] | 491 platforms = [] |
| 492 for platform_name in json['platforms']: | 492 for platform_name in json['platforms']: |
| 493 for platform_enum in _Enum.GetAll(Platforms): | 493 for platform_enum in _Enum.GetAll(Platforms): |
| 494 if platform_name == platform_enum.name: | 494 if platform_name == platform_enum.name: |
| 495 platforms.append(platform_enum) | 495 platforms.append(platform_enum) |
| 496 break | 496 break |
| 497 return platforms | 497 return platforms |
| OLD | NEW |