Add structure packing support for mojo modules

BUG=None
TEST=new tests
R=viettrungluu@chromium.org, viettrungluu

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229967 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 229967
[NaCl SDK] Make input_event example single-threaded again.

This significantly simplifies the example.

Also, it isn't necessary to do anything complex to pass InputEvents to worker
threads anymore; the functions can be called off main-thread.

BUG=243083
R=sbc@chromium.org, noelallen@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229968 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 229968
These helper functions were copied from password_model_associator. Most of them have no code changes from the original. The one with code changes:
WriteToPasswordStore,
CreateSyncData

BUG=95758

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229969 0039d316-1c4b-4281-b951-d872f2087c98
The current code in cast_socket_api would possibly trigger deletion of the CastSocket during a callback invoked by the CastSocket, by removing it from the APIResourceManager.

This patch:

(1) Always adds the socket to the resource manager on construction (which takes ownership)

(2) Eliminates the step to remove the socket from the resource manager on error

Thus making it incumbent on the client to call Close() to dispose of the socket.

TODO: Still need to understand when it is safe to remove something from the resource manager.

BUG=295843

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229970 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 229969
Sync app order for extension items

This restores syncing app order using the extensions sync to keep ToT
behavior in better shape.

BUG=306945
R=jennyz@chromium.org, xiyuan@chromium.org

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

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