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

Unified Diff: chrome/common/resource_bundle_linux.cc

Issue 67024: Adds some ifdefs so that test_shell can be compiled on linux... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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/common/resource_bundle.cc ('k') | chrome/views/widget/root_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/resource_bundle_linux.cc
===================================================================
--- chrome/common/resource_bundle_linux.cc (revision 13475)
+++ chrome/common/resource_bundle_linux.cc (working copy)
@@ -4,7 +4,9 @@
#include "chrome/common/resource_bundle.h"
+#if defined(TOOLKIT_GTK)
#include <gtk/gtk.h>
+#endif
#include "base/base_paths.h"
#include "base/data_pack.h"
@@ -120,6 +122,7 @@
return UTF16ToWide(msg);
}
+#if defined(TOOLKIT_GTK)
GdkPixbuf* ResourceBundle::LoadPixbuf(int resource_id) {
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
std::vector<unsigned char> data;
@@ -143,3 +146,4 @@
return pixbuf;
}
+#endif
« no previous file with comments | « chrome/common/resource_bundle.cc ('k') | chrome/views/widget/root_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698