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

Unified Diff: chrome/common/extensions/docs/server2/samples_data_source.py

Issue 575613003: Docserver: Gitiles auth and cron refactoring. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/samples_data_source.py
diff --git a/chrome/common/extensions/docs/server2/samples_data_source.py b/chrome/common/extensions/docs/server2/samples_data_source.py
index eabcb28979a81e46a9d8cacfee30042117b31a3e..879e21c8f03d7c22aa17790b83530a46a32b2b83 100644
--- a/chrome/common/extensions/docs/server2/samples_data_source.py
+++ b/chrome/common/extensions/docs/server2/samples_data_source.py
@@ -74,5 +74,8 @@ class SamplesDataSource(DataSource):
def get(self, platform):
return self._GetImpl(platform).Get()
- def Cron(self):
- return All([self._GetImpl(platform) for platform in GetPlatforms()])
+ def GetRefreshPaths(self):
+ return [platform for platform in GetPlatforms()]
+
+ def Refresh(self, path):
+ return self._GetImpl(path)
« no previous file with comments | « chrome/common/extensions/docs/server2/render_refresher.py ('k') | chrome/common/extensions/docs/server2/samples_model.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698