summaryrefslogtreecommitdiffstats
path: root/chrome_frame
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-08 16:34:18 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-08 16:34:18 +0000
commit2cf7d85c27af5f0ac85e1931dd686493064d90da (patch)
tree67c626b146f575740199c612c0c1b77184bac16c /chrome_frame
parent7da0b3399c137070e5e5b9403428c98f52b9e2c5 (diff)
downloadchromium_src-2cf7d85c27af5f0ac85e1931dd686493064d90da.zip
chromium_src-2cf7d85c27af5f0ac85e1931dd686493064d90da.tar.gz
chromium_src-2cf7d85c27af5f0ac85e1931dd686493064d90da.tar.bz2
Fix chrome frame net tests that were failing on some machines. Checking in straight away as per Robert's request.
TEST=run the net tests for chrome frame. BUG=none TBR=robertshield Review URL: http://codereview.chromium.org/527034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35794 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r--chrome_frame/test/net/fake_external_tab.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome_frame/test/net/fake_external_tab.cc b/chrome_frame/test/net/fake_external_tab.cc
index 2867bd3..2e3b61d 100644
--- a/chrome_frame/test/net/fake_external_tab.cc
+++ b/chrome_frame/test/net/fake_external_tab.cc
@@ -123,9 +123,15 @@ void FakeExternalTab::Initialize() {
cmd->AppendSwitch(switches::kSingleProcess);
browser_process_.reset(new BrowserProcessImpl(*cmd));
- RenderProcessHost::set_run_renderer_in_process(true);
// BrowserProcessImpl's constructor should set g_browser_process.
DCHECK(g_browser_process);
+ // Set the app locale and create the child threads.
+ g_browser_process->set_application_locale("en-US");
+ g_browser_process->db_thread();
+ g_browser_process->file_thread();
+ g_browser_process->io_thread();
+
+ RenderProcessHost::set_run_renderer_in_process(true);
Profile* profile = g_browser_process->profile_manager()->
GetDefaultProfile(FilePath(user_data()));