Commit 2e0a8e5d authored by cbentzel@chromium.org's avatar cbentzel@chromium.org

Prerender enabled in incognito.

This fixes the earlier attempt (http://crrev.com/127763) by increasing the memory allowed for prerendered tabs in the incognito PrerenderManager during tests as well.

BUG=108982
TEST=Open in incognito window, go to prerender-test.appspot.com and confirm that prerender works. Also, PrerenderBrowserTest.PrerenderIncognito.


Review URL: http://codereview.chromium.org/9815005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128197 0039d316-1c4b-4281-b951-d872f2087c98
parent 451c8e92
......@@ -52,4 +52,8 @@ ProfileKeyedService* PrerenderManagerFactory::BuildServiceInstanceFor(
return prerender_manager;
}
bool PrerenderManagerFactory::ServiceHasOwnInstanceInIncognito() {
return true;
}
} // end namespace prerender
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
......@@ -34,6 +34,9 @@ class PrerenderManagerFactory : public ProfileKeyedServiceFactory {
// ProfileKeyedServiceFactory:
virtual ProfileKeyedService* BuildServiceInstanceFor(
Profile* profile) const OVERRIDE;
// Prerendering is allowed in incognito.
virtual bool ServiceHasOwnInstanceInIncognito() OVERRIDE;
};
} // end namespace prerender
......
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