Fix a crash when tracing is enabled.
commite8e70cea9c47fd9ff93354e440864aceeb99e1b9
authorigsolla@chromium.org <igsolla@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 14 Mar 2014 11:50:59 +0000 (14 11:50 +0000)
committerigsolla@chromium.org <igsolla@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 14 Mar 2014 11:50:59 +0000 (14 11:50 +0000)
treeda5d03a378ce4445f8ab1f11d35e50f6cd97cc71
parent97f9a79537137f82e53a0d1448cbb0aa33d0194f
Fix a crash when tracing is enabled.

InitStartupTracing posts a task to end the startup tracing so it
should only be called after the main message loop is started
(PostMainMessageLoopStart()). Otherwise the browser will crash
when MessagePumpForUI::ScheduleWork() is called before
MessagePumpForUI::Start().

BUG=352223

Review URL: https://codereview.chromium.org/198713003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257080 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/browser_main_loop.cc