Revisions and Commits
I think I missed one case here: the global preference will currently show custom personal queries for the viewing user, but selecting these queries won't work (at least, not completely) for other users. Instead, the control should offer only hard-coded options and global queries.
There may also be no Application in contexts where we want to render a global search menu, notably the 404 page:
Argument 2 passed to PhabricatorMainMenuSearchView::getGlobalSearchScopeItems() must be an instance of PhabricatorApplication, null given, called in /Users/epriestley/dev/core/lib/phabricator/src/view/page/menu/PhabricatorMainMenuSearchView.php on line 194