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

Unified Diff: chrome/browser/shell_integration_linux.cc

Issue 126103003: Changed RefCountedStaticMemory() to accept a void pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 10 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
« no previous file with comments | « chrome/browser/search/iframe_source_unittest.cc ('k') | chrome/browser/themes/browser_theme_pack.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/shell_integration_linux.cc
diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc
index ebf7368bddabaaf98465d48ec71c576d5f2273a3..1677d20fab3b5c6634c42e856bd5d18db03a3049 100644
--- a/chrome/browser/shell_integration_linux.cc
+++ b/chrome/browser/shell_integration_linux.cc
@@ -104,7 +104,8 @@ std::string CreateShortcutIcon(const gfx::ImageFamily& icon_images,
continue;
}
int bytes_written = file_util::WriteFile(temp_file_path,
- reinterpret_cast<const char*>(png_data->front()), png_data->size());
+ png_data->front_as<char>(),
+ png_data->size());
if (bytes_written != static_cast<int>(png_data->size()))
return std::string();
« no previous file with comments | « chrome/browser/search/iframe_source_unittest.cc ('k') | chrome/browser/themes/browser_theme_pack.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698