Revert 77086 - Fix Spaces switch when status bubble is shown
Revert 77086 - Fix Spaces switch when status bubble is shown

It seems like anytime -[NSWindow addChildWindow:ordered:] is called the active Space changes to the parent window's Space.

To work around this I'm changing the status bubble to attach the parent window on creation and stay attached until the parent window is deleted.

This strategy also fixes problems with cycling windows using Command-~ (bug 54924).

I've also changed StatusBubbleMac::Detach() to unset the themeProvider from the BubbleView. This should prevent crashes where the bubble view lives longer than the parent window (bug 61629).

BUG=31821, 54924, 61629


TBR=sail@chromium.org
Review URL: http://codereview.chromium.org/6623044

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@77088 0039d316-1c4b-4281-b951-d872f2087c98

ropik/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,adobe/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,ropik/chromium,ropik/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,gavinp/chromium