Make sure tray widget doesn't move to other root windows.
There were two reasons why this was failing
- Test was using too small display (width=100), which
makes the tray widget's origin outside of the root.
- GetDisplayNearestWindow was modified to use GetDisplayAt
when we disabled extended desktop for 23. This fixes to use
GetPrimaryDisplay()
I also added kStayInSameRootWindowKey to make sure it will
never leave the same root window.
BUG=none
TEST=ExtendedDesktopTest.OpenSystemTray pass without null check.
Review URL: https://chromiumcodereview.appspot.com/11338002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164669 0039d316-1c4b-4281-b951-d872f2087c98
4 files changed