| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 from itertools import groupby | 5 from itertools import groupby |
| 6 from operator import itemgetter | 6 from operator import itemgetter |
| 7 import posixpath | 7 import posixpath |
| 8 | 8 |
| 9 from data_source import DataSource | 9 from data_source import DataSource |
| 10 from extensions_paths import JSON_TEMPLATES, PUBLIC_TEMPLATES | 10 from extensions_paths import JSON_TEMPLATES, PUBLIC_TEMPLATES |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 def _GetCachedWhatsNewData(self): | 89 def _GetCachedWhatsNewData(self): |
| 90 data = self._object_store.Get('whats_new_data').Get() | 90 data = self._object_store.Get('whats_new_data').Get() |
| 91 if data is None: | 91 if data is None: |
| 92 data = self._GenerateWhatsNewDict().Get() | 92 data = self._GenerateWhatsNewDict().Get() |
| 93 self._object_store.Set('whats_new_data', data) | 93 self._object_store.Set('whats_new_data', data) |
| 94 return data | 94 return data |
| 95 | 95 |
| 96 def get(self, key): | 96 def get(self, key): |
| 97 return self._GetCachedWhatsNewData().get(key) | 97 return self._GetCachedWhatsNewData().get(key) |
| 98 | 98 |
| 99 def Cron(self): | 99 def Refresh(self, path): |
| 100 return self._GenerateWhatsNewDict() | 100 return self._GenerateWhatsNewDict() |
| OLD | NEW |