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

Unified Diff: chrome/browser/icon_loader_linux.cc

Issue 2058004: Move non-linux specific code from base/linux_util to app/gtk_util... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 7 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
« app/gtk_util.h ('K') | « base/linux_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/icon_loader_linux.cc
===================================================================
--- chrome/browser/icon_loader_linux.cc (revision 46986)
+++ chrome/browser/icon_loader_linux.cc (working copy)
@@ -10,7 +10,7 @@
#include "base/file_util.h"
#include "base/logging.h"
-#include "base/linux_util.h"
+#include "app/gtk_util.h"
#include "base/message_loop.h"
#include "base/mime_util.h"
#include "base/thread.h"
@@ -60,7 +60,8 @@
if (!gdk_pixbuf_get_has_alpha(pixbuf)) {
LOG(WARNING) << "Got an image with no alpha channel, aborting load.";
} else {
- uint8_t* BGRA_pixels = base::BGRAToRGBA(pixels, width, height, stride);
+ uint8_t* BGRA_pixels =
+ gtk_util::BGRAToRGBA(pixels, width, height, stride);
std::vector<unsigned char> pixel_vector;
pixel_vector.resize(height * stride);
memcpy(const_cast<unsigned char*>(pixel_vector.data()), BGRA_pixels,
« app/gtk_util.h ('K') | « base/linux_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698