Adding implementation of JS GCM API event handlers
* OnMessage
* OnMessagesDeleted
* OnSendError
* Adding tests for all 3 events.

BUG=316683

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238736 0039d316-1c4b-4281-b951-d872f2087c98
Build components.gyp:* and components_test.gyp:* on iOS.

These targets are now built as part of the All build on iOS.

BUG=324837,324839

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238737 0039d316-1c4b-4281-b951-d872f2087c98
Minor UI fixes:
- prevent changing the photo / editing the name of the Guest profile
- select and focus the textfield contents when editing the profile name

BUG=325260,325434
TEST=With the --new-profile-management flag, try to edit the name of a local
or signed in profile through the avatar bubble. When the text field shows up, its
contents should be selected. Start a guest session. The UI shouldn't let you edit the name or the profile image.

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

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