Crash fix.

I don't see how tab_contents_ could be NULL inside PrepareForCommit().
Even if Update() had never been called, OnAutocompleteGotFocus() should
have set a valid tab_contents_. Anyway, check for it before trying to
access the profile().

BUG=100521
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105858 0039d316-1c4b-4281-b951-d872f2087c98
1 file changed