Clean-up: Retires ui::InputMethodFactory.

Removes ui::InputMethodFactory and adds some sanity CHECKs.

TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241860 0039d316-1c4b-4281-b951-d872f2087c98
Separate NetworkDeviceHandler interface from its implementation.

This is required for unit testing classes using NetworkDeviceHandler.

While there, adapts the NetworkDeviceHandler unit test to set up its own Shill DBusClients (i.e. no other clients are created and the default Shill stub environment isn't used).

BUG=323537

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241861 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 241860
Fix uninitialized memory read from r239024 by making declaration order match intiailization order.

BUG=329590

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241862 0039d316-1c4b-4281-b951-d872f2087c98
[gin] fix casting WrappableBase to a derived class

We first need to cast the void pointer to WrappableBase before we
can cast it to the derived class: initially a WrappableBase* is
stored as holder, so we can't directly cast it to the derived class.

To test this, I added a useless base class so the test object this
pointers don't align with the WrappableBase this pointer.

Also update the comments about how to use WrappableBase.

BUG=none
R=aa@chromium.org,dcarney@chromium.org

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

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