Chromium Code Reviews| Index: chrome/browser/shell_integration_linux.cc |
| diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc |
| index ea05095b793ee2aac3f6ef78dc0e199dd9c30c5c..71ef1617666e5b97591f219341a6ad9ecc70ca49 100644 |
| --- a/chrome/browser/shell_integration_linux.cc |
| +++ b/chrome/browser/shell_integration_linux.cc |
| @@ -688,4 +688,13 @@ void DeleteDesktopShortcuts(const FilePath& profile_path, |
| DeleteShortcutInApplicationsMenu(shortcut_filename); |
| } |
| +void LaunchDefaultBrowser(const GURL& url) { |
|
Mihai Parparita -not on Chrome
2012/09/04 21:39:53
This is already implemented (for all platforms) by
|
| + std::vector<std::string> argv; |
| + argv.push_back("xdg-open"); |
| + argv.push_back(url.spec().c_str()); |
| + |
| + int exit_code; |
| + LaunchXdgUtility(argv, &exit_code); |
| +} |
| + |
| } // namespace ShellIntegrationLinux |