Chromium Code Reviews| Index: extensions/browser/extension_prefs.cc |
| diff --git a/extensions/browser/extension_prefs.cc b/extensions/browser/extension_prefs.cc |
| index 87ea7bcffdb2f02ea9e7533792d6e17ea644af20..21eedf3f43053a3b12901b81bd7e3021546ecb36 100644 |
| --- a/extensions/browser/extension_prefs.cc |
| +++ b/extensions/browser/extension_prefs.cc |
| @@ -541,6 +541,22 @@ bool ExtensionPrefs::ReadPrefAsURLPatternSet(const std::string& extension_id, |
| const base::ListValue* value = NULL; |
| if (!ReadPrefAsList(extension_id, pref_key, &value)) |
| return false; |
| + /* |
| + scoped_ptr<ExtensionInfo> installed_extension = |
| + GetInstalledExtensionInfo(extension_id); |
| + if (!installed_extension.get()) |
| + return false; |
| + if (installed_extension->extension_location == Manifest::COMPONENT) |
| + valid_schemes |= URLPattern::SCHEME_CHROMEUI; |
| + */ |
| + const base::DictionaryValue* extensions = GetExtensionPref(extension_id); |
|
not at google - send to devlin
2015/04/09 14:56:07
"extension", not "extensions".
Deepak
2015/04/10 05:16:34
Done.
|
| + if (!extensions) |
| + return false; |
| + int location_value; |
|
not at google - send to devlin
2015/04/09 14:56:07
just "location"?
Deepak
2015/04/10 05:16:34
Done.
|
| + if (extensions->GetInteger(kPrefLocation, &location_value) && |
| + static_cast<Manifest::Location>(location_value) == Manifest::COMPONENT) { |
| + valid_schemes |= URLPattern::SCHEME_CHROMEUI; |
| + } |
| bool allow_file_access = AllowFileAccess(extension_id); |
| return result->Populate(*value, valid_schemes, allow_file_access, NULL); |