summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/downloads_dom_handler.cc
diff options
context:
space:
mode:
authorihf@chromium.org <ihf@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-26 23:54:28 +0000
committerihf@chromium.org <ihf@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-26 23:54:28 +0000
commit6e3debf15b7c36ded72fd5255fe28e5c67e48900 (patch)
treea2589522a9cb7c428e457234e0755a0491a69150 /chrome/browser/ui/webui/downloads_dom_handler.cc
parent16538ddb9248ad79528c1fa65e81b1d94c5b3f09 (diff)
downloadchromium_src-6e3debf15b7c36ded72fd5255fe28e5c67e48900.zip
chromium_src-6e3debf15b7c36ded72fd5255fe28e5c67e48900.tar.gz
chromium_src-6e3debf15b7c36ded72fd5255fe28e5c67e48900.tar.bz2
Add a source that looks up fileicons reading them from resources instead of disk. Allows for parameterization
via chrome://fileicon/path.ext?size=[small|medium|large] BUG=129 Review URL: http://codereview.chromium.org/7010008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86936 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui/downloads_dom_handler.cc')
-rw-r--r--chrome/browser/ui/webui/downloads_dom_handler.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/ui/webui/downloads_dom_handler.cc b/chrome/browser/ui/webui/downloads_dom_handler.cc
index 7520933..1f9b9d0 100644
--- a/chrome/browser/ui/webui/downloads_dom_handler.cc
+++ b/chrome/browser/ui/webui/downloads_dom_handler.cc
@@ -21,6 +21,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
#include "chrome/browser/ui/webui/fileicon_source.h"
+#include "chrome/browser/ui/webui/fileicon_source_cros.h"
#include "chrome/common/jstemplate_builder.h"
#include "chrome/common/url_constants.h"
#include "content/browser/browser_thread.h"
@@ -53,7 +54,11 @@ DownloadsDOMHandler::DownloadsDOMHandler(DownloadManager* dlm)
callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
// Create our fileicon data source.
dlm->profile()->GetChromeURLDataManager()->AddDataSource(
+#if defined(OS_CHROMEOS)
+ new FileIconSourceCros());
+#else
new FileIconSource());
+#endif // OS_CHROMEOS
}
DownloadsDOMHandler::~DownloadsDOMHandler() {