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

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

Issue 14125010: Docserver: Add support for viewing docs with a codereview patch applied (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: add executable bits for tests Created 7 years, 7 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/handler.py
diff --git a/chrome/common/extensions/docs/server2/handler.py b/chrome/common/extensions/docs/server2/handler.py
index 4d289b43cf1aeaaeda0cde1bb6fc8e01676bf708..2156c1630a07121066a0580512811318c05d2517 100644
--- a/chrome/common/extensions/docs/server2/handler.py
+++ b/chrome/common/extensions/docs/server2/handler.py
@@ -4,11 +4,13 @@
from branch_utility import BranchUtility
from cron_servlet import CronServlet
+from patch_servlet import PatchServlet
from instance_servlet import InstanceServlet
from servlet import Servlet, Request, Response
_SERVLETS = {
'cron': CronServlet,
+ 'patch': PatchServlet,
}
_DEFAULT_SERVLET = InstanceServlet.GetConstructor()
@@ -16,9 +18,6 @@ class Handler(Servlet):
def Get(self):
path = self._request.path
- if path in ['favicon.ico', 'robots.txt']:
- return Response.NotFound('')
-
redirect = self._RedirectSpecialCases()
if redirect is None:
redirect = self._RedirectFromCodeDotGoogleDotCom()
« no previous file with comments | « chrome/common/extensions/docs/server2/fake_fetchers.py ('k') | chrome/common/extensions/docs/server2/instance_servlet.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698