Add supported_locales attribute to external_extensions.json
commit9d32ded07200d9e0edba0195888ce084ac1223ca
authordpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 11 Oct 2011 16:31:05 +0000 (11 16:31 +0000)
committerdpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 11 Oct 2011 16:31:05 +0000 (11 16:31 +0000)
tree77f594e6ae968f2d2f6e393577d9958b369898ba
parent1bca76fadecb33850e41c376f5c8ab60f7f333d5
Add supported_locales attribute to external_extensions.json

This CL supports backward compatibility. If supported_locales is
missing, it is supposed that extension supports all locales.
supported_locales is a list of locale strings. Locale may specify
parent locale like "en", in this case the extension will be
installed for all "en*" locales like "en-US", "en-GB", etc. If
browser locale is changed and installed default extension is not
suitable for new locale it will be uninstalled.

BUG=chromium-os:21211
TEST=ExtensionServiceTest.ExternalPrefProvider

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104906 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/extensions/extension_service_unittest.cc
chrome/browser/extensions/external_extension_provider_impl.cc
chrome/browser/extensions/external_extension_provider_impl.h
chrome/common/extensions/docs/external_extensions.html
chrome/common/extensions/docs/samples.json
chrome/common/extensions/docs/static/external_extensions.html