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

Unified Diff: chrome/browser/sync/test/integration/bookmarks_helper.cc

Issue 78903003: Added a new overload of gfx::Image::CreateFrom1xPNGBytes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years 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/sync/test/integration/bookmarks_helper.cc
diff --git a/chrome/browser/sync/test/integration/bookmarks_helper.cc b/chrome/browser/sync/test/integration/bookmarks_helper.cc
index 91ee0769e4b2f37be7640576a7c60986961a4282..c25680909949813fe0519a609b20e412e09ae491 100644
--- a/chrome/browser/sync/test/integration/bookmarks_helper.cc
+++ b/chrome/browser/sync/test/integration/bookmarks_helper.cc
@@ -741,7 +741,7 @@ gfx::Image Create1xFaviconFromPNGFile(const std::string& path) {
std::string contents;
base::ReadFileToString(full_path, &contents);
return gfx::Image::CreateFrom1xPNGBytes(
- reinterpret_cast<const unsigned char*>(contents.data()), contents.size());
+ base::RefCountedString::TakeString(&contents));
}
std::string IndexedURL(int i) {
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.cc ('k') | chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698