Commit bad54ae6 authored by brettw@chromium.org's avatar brettw@chromium.org

Fix purify error for DOM UI unit test.

Review URL: http://codereview.chromium.org/42633

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12533 0039d316-1c4b-4281-b951-d872f2087c98
parent 79d7fae8
......@@ -1053,10 +1053,9 @@ NewTabUI::NewTabUI(WebContents* contents)
}
#endif
NewTabHTMLSource* html_source = new NewTabHTMLSource();
// In testing mode there may not be an I/O thread.
if (g_browser_process->io_thread()) {
NewTabHTMLSource* html_source = new NewTabHTMLSource();
g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE,
NewRunnableMethod(&chrome_url_data_manager,
&ChromeURLDataManager::AddDataSource,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment