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

Unified Diff: chrome/browser/shell_integration.h

Issue 10097004: Moved Linux specific shell integration declarations into own header. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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 | « chrome/browser/background/background_mode_manager_gtk.cc ('k') | chrome/browser/shell_integration_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/shell_integration.h
diff --git a/chrome/browser/shell_integration.h b/chrome/browser/shell_integration.h
index a96e16ed8287d00c3bb8c4b94e7fb220828121e6..5571da1c90ffd4b03d9570938d1b39481a395709 100644
--- a/chrome/browser/shell_integration.h
+++ b/chrome/browser/shell_integration.h
@@ -17,12 +17,6 @@
class CommandLine;
-#if defined(USE_X11)
-namespace base {
-class Environment;
-}
-#endif
-
class ShellIntegration {
public:
// Sets Chrome as the default browser (only for the current user). Returns
@@ -119,34 +113,6 @@ class ShellIntegration {
const FilePath& user_data_dir,
const FilePath& extension_path);
-#if defined(USE_X11)
- // Returns filename of the desktop shortcut used to launch the browser.
- static std::string GetDesktopName(base::Environment* env);
-
- static bool GetDesktopShortcutTemplate(base::Environment* env,
- std::string* output);
-
- // Returns filename for .desktop file based on |url|, sanitized for security.
- static FilePath GetDesktopShortcutFilename(const GURL& url);
-
- // Returns contents for .desktop file based on |template_contents|, |url|
- // and |title|. The |template_contents| should be contents of .desktop file
- // used to launch Chrome.
- static std::string GetDesktopFileContents(
- const std::string& template_contents,
- const std::string& app_name,
- const GURL& url,
- const std::string& extension_id,
- const bool is_platform_app,
- const FilePath& web_app_path,
- const FilePath& extension_path,
- const string16& title,
- const std::string& icon_name);
-
- static bool CreateDesktopShortcut(const ShortcutInfo& shortcut_info,
- const std::string& shortcut_template);
-#endif // defined(USE_X11)
-
#if defined(OS_WIN)
// Generates Win7 app id for given app name and profile path. The returned app
// id is in the format of "|app_name|[.<profile_id>]". "profile_id" is
« no previous file with comments | « chrome/browser/background/background_mode_manager_gtk.cc ('k') | chrome/browser/shell_integration_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698