summaryrefslogtreecommitdiffstats
path: root/gfx/icon_util.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 14:01:59 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 14:01:59 +0000
commit386581083c4bd6d392189b57b977b0733831036b (patch)
tree3b16fc40ed7012f867eea27ad6757893b9d7fc0d /gfx/icon_util.cc
parent2558839a26e5a33f5ff00a8de14172775f201adc (diff)
downloadchromium_src-386581083c4bd6d392189b57b977b0733831036b.zip
chromium_src-386581083c4bd6d392189b57b977b0733831036b.tar.gz
chromium_src-386581083c4bd6d392189b57b977b0733831036b.tar.bz2
file_util: Get rid of file_util::AppendToPath in icon_util_unittest.cc
Use AppendASCII from FilePath API instead of the deprecated AppendToPath function. BUG=24672 TEST=trybots Signed-off-by: Thiago Farina <tfarina@chromium.org> Review URL: http://codereview.chromium.org/3046020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54311 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx/icon_util.cc')
-rw-r--r--gfx/icon_util.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gfx/icon_util.cc b/gfx/icon_util.cc
index 75435e0..35aa230 100644
--- a/gfx/icon_util.cc
+++ b/gfx/icon_util.cc
@@ -255,6 +255,10 @@ bool IconUtil::CreateIconFileFromSkBitmap(const SkBitmap& bitmap,
return !delete_file;
}
+bool IconUtil::CreateIconFileFromSkBitmap(const SkBitmap& bitmap,
+ const FilePath& icon_path) {
+ return CreateIconFileFromSkBitmap(bitmap, icon_path.ToWStringHack());
+}
bool IconUtil::PixelsHaveAlpha(const uint32* pixels, size_t num_pixels) {
for (const uint32* end = pixels + num_pixels; pixels != end; ++pixels) {
if ((*pixels & 0xff000000) != 0)