diff options
author | scottmg <scottmg@chromium.org> | 2016-01-18 20:15:54 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-19 04:17:22 +0000 |
commit | 459c246b5b9e02eb98310e729bdfaada5f7b4521 (patch) | |
tree | 346f5c713ab726ce9c59ffa9db7b36e56c8df723 /win8 | |
parent | f527e8602d8b4cb18c973d143cb6e33cb4ea6922 (diff) | |
download | chromium_src-459c246b5b9e02eb98310e729bdfaada5f7b4521.zip chromium_src-459c246b5b9e02eb98310e729bdfaada5f7b4521.tar.gz chromium_src-459c246b5b9e02eb98310e729bdfaada5f7b4521.tar.bz2 |
Remove unused function after https://codereview.chromium.org/1586843002
Found by clang:
..\..\win8\delegate_execute\command_execute_impl.cc(69,6) : error: unused function 'LaunchChromeBrowserProcess' [-Werror,-Wunused-function]
R=thakis@chromium.org
TBR=ananta@chromium.org
BUG=558054,82385
Review URL: https://codereview.chromium.org/1604693002
Cr-Commit-Position: refs/heads/master@{#370074}
Diffstat (limited to 'win8')
-rw-r--r-- | win8/delegate_execute/command_execute_impl.cc | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/win8/delegate_execute/command_execute_impl.cc b/win8/delegate_execute/command_execute_impl.cc index 2711336..bae9ee8 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; |