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

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

Issue 54603010: Docserver: Implement the content providers infrastructure, where a (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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/servlet.py
diff --git a/chrome/common/extensions/docs/server2/servlet.py b/chrome/common/extensions/docs/server2/servlet.py
index 59ebb5b59152f9390c68bc9d379a1866137cd805..f7c14e7b84baa0d92d0da29f4f5f0cd68c138b91 100644
--- a/chrome/common/extensions/docs/server2/servlet.py
+++ b/chrome/common/extensions/docs/server2/servlet.py
@@ -105,6 +105,9 @@ class Response(object):
return (None, None)
return (self.headers.get('Location'), self.status == 301)
+ def IsNotFound(self):
+ return self.status == 404
+
def __eq__(self, other):
return (isinstance(other, self.__class__) and
str(other.content) == str(self.content) and

Powered by Google App Engine
This is Rietveld 408576698