Index: content/shell/shell_gtk.cc |
diff --git a/content/shell/shell_gtk.cc b/content/shell/shell_gtk.cc |
index 7cb795129484774b2c9fb3057c7a6bba237462ab..38dd3772da93b7e8c793940676bf577282595f19 100644 |
--- a/content/shell/shell_gtk.cc |
+++ b/content/shell/shell_gtk.cc |
@@ -17,7 +17,9 @@ |
#include "content/public/browser/web_contents_view.h" |
#include "content/public/common/renderer_preferences.h" |
#include "content/shell/shell_switches.h" |
+#include "grit/net_resources.h" |
#include "third_party/skia/include/core/SkColor.h" |
+#include "ui/base/resource/resource_bundle.h" |
namespace content { |
@@ -25,7 +27,12 @@ void Shell::PlatformInitialize() { |
} |
base::StringPiece Shell::PlatformResourceProvider(int key) { |
- NOTIMPLEMENTED(); |
+ if (IDR_DIR_HEADER_HTML == key) { |
+ base::StringPiece html_data = |
+ ui::ResourceBundle::GetSharedInstance().GetRawDataResource( |
+ IDR_DIR_HEADER_HTML, ui::SCALE_FACTOR_NONE); |
jam
2012/08/10 15:06:15
this code looks like it's cross platform (i.e. we
jam
2012/08/10 15:10:10
nvm, juts saw that Windows is the only one that ha
jam
2012/08/10 15:42:05
just tried this on Windows, and it worked. here's
|
+ return html_data; |
+ } |
return base::StringPiece(); |
} |