fix to show detached bookmark bar on NTP when "Show bookmarks bar" is on.

cause:
bookmark bar state in Browser wasn't updated when BrowserView::OnActiveTabChanged queries it to update the bookmark bar.

fix:
determine new bookmark bar state in Browser before calling BrowserView::OnActiveTabChanged.

BUG=299131
TEST=verify per bug rpt

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226454 0039d316-1c4b-4281-b951-d872f2087c98
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226455 0039d316-1c4b-4281-b951-d872f2087c98
Correct and simplify the cookie events browser test

The listeners were being removed in the completion callback to
chrome.cookies.set instead of in the chrome.cookiesonChanged
listener. Nothing guaranteed the order of these two, so the test
begun failing when delete started waiting for flush in
<https://chromiumcodereview.appspot.com/18032002>.

Simplify the tests by using listenOnce/listenForever.

BUG=302914

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226456 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 226456