[sync] Move test-only sync code out of chrome_browser.gypi

Back when there were pyauto sync tests, a bunch of test-only sync code
needed to be built into chrome to support pyauto automation. This code
can now be moved out of chrome_browser.gypi and into chrome_tests.gypi
since it's only used by tests.

In addition, various targets like sync_integration_tests,
sync_performance_tests, and browser_tests independently include select
sync helper files in their sources lists. This duplication can be
eliminated by creating a test support target for sync.

This patch does the following:

1) Moves the test-only sync classes ProfileSyncServiceHarness and
   RetryVerifier out of chrome_browser.gypi and into chrome_tests.gypi
2) Eliminates duplication of sync helper files in chrome_tests.gypi by
   adding a static library target test_support_sync_integration, which
   can then be declared as a dependency by various test targets.

BUG=328218
TEST=trybots stay green

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240554 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 240554
Ash: Tell the browser process of the visibility of IME's popup UI

This is one of supplemental CLs to port full Desktop IME features into Ash mode.

Rationale:
Some components in Chrome are interested in whether an IME is showing its own popup window such as the candidate window. OmniBox is one example (see Issue 326774). W3C IME API on which kochi@ is currently working also relies on this information.

Implementation memo:
This CL uses SetWinEventHook API to monitor the some accessibility events that are generated by IMEs. The parameters passed to SetWinEventHook are carefully chosen so the delegate is called back on the UI thread even when an IME generates the accessibility events on a background thread (actually MS-IME on Windows 8.1 seems to be doing this).

BUG=238585, 326774
TEST=manually done on Windows 8.1 with MS-IME Japanese

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

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