Implement forwarding of search queries for metro mode
commitf394bc63a63b5e30448c06d77d1019f933fe8890
authorcpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 22 Aug 2012 21:42:29 +0000 (22 21:42 +0000)
committercpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 22 Aug 2012 21:42:29 +0000 (22 21:42 +0000)
tree0fe00bbe8716440ebad299d40ae6bc7ffc6ef224
parentab64a08647d7fb1189989d33b4c107c1950e471d
Implement forwarding of search queries for metro mode

If chrome is the default browser, launch from the search charm does not
use the delegate_execute so if desktop chrome is running, metro chrome
needs to forward the search string and quickly quite

The source of complexity here is that to form the full url, chrome needs
to access the profile which cannot be done from the metro chrome since
the desktop chrome has the profile locked.

Instead we leveage the kMetroNavigationAndSearchMessage from the singleton
code.

BUG=141032
TEST= see bug
Review URL: https://chromiumcodereview.appspot.com/10824387

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152818 0039d316-1c4b-4281-b951-d872f2087c98
base/win/metro.cc
base/win/metro.h
chrome/browser/process_singleton_win.cc
chrome/browser/ui/startup/startup_browser_creator_win.cc