diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-08 16:17:05 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-08 16:17:05 +0000 |
commit | 798cb6a14bc2e306e7960555565a19df86343cbd (patch) | |
tree | 4a3b90166c560d00754fdccca3a5ecffecae4eb6 /chrome/browser/shell_integration_linux.cc | |
parent | f534741a2d3b119a08a66de8c7ec13d7b14b1580 (diff) | |
download | chromium_src-798cb6a14bc2e306e7960555565a19df86343cbd.zip chromium_src-798cb6a14bc2e306e7960555565a19df86343cbd.tar.gz chromium_src-798cb6a14bc2e306e7960555565a19df86343cbd.tar.bz2 |
Linux: remove unnecessary MimeType field from application shortcuts.
BUG=47987
TEST=unit_tests
Review URL: http://codereview.chromium.org/2817052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51848 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/shell_integration_linux.cc')
-rw-r--r-- | chrome/browser/shell_integration_linux.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc index 9927d7a..cf46e379 100644 --- a/chrome/browser/shell_integration_linux.cc +++ b/chrome/browser/shell_integration_linux.cc @@ -349,6 +349,9 @@ std::string ShellIntegration::GetDesktopFileContents( tokenizer.token().substr(0, 7) == "Comment" || tokenizer.token().substr(0, 1) == "#") { // Skip comment lines. + } else if (tokenizer.token().substr(0, 9) == "MimeType=") { + // Skip MimeType lines, they are only relevant for a web browser + // shortcut, not a web application shortcut. } else if (tokenizer.token().substr(0, 5) == "Icon=" && !icon_name.empty()) { output_buffer += StringPrintf("Icon=%s\n", icon_name.c_str()); |