Check prefs before allowing extension file access in the permissions API.


R=mpcomplete@chromium.org
BUG=169632


Review URL: https://chromiumcodereview.appspot.com/11884008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176853 0039d316-1c4b-4281-b951-d872f2087c98
void ExtensionSystemImpl::InitForOTRProfile() {
  if (extension_service()) {
    rules_registry_service_.reset(new RulesRegistryService(profile_));
    rules_registry_service_->RegisterDefaultRulesRegistries();
  }
}

void ExtensionSystemImpl::InitForOTRProfile() {
  if (extension_service()) {
    rules_registry_service_.reset(new RulesRegistryService(profile_));
    rules_registry_service_->RegisterDefaultRulesRegistries();
  }
}
