Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1278)

Unified Diff: chrome/browser/history/top_sites_unittest.cc

Issue 7397021: Re-land r93365 - add RefCountedString (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..3ddbfca740cf88edffd84dd1ce56a620b0a90ad7 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
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/printing/cloud_print/cloud_print_setup_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698