| Index: chrome/utility/importer/favicon_reencode.cc
|
| diff --git a/chrome/browser/importer/reencode_favicon.cc b/chrome/utility/importer/favicon_reencode.cc
|
| similarity index 84%
|
| rename from chrome/browser/importer/reencode_favicon.cc
|
| rename to chrome/utility/importer/favicon_reencode.cc
|
| index cbf261533e4ccd5ed192ddec91244aa263ee6555..37439370949dbd833c9d7932461962a838d8b544 100644
|
| --- a/chrome/browser/importer/reencode_favicon.cc
|
| +++ b/chrome/utility/importer/favicon_reencode.cc
|
| @@ -2,18 +2,19 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/importer/reencode_favicon.h"
|
| +#include "chrome/utility/importer/favicon_reencode.h"
|
|
|
| #include "content/public/child/image_decoder_utils.h"
|
| #include "skia/ext/image_operations.h"
|
| #include "third_party/skia/include/core/SkBitmap.h"
|
| #include "ui/gfx/codec/png_codec.h"
|
| #include "ui/gfx/favicon_size.h"
|
| -#include "ui/gfx/size.h"
|
|
|
| -bool ReencodeFavicon(const uint8* src_data,
|
| +namespace importer {
|
| +
|
| +bool ReencodeFavicon(const unsigned char* src_data,
|
| size_t src_len,
|
| - std::vector<uint8>* png_data) {
|
| + std::vector<unsigned char>* png_data) {
|
| // Decode the favicon using WebKit's image decoder.
|
| SkBitmap decoded = content::DecodeImage(
|
| src_data,
|
| @@ -36,3 +37,5 @@ bool ReencodeFavicon(const uint8* src_data,
|
| gfx::PNGCodec::EncodeBGRASkBitmap(decoded, false, png_data);
|
| return true;
|
| }
|
| +
|
| +} // namespace importer
|
|
|