Chromium Code Reviews| Index: chrome/browser/extensions/api/storage/managed_value_store_cache.cc |
| diff --git a/chrome/browser/extensions/api/storage/managed_value_store_cache.cc b/chrome/browser/extensions/api/storage/managed_value_store_cache.cc |
| index 770c330ce8860f7bcd5fffae6f2a8a96ca074f53..47ad4127e6895d593fc1c9aac8cc2c1e7215a8f2 100644 |
| --- a/chrome/browser/extensions/api/storage/managed_value_store_cache.cc |
| +++ b/chrome/browser/extensions/api/storage/managed_value_store_cache.cc |
| @@ -52,6 +52,13 @@ namespace { |
| const char kLoadSchemasBackgroundTaskTokenName[] = |
| "load_managed_storage_schemas_token"; |
| +// The Legacy Browser Support was the first user of the policy-for-extensions |
| +// API, and relied on behavior that will be phased out. If this extension is |
| +// present then its policies will be loaded in a special way. |
| +// TODO(joaodasilva): remove this for M35. http://crbug.com/325349 |
| +const char kLegacyBrowserSupportExtensionId[] = |
| + "heildphpnddilhkemkielfhnkaagiabh"; |
| + |
| } // namespace |
| // This helper observes initialization of all the installed extensions and |
| @@ -173,13 +180,8 @@ bool ManagedValueStoreCache::ExtensionTracker::UsesManagedStorage( |
| if (extension->manifest()->HasPath(manifest_keys::kStorageManagedSchema)) |
| return true; |
| - // TODO(joaodasilva): also load extensions that use the storage API for now, |
| - // to support the Legacy Browser Support extension. Remove this. |
| - // http://crbug.com/240704 |
| - if (extension->HasAPIPermission(APIPermission::kStorage)) |
| - return true; |
| - |
| - return false; |
| + // TODO(joaodasilva): remove this by M35. |
| + return extension->id() == kLegacyBrowserSupportExtensionId; |
|
Joao da Silva
2013/12/05 18:12:08
This is important, so that other extensions don't
|
| } |
| // static |