From 2cf7d85c27af5f0ac85e1931dd686493064d90da Mon Sep 17 00:00:00 2001 From: "tommi@chromium.org" Date: Fri, 8 Jan 2010 16:34:18 +0000 Subject: 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 --- chrome_frame/test/net/fake_external_tab.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'chrome_frame') 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())); -- cgit v1.1