From 4bf413576fa9c6e19a16119b007112f7a32c6ffc Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Mon, 8 Mar 2010 21:21:36 +0000 Subject: chrome 1: string_util.h -> utf_string_conversions.h fix. BUG=none TEST=none Review URL: http://codereview.chromium.org/672001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40937 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser_theme_pack.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'chrome/browser/browser_theme_pack.cc') diff --git a/chrome/browser/browser_theme_pack.cc b/chrome/browser/browser_theme_pack.cc index 9f54abc..3e04d68 100644 --- a/chrome/browser/browser_theme_pack.cc +++ b/chrome/browser/browser_theme_pack.cc @@ -4,7 +4,10 @@ #include "chrome/browser/browser_theme_pack.h" +#include #include +#include +#include #include "app/gfx/codec/png_codec.h" #include "app/gfx/skbitmap_operations.h" @@ -13,6 +16,7 @@ #include "base/logging.h" #include "base/stl_util-inl.h" #include "base/string_util.h" +#include "base/utf_string_conversions.h" #include "base/values.h" #include "chrome/browser/browser_theme_provider.h" #include "chrome/browser/chrome_thread.h" @@ -457,7 +461,7 @@ bool BrowserThemePack::WriteToDisk(FilePath path) const { source_count++; resources[kSourceImagesID] = base::StringPiece( reinterpret_cast(source_images_), - source_count * sizeof(int)); + source_count * sizeof(*source_images_)); AddRawImagesTo(image_memory_, &resources); @@ -637,7 +641,6 @@ void BrowserThemePack::BuildTintsFromJSON(DictionaryValue* tints_value) { if (ValidRealValue(tint_list, 0, &hsl.h) && ValidRealValue(tint_list, 1, &hsl.s) && ValidRealValue(tint_list, 2, &hsl.l)) { - int id = GetIntForString(WideToUTF8(*iter), kTintTable); if (id != -1) { temp_tints[id] = hsl; -- cgit v1.1