Clean up a lot of inconsistency in bookmark command handling.
First, this disconnects the omnibox editing state from whether IDC_BOOKMARK_PAGE
is enabled. See comment 8 on the bug for why I'm making this change.
Second, this brings all three platforms into sync on when the bookmark star is
actually visible, and what command it executes when clicked
(IDC_BOOKMARK_PAGE_FROM_STAR -- see bug 144586). To do this and reduce code
duplication I'm hoisting some functionality into LocationBar. Probably more
functionality is duplicated across the platform-specific subclasses that could
also be hoisted here, but let's not boil the ocean.
BUG=317578
TEST=Ctrl-D should always bookmark the current page, even if omnibox edits are in progress.
R=msw@chromium.org
Review URL: https://codereview.chromium.org/
122553004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242783 0039d316-1c4b-4281-b951-d872f2087c98