diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-13 21:35:32 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-13 21:35:32 +0000 |
commit | 1a14188b1eb6a595da3e2f012e9223ca2b55f590 (patch) | |
tree | 2cb98728573b7f3cd5f778b69334a471e3a1a39e /chrome/common/resource_bundle.cc | |
parent | 73d00e88fde4c84c583fc9b04a0b2626f9f4b74a (diff) | |
download | chromium_src-1a14188b1eb6a595da3e2f012e9223ca2b55f590.zip chromium_src-1a14188b1eb6a595da3e2f012e9223ca2b55f590.tar.gz chromium_src-1a14188b1eb6a595da3e2f012e9223ca2b55f590.tar.bz2 |
Make resource_bundle compile on Linux.
It's still missing implementations of many functions, but those will be
easier to implement once we have the data file generation working, which
Tony has underway.
Review URL: http://codereview.chromium.org/17392
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7969 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/resource_bundle.cc')
-rw-r--r-- | chrome/common/resource_bundle.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/common/resource_bundle.cc b/chrome/common/resource_bundle.cc index ed15af8..c97f1b2 100644 --- a/chrome/common/resource_bundle.cc +++ b/chrome/common/resource_bundle.cc @@ -4,7 +4,9 @@ #include "chrome/common/resource_bundle.h" +#if defined(OS_WIN) #include <atlbase.h> +#endif #include "base/gfx/png_decoder.h" #include "base/logging.h" @@ -86,6 +88,7 @@ SkBitmap* ResourceBundle::GetBitmapNamed(int resource_id) { bitmap.reset(LoadBitmap(theme_data_, resource_id)); #if defined(OS_WIN) + // TODO(port): refactor to remove this. // If we did not find the bitmap in the theme DLL, try the current one. if (!bitmap.get()) bitmap.reset(LoadBitmap(_AtlBaseModule.GetModuleInstance(), resource_id)); |