Refactor NaCl json_manifest a bit. Make some funcs into methods.

Rather than pass around "this" and some fields as
parameters, just make the functions into private methods.

This may make a later change cleaner. The later
change will add an additional field "is_pnacl_debug".
Based on that field GetURLFromISADictionary can choose a
different URL. Otherwise the parameter list gets
pretty darn long.

BUG=http://code.google.com/p/nativeclient/issues/detail?id=3765

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252939 0039d316-1c4b-4281-b951-d872f2087c98
Revert of Use Display changes for screen orientation changes. (https://codereview.chromium.org/163433010/)

Reason for revert:
This is causing runtime issues on pre-JB MR1 devices, as
DisplayManager.DisplayListener was added in API level 17.

A compat-layer equivalent will be needed before landing.

Original issue's description:
> Use Display changes for screen orientation changes.
> 
> This is the only reliable solution: we get an event from DisplayManager
> every time a display change. If that change is a rotation change from
> the display we care about, we can act on it. Using sensors or
> onConfigurationChange is unreliable.
> 
> BUG=342714
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252846

TBR=bulach@chromium.org,timvolodine@chromium.org,mlamouri@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=342714

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252940 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 252939
SVN changes up to revision 252940
Suppress memory leak from content::RenderProcessHostImpl::Init or content::RenderFrameHostManager::Init
TBR=kenrb@chromium.org
BUG=346336
TEST=waterfall

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

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