diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-06 18:02:41 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-06 18:02:41 +0000 |
commit | a0b60cfd11d0bcccb80c703a1030e083b9e0a3ca (patch) | |
tree | 756890f4dbf9aeac0963ea64fd15dd98b25ec167 /chrome/browser/shell_integration.h | |
parent | 862829ebd7c09e5fb888996eead25b86325eaa67 (diff) | |
download | chromium_src-a0b60cfd11d0bcccb80c703a1030e083b9e0a3ca.zip chromium_src-a0b60cfd11d0bcccb80c703a1030e083b9e0a3ca.tar.gz chromium_src-a0b60cfd11d0bcccb80c703a1030e083b9e0a3ca.tar.bz2 |
Add the calculated WMClass to generated .desktop files.
(Also modifies it so that we only modify the wmclass_name, and not the
wmclass_class because the internal application names aren't meant for display
and are very ugly.)
BUG=20587
TEST=Verify with xprop that the WM_CLASS of application desktop links mmatches the StartupWMClass key in the desktop file.
Review URL: http://codereview.chromium.org/6759076
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80656 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/shell_integration.h')
-rw-r--r-- | chrome/browser/shell_integration.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/shell_integration.h b/chrome/browser/shell_integration.h index cdce891..575575e 100644 --- a/chrome/browser/shell_integration.h +++ b/chrome/browser/shell_integration.h @@ -96,8 +96,11 @@ class ShellIntegration { // 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 GURL& url, - const std::string& extension_id, const string16& title, + const std::string& template_contents, + const std::string& app_name, + const GURL& url, + const std::string& extension_id, + const string16& title, const std::string& icon_name); static void CreateDesktopShortcut(const ShortcutInfo& shortcut_info, |