angler-fishThe Vulnerability History Project

Change the web store private install API to accept a localized extension name.

      In our initial design of the beginInstallWithManifest function, we forgot that
some extensions have a name which needs token substitution for i18n/l10n. This
change renames beginInstallWithManifest to beginInstallWithManifest2, and
modifies the signature to take optional localizedName and locale parameters.

I also refactored how we compare the passed in manifest used in the
pre-download confirmation dialog - we now keep a copy of the source from the
.crx file to compare against, since i18n substututions can happen on the
manifest we use to construct the Extension object.

BUG=75821
TEST=Covered by browser tests for now; will require web store server-side
changes before it can be manually tested.

Review URL: http://codereview.chromium.org/6992047

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86780 0039d316-1c4b-4281-b951-d872f2087c98
    
commit ad93c6baf3651dc050ab436bd0cfd84bdabf7127
+40 -34
+9 -18
+6 -35
+1 -2
+8 -14
+3 -7
+1 -5
+4 -6
+17 -31
+19 -12
+4 -4
+2 -4
+4 -2
+2 -2
expand_less