summaryrefslogtreecommitdiffstats
path: root/chrome/browser/icon_manager_chromeos.cc
diff options
context:
space:
mode:
authorasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-31 19:33:55 +0000
committerasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-31 19:33:55 +0000
commit25cc75032ede82ebf2b5b07b24e279c7acb2bc6c (patch)
treee565f8112dfb97f36276582a693b8a60f08ba201 /chrome/browser/icon_manager_chromeos.cc
parentd7751c849114f9c7d69b52e1455ae249d6e54809 (diff)
downloadchromium_src-25cc75032ede82ebf2b5b07b24e279c7acb2bc6c.zip
chromium_src-25cc75032ede82ebf2b5b07b24e279c7acb2bc6c.tar.gz
chromium_src-25cc75032ede82ebf2b5b07b24e279c7acb2bc6c.tar.bz2
Consolidate icon loading on ChromeOS.
BUG=110919, 109677 TEST=unit_tests --gtest_filter=FileIconSourceTest.* && browser_tests --gtest_filter=DownloadExtensionTest.DownloadsApi_FileIcon_* Review URL: http://codereview.chromium.org/9167019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119935 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/icon_manager_chromeos.cc')
-rw-r--r--chrome/browser/icon_manager_chromeos.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/icon_manager_chromeos.cc b/chrome/browser/icon_manager_chromeos.cc
new file mode 100644
index 0000000..2f82c8f
--- /dev/null
+++ b/chrome/browser/icon_manager_chromeos.cc
@@ -0,0 +1,12 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/icon_manager.h"
+
+#include "base/file_path.h"
+#include "base/string_util.h"
+
+IconGroupID IconManager::GetGroupIDFromFilepath(const FilePath& filepath) {
+ return StringToLowerASCII(filepath.Extension());
+}