summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authorxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 17:49:40 +0000
committerxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 17:49:40 +0000
commitd2ceb4e7fe001e55d540784abac24620dc6b4a4a (patch)
tree3e426f088d0d6a2e774bff9cf81429614b2bea98 /chrome/test
parentdc8e44a27106d13d8605ccfa2ca0dd8ef3959bef (diff)
downloadchromium_src-d2ceb4e7fe001e55d540784abac24620dc6b4a4a.zip
chromium_src-d2ceb4e7fe001e55d540784abac24620dc6b4a4a.tar.gz
chromium_src-d2ceb4e7fe001e55d540784abac24620dc6b4a4a.tar.bz2
Move NativeThemeChromeOS into gfx.
This should fix test_shell/DRT build on ChromeOS. BUG=chromium-os:13511 TEST=Verify test_shell/DRT builds fine on ChromeOS per chromium-os:13511. Review URL: http://codereview.chromium.org/6745009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79585 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/render_view_test.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/test/render_view_test.cc b/chrome/test/render_view_test.cc
index 7166309..1e15017 100644
--- a/chrome/test/render_view_test.cc
+++ b/chrome/test/render_view_test.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/extensions/extension_function_dispatcher.h"
#include "chrome/common/extensions/extension.h"
+#include "chrome/common/gfx_resource_provider.h"
#include "chrome/common/print_messages.h"
#include "chrome/common/render_messages.h"
#include "chrome/renderer/autofill/autofill_agent.h"
@@ -27,6 +28,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
+#include "ui/gfx/gfx_module.h"
#include "webkit/glue/webkit_glue.h"
#if defined(OS_LINUX)
@@ -94,6 +96,9 @@ void RenderViewTest::LoadHTML(const char* html) {
}
void RenderViewTest::SetUp() {
+ // Configure modules that need access to resources.
+ gfx::GfxModule::SetResourceProvider(chrome::GfxResourceProvider);
+
content::GetContentClient()->set_renderer(&content_renderer_client_);
sandbox_init_wrapper_.reset(new SandboxInitWrapper());
command_line_.reset(new CommandLine(CommandLine::NO_PROGRAM));