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

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

Issue 10836223: Extensions Docs Server: Disable samples on API pages to help performance (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: {} -> None Created 8 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/api_data_source.py
diff --git a/chrome/common/extensions/docs/server2/api_data_source.py b/chrome/common/extensions/docs/server2/api_data_source.py
index 47347af2178ee73c40fc107378230c8dea170436..f912e4e446cc8986cdba20e56549cc24407d9611 100644
--- a/chrome/common/extensions/docs/server2/api_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_data_source.py
@@ -85,7 +85,9 @@ class APIDataSource(object):
def _GenerateHandlebarContext(self, handlebar, path):
return_dict = {
'permissions': self._GetFeature(path),
- 'samples': _LazySamplesGetter(path, self._samples)
+ # Disabled to help with performance until we figure out
+ # http://crbug.com/142011.
+ 'samples': None # _LazySamplesGetter(path, self._samples)
}
return_dict.update(handlebar.Generate())
return return_dict
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698