Commit e4d5686c authored by cduvall@chromium.org's avatar cduvall@chromium.org

Extensions Docs Server: Disable samples on API pages to help performance

The samples are now disabled on API pages. This should make the server run
faster.

BUG=142011


Review URL: https://chromiumcodereview.appspot.com/10836223

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151468 0039d316-1c4b-4281-b951-d872f2087c98
parent 2279a334
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment