summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-21 16:40:17 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-21 16:40:17 +0000
commitea7d96f31cd0cdef3e0e0926744fe672d35537a0 (patch)
tree73ac764e80c47e7aec70bba15c70264a7cb6b255 /chrome/renderer
parent5eeef7b811f482b57db0ae33623c436370dd3c83 (diff)
downloadchromium_src-ea7d96f31cd0cdef3e0e0926744fe672d35537a0.zip
chromium_src-ea7d96f31cd0cdef3e0e0926744fe672d35537a0.tar.gz
chromium_src-ea7d96f31cd0cdef3e0e0926744fe672d35537a0.tar.bz2
Fix single process mode and the unit_tests on Linux.
argh, this used to work in my previous change but it must have regressed before checkin. Review URL: http://codereview.chromium.org/155846 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21180 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_thread.cc7
-rw-r--r--chrome/renderer/render_thread_unittest.cc4
2 files changed, 5 insertions, 6 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index 7a5a8be..80811b2 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -87,14 +87,12 @@ class SuicideOnChannelErrorFilter : public IPC::ChannelProxy::MessageFilter {
// When we run plugins in process, we actually run them on the render thread,
// which means that we need to make the render thread pump UI events.
-RenderThread::RenderThread()
- : plugin_refresh_allowed_(true) {
+RenderThread::RenderThread() {
Init();
}
RenderThread::RenderThread(const std::string& channel_name)
- : plugin_refresh_allowed_(true) {
- SetChannelName(channel_name);
+ : ChildThread(channel_name) {
Init();
}
@@ -107,6 +105,7 @@ void RenderThread::Init() {
CoInitialize(0);
#endif
+ plugin_refresh_allowed_ = true;
cache_stats_factory_.reset(
new ScopedRunnableMethodFactory<RenderThread>(this));
diff --git a/chrome/renderer/render_thread_unittest.cc b/chrome/renderer/render_thread_unittest.cc
index 711cc42..aa370a5 100644
--- a/chrome/renderer/render_thread_unittest.cc
+++ b/chrome/renderer/render_thread_unittest.cc
@@ -40,11 +40,11 @@ class RenderThreadTest : public testing::Test {
IPC::Channel *channel_;
};
-TEST_F(RenderThreadTest, DISABLED_TestGlobal) {
+TEST_F(RenderThreadTest, TestGlobal) {
ASSERT_TRUE(RenderThread::current());
}
-TEST_F(RenderThreadTest, DISABLED_TestVisitedMsg) {
+TEST_F(RenderThreadTest, TestVisitedMsg) {
#if defined(OS_WIN)
IPC::Message* msg = new ViewMsg_VisitedLink_NewTable(NULL);
#elif defined(OS_POSIX)