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

Unified Diff: chrome/browser/shell_integration_linux.cc

Issue 10915047: Links in platform apps should open in the system default browser. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: refine the patch. Created 8 years, 3 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
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

Powered by Google App Engine
This is Rietveld 408576698