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

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

Issue 7397021: Re-land r93365 - add RefCountedString (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: erg comments 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.cc
diff --git a/chrome/browser/history/top_sites.cc b/chrome/browser/history/top_sites.cc
index 1c6f67f9e1353806ed56411a564ac73384c3d336..cfd8c355a1f7b12de1d6ddd2a01c85da9b75c591 100644
--- a/chrome/browser/history/top_sites.cc
+++ b/chrome/browser/history/top_sites.cc
@@ -606,7 +606,7 @@ bool TopSites::EncodeBitmap(const SkBitmap& bitmap,
}
// As we're going to cache this data, make sure the vector is only as big as
// it needs to be.
- (*bytes)->data = data;
+ (*bytes)->data()->swap(data);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698