Commit ba24d93d authored by aa@chromium.org's avatar aa@chromium.org

Revert 149811 - adding redirect from codesite to chrome domain (bug 138776)

BUG=138776
TEST=

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

TBR=ernestd@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10830206

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150473 0039d316-1c4b-4281-b951-d872f2087c98
parent 7be7b36d
...@@ -17,7 +17,7 @@ import app_known_issues ...@@ -17,7 +17,7 @@ import app_known_issues
DEFAULT_CACHE_TIME = 300 DEFAULT_CACHE_TIME = 300
VIEW_VC_ROOT = 'http://src.chromium.org' VIEW_VC_ROOT = 'http://src.chromium.org'
CHROME_DOMAIN_URL = 'http://developer.chrome.com'
class Channel(): class Channel():
def __init__(self, name, tag): def __init__(self, name, tag):
...@@ -180,17 +180,6 @@ class MainPage(webapp.RequestHandler): ...@@ -180,17 +180,6 @@ class MainPage(webapp.RequestHandler):
return self.redirectToIndexIfNecessary() return self.redirectToIndexIfNecessary()
def redirectDomain(self):
if (self.request.url.startswith('http://code.google.com')):
for channel in ['dev', 'beta', 'stable', 'trunk']:
if channel in self.path:
position = self.path.index(channel)
self.path.pop(position)
self.path.insert(0, channel)
self.redirect(CHROME_DOMAIN_URL + '/' + '/'.join(self.path), True)
return False
def fetchContent(self): def fetchContent(self):
logging.info("fetching: %s" % str((self.branch, self.docFamily, self.path))) logging.info("fetching: %s" % str((self.branch, self.docFamily, self.path)))
...@@ -223,8 +212,7 @@ class MainPage(webapp.RequestHandler): ...@@ -223,8 +212,7 @@ class MainPage(webapp.RequestHandler):
if (not self.initPath() or if (not self.initPath() or
not self.stripPathPrefix() or not self.stripPathPrefix() or
not self.initChannel() or not self.initChannel() or
not self.initDocFamily() or not self.initDocFamily()):
not self.redirectDomain()):
return return
cacheKey = str((self.channel.name, self.docFamily, self.path)) cacheKey = str((self.channel.name, self.docFamily, self.path))
......
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