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

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

Issue 10910208: Extensions Docs Server: Fix 404s from API links on the samples page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more changes Created 8 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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/samples_data_source.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/handler.py
diff --git a/chrome/common/extensions/docs/server2/handler.py b/chrome/common/extensions/docs/server2/handler.py
index 56506cf5edd3b3f739e53619db7d9e8331f49258..e6886fb062e03c2bcd42e02d1c7525d851f9c110 100644
--- a/chrome/common/extensions/docs/server2/handler.py
+++ b/chrome/common/extensions/docs/server2/handler.py
@@ -133,6 +133,7 @@ def _GetInstanceForBranch(channel_name, local_path):
GITHUB_FILE_SYSTEM,
cache_factory,
GITHUB_COMPILED_FILE_SYSTEM,
+ api_list_data_source_factory,
EXAMPLES_PATH)
api_data_source_factory = APIDataSource.Factory(cache_factory,
API_PATH,
@@ -329,10 +330,6 @@ class Handler(webapp.RequestHandler):
def get(self):
path = self.request.path
- if path == '/favicon.ico' or path == '/robots.txt':
- self.response.set_status(404)
- return
-
if self._RedirectSpecialCases(path):
return
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/samples_data_source.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698