summaryrefslogtreecommitdiffstats
path: root/gfx/icon_util.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-14 19:06:30 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-14 19:06:30 +0000
commit98af9aca7168f061bfaae5cd4f4eb3f7de4e70e7 (patch)
treeb2a1eafeb6863d2ca93615034b7dab005fd2e72b /gfx/icon_util.cc
parentc70d067f569f4d927e7be8f221f856812af396d7 (diff)
downloadchromium_src-98af9aca7168f061bfaae5cd4f4eb3f7de4e70e7.zip
chromium_src-98af9aca7168f061bfaae5cd4f4eb3f7de4e70e7.tar.gz
chromium_src-98af9aca7168f061bfaae5cd4f4eb3f7de4e70e7.tar.bz2
Create a path provider for gfx, allowing the removal of the temporary app dependency.
TBR=darin BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41552 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx/icon_util.cc')
-rw-r--r--gfx/icon_util.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/gfx/icon_util.cc b/gfx/icon_util.cc
index 243ed17..f26ab95 100644
--- a/gfx/icon_util.cc
+++ b/gfx/icon_util.cc
@@ -4,10 +4,10 @@
#include "gfx/icon_util.h"
-#include "app/win_util.h"
#include "base/file_util.h"
#include "base/gfx/size.h"
#include "base/logging.h"
+#include "base/scoped_handle.h"
#include "base/scoped_ptr.h"
#include "skia/ext/image_operations.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -204,13 +204,13 @@ bool IconUtil::CreateIconFileFromSkBitmap(const SkBitmap& bitmap,
}
// We start by creating the file.
- win_util::ScopedHandle icon_file(::CreateFile(icon_file_name.c_str(),
- GENERIC_WRITE,
- 0,
- NULL,
- CREATE_ALWAYS,
- FILE_ATTRIBUTE_NORMAL,
- NULL));
+ ScopedHandle icon_file(::CreateFile(icon_file_name.c_str(),
+ GENERIC_WRITE,
+ 0,
+ NULL,
+ CREATE_ALWAYS,
+ FILE_ATTRIBUTE_NORMAL,
+ NULL));
if (icon_file.Get() == INVALID_HANDLE_VALUE) {
return false;