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

Unified Diff: chrome/app/client_util.cc

Issue 2833023: Fix nacl build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/client_util.cc
===================================================================
--- chrome/app/client_util.cc (revision 50386)
+++ chrome/app/client_util.cc (working copy)
@@ -90,8 +90,8 @@
// value not being null to dermine if this path contains a valid dll.
HMODULE LoadChromeWithDirectory(std::wstring* dir) {
::SetCurrentDirectoryW(dir->c_str());
-#ifdef _WIN64
const CommandLine& cmd_line = *CommandLine::ForCurrentProcess();
+#ifdef _WIN64
if ((cmd_line.GetSwitchValueASCII(switches::kProcessType) ==
switches::kNaClBrokerProcess) ||
(cmd_line.GetSwitchValueASCII(switches::kProcessType) ==
@@ -111,7 +111,6 @@
// The idea is to pre read significant portion of chrome.dll in advance
// so that subsequent hard page faults are avoided.
DWORD pre_read_size_mb = 0;
- const CommandLine& cmd_line = *CommandLine::ForCurrentProcess();
if (!cmd_line.HasSwitch(switches::kProcessType) &&
(IsRunningHeadless() || InstallUtil::IsChromeFrameProcess())) {
HKEY key = NULL;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698