summaryrefslogtreecommitdiffstats
path: root/chrome/browser/icon_loader_linux.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 00:03:54 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 00:03:54 +0000
commit0664c0aac6a1c9c3c8d5039eb6c667a99e3bc18a (patch)
tree1ff544fb331bc3c46baab6332c4badfca21c2c63 /chrome/browser/icon_loader_linux.cc
parentf1e9be8a7878107347317744409c6e57834fa7e2 (diff)
downloadchromium_src-0664c0aac6a1c9c3c8d5039eb6c667a99e3bc18a.zip
chromium_src-0664c0aac6a1c9c3c8d5039eb6c667a99e3bc18a.tar.gz
chromium_src-0664c0aac6a1c9c3c8d5039eb6c667a99e3bc18a.tar.bz2
Enable SVG icons for linux.
get rid of kEnableSVG BUG=12272 TEST=I made it load an svg for the download shelf and it worked. SVGZ did not work. Review URL: http://codereview.chromium.org/159247 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21481 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/icon_loader_linux.cc')
-rw-r--r--chrome/browser/icon_loader_linux.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/icon_loader_linux.cc b/chrome/browser/icon_loader_linux.cc
index e74afc2..05a4935 100644
--- a/chrome/browser/icon_loader_linux.cc
+++ b/chrome/browser/icon_loader_linux.cc
@@ -29,8 +29,7 @@ static int SizeToInt(IconLoader::IconSize size) {
}
void IconLoader::ReadIcon() {
- int size = SizeToInt(icon_size_);
- filename_ = mime_util::GetMimeIcon(group_, size);
+ filename_ = mime_util::GetMimeIcon(group_, SizeToInt(icon_size_));
file_util::ReadFileToString(filename_, &icon_data_);
target_message_loop_->PostTask(FROM_HERE,
NewRunnableMethod(this, &IconLoader::ParseIcon));