Don't use ScreenCapturer::CreateWithXDamage() in chrome and chromoting

ScreenCapturer::CreateWithXDamage() is broken in the last webrtc roll,
and it's being deprecated anyway.

R=lambroslambrou@chromium.org, wez@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228596 0039d316-1c4b-4281-b951-d872f2087c98
sync: port/re-implement AssociateWindows for sessions v2

Adds the ability to SessionsSyncManager to process local window + tab information
 when associating (and later, when processing changes). The changes to SSM are based
 off of the SessionModelAssociator::AssociateWindows.

This vastly simplifies tests for sessions.  SessionsSyncManagerTest will subsume
 SessionModelAssociatorTest and (most of) ProfileSyncSessionsTest without the
 need for multithreaded complicated sync init boilerplate, and allows deeper testing
 of sessions' unique sync node pooling.  Also removed a couple todos with the old impl
 (like replacing gmocked TabDelegates with fakes).


BUG=80194, 98892

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228597 0039d316-1c4b-4281-b951-d872f2087c98
WebUI: Hide menus when navigation occurs

Details: Listen to window popstate event and hide the menus when the
event fires.

This also changes context menu to use an EventTracker to reduce the
code. I verified that all pages that include context_menu_handler.js
also already include event_tracker.js

BUG=306370
R=dbeam@chromium.org

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

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