| Index: chrome/browser/history/top_sites_unittest.cc
|
| diff --git a/chrome/browser/history/top_sites_unittest.cc b/chrome/browser/history/top_sites_unittest.cc
|
| index ee487c32d69bff57a1b52df36773f3aff233f9a9..ee65bc13f6996cd28465088625f52a9612af0c7d 100644
|
| --- a/chrome/browser/history/top_sites_unittest.cc
|
| +++ b/chrome/browser/history/top_sites_unittest.cc
|
| @@ -108,7 +108,7 @@ class TopSitesQuerier {
|
| // thumbnail data, which is stored as jpgs.
|
| SkBitmap ExtractThumbnail(const RefCountedBytes& t1) {
|
| scoped_ptr<SkBitmap> image(gfx::JPEGCodec::Decode(t1.front(),
|
| - t1.data.size()));
|
| + t1.size()));
|
| return image.get() ? *image : SkBitmap();
|
| }
|
|
|
| @@ -116,11 +116,11 @@ SkBitmap ExtractThumbnail(const RefCountedBytes& t1) {
|
| bool ThumbnailsAreEqual(RefCountedBytes* t1, RefCountedBytes* t2) {
|
| if (!t1 || !t2)
|
| return false;
|
| - if (t1->data.size() != t2->data.size())
|
| + if (t1->size() != t2->size())
|
| return false;
|
| - return std::equal(t1->data.begin(),
|
| - t1->data.end(),
|
| - t2->data.begin());
|
| + return std::equal(t1->data()->begin(),
|
| + t1->data()->end(),
|
| + t2->data()->begin());
|
| }
|
|
|
| } // namespace
|
|
|