summaryrefslogtreecommitdiffstats
path: root/chrome/app/client_util.cc
diff options
context:
space:
mode:
authorslightlyoff@chromium.org <slightlyoff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-13 22:21:59 +0000
committerslightlyoff@chromium.org <slightlyoff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-13 22:21:59 +0000
commitbdf411b661a997857619a520c2812e98ba8006a1 (patch)
treeae0ada9a83613f6a08480263191b4fa503006f5d /chrome/app/client_util.cc
parent7092f803e030d6ae7c789598d11fcd4d678abedc (diff)
downloadchromium_src-bdf411b661a997857619a520c2812e98ba8006a1.zip
chromium_src-bdf411b661a997857619a520c2812e98ba8006a1.tar.gz
chromium_src-bdf411b661a997857619a520c2812e98ba8006a1.tar.bz2
After verifying the startup win though more testing, removing the guards around the pre-reading optimization.
BUG=45510 TEST=None Review URL: http://codereview.chromium.org/2891014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52234 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/client_util.cc')
-rw-r--r--chrome/app/client_util.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/chrome/app/client_util.cc b/chrome/app/client_util.cc
index 9f5d596..0a5fed1 100644
--- a/chrome/app/client_util.cc
+++ b/chrome/app/client_util.cc
@@ -82,10 +82,6 @@ bool EnvQueryStr(const wchar_t* key_name, std::wstring* value) {
return true;
}
-bool IsRunningHeadless() {
- return (0 != ::GetEnvironmentVariableW(L"CHROME_HEADLESS", NULL, 0));
-}
-
// Expects that |dir| has a trailing backslash. |dir| is modified so it
// contains the full path that was tried. Caller must check for the return
// value not being null to dermine if this path contains a valid dll.
@@ -112,8 +108,7 @@ HMODULE LoadChromeWithDirectory(std::wstring* dir) {
// Experimental pre-reading optimization
// The idea is to pre read significant portion of chrome.dll in advance
// so that subsequent hard page faults are avoided.
- if (!cmd_line.HasSwitch(switches::kProcessType) &&
- (IsRunningHeadless() || InstallUtil::IsChromeFrameProcess())) {
+ if (!cmd_line.HasSwitch(switches::kProcessType)) {
// The kernel brings in 8 pages for the code section at a time and 4 pages
// for other sections. We can skip over these pages to avoid a soft page
// fault which may not occur during code execution. However skipping 4K at