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

Unified Diff: win8/delegate_execute/command_execute_impl.cc

Issue 1604693002: Remove unused function after https://codereview.chromium.org/1586843002 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: win8/delegate_execute/command_execute_impl.cc
diff --git a/win8/delegate_execute/command_execute_impl.cc b/win8/delegate_execute/command_execute_impl.cc
index 2711336bff109e499c3a4d6c90b1ab677affcc05..bae9ee8187062400ddac0cd134f9a19237681994 100644
--- a/win8/delegate_execute/command_execute_impl.cc
+++ b/win8/delegate_execute/command_execute_impl.cc
@@ -66,44 +66,6 @@ HRESULT GetUrlFromShellItem(IShellItem* shell_item, base::string16* url) {
return S_OK;
}
-bool LaunchChromeBrowserProcess() {
- base::FilePath delegate_exe_path;
- if (!PathService::Get(base::FILE_EXE, &delegate_exe_path))
- return false;
-
- // First try and go up a level to find chrome.exe.
- base::FilePath chrome_exe_path =
- delegate_exe_path.DirName()
- .DirName()
- .Append(chrome::kBrowserProcessExecutableName);
- if (!base::PathExists(chrome_exe_path)) {
- // Try looking in the current directory if we couldn't find it one up in
- // order to support developer installs.
- chrome_exe_path =
- delegate_exe_path.DirName()
- .Append(chrome::kBrowserProcessExecutableName);
- }
-
- if (!base::PathExists(chrome_exe_path)) {
- AtlTrace("Could not locate chrome.exe at: %ls\n",
- chrome_exe_path.value().c_str());
- return false;
- }
-
- base::CommandLine cl(chrome_exe_path);
-
- // Prevent a Chrome window from showing up on the desktop.
- cl.AppendSwitch(switches::kSilentLaunch);
-
- // Tell Chrome to connect to the Metro viewer process.
- cl.AppendSwitch(switches::kViewerConnect);
-
- base::LaunchOptions launch_options;
- launch_options.start_hidden = true;
-
- return base::LaunchProcess(cl, launch_options).IsValid();
-}
-
} // namespace
bool CommandExecuteImpl::path_provider_initialized_ = false;
« 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