| Index: chrome/browser/extensions/unpacked_installer.cc
|
| diff --git a/chrome/browser/extensions/unpacked_installer.cc b/chrome/browser/extensions/unpacked_installer.cc
|
| index ec4b96b6e4e43ad517b1e8ec9050d95385d6c946..5dd3614ab8c637d477237e6e2f15611d9e90feef 100644
|
| --- a/chrome/browser/extensions/unpacked_installer.cc
|
| +++ b/chrome/browser/extensions/unpacked_installer.cc
|
| @@ -195,7 +195,7 @@ int UnpackedInstaller::GetFlags() {
|
| std::string id = id_util::GenerateIdForPath(extension_path_);
|
| bool allow_file_access =
|
| Manifest::ShouldAlwaysAllowFileAccess(Manifest::UNPACKED);
|
| - ExtensionPrefs* prefs = service_weak_->extension_prefs();
|
| + ExtensionPrefs* prefs = ExtensionPrefs::Get(service_weak_->profile());
|
| if (prefs->HasAllowFileAccessSetting(id))
|
| allow_file_access = prefs->AllowFileAccess(id);
|
|
|
| @@ -213,7 +213,7 @@ bool UnpackedInstaller::IsLoadingUnpackedAllowed() const {
|
| return true;
|
| // If there is a "*" in the extension blacklist, then no extensions should be
|
| // allowed at all (except explicitly whitelisted extensions).
|
| - ExtensionPrefs* prefs = service_weak_->extension_prefs();
|
| + ExtensionPrefs* prefs = ExtensionPrefs::Get(service_weak_->profile());
|
| return !prefs->ExtensionsBlacklistedByDefault();
|
| }
|
|
|
|
|