Omnibox: Fix Crash by Setting Provider Type for SearchTermReplacement Queries
commit1016074c41532c7516244956593def1ab27638bc
authormpearson@chromium.org <mpearson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 16 May 2014 00:49:33 +0000 (16 00:49 +0000)
committermpearson@chromium.org <mpearson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 16 May 2014 00:49:33 +0000 (16 00:49 +0000)
tree376c2e22105d72547c0c4e9fc6310cbb5ea128d0
parent6c20569c3d194a12bf282a01673af1c8584d7340
Omnibox: Fix Crash by Setting Provider Type for SearchTermReplacement Queries

Test:
1. run chrome with a metrics enabled and with force-fieldtrials to
  get into a search-term-replacement group
2. enter a query, hit return
3. on the search results page, click in the omnibox and press
  return again (no typing), this reissuing the query while keeping
  the omnibox closed.
4. before this change, the browser would crash.  now it does not.

BUG=370119

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270879 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/ui/omnibox/omnibox_edit_model.cc