summaryrefslogtreecommitdiff
path: root/chromium/extensions/browser/updater/update_service.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/extensions/browser/updater/update_service.cc')
-rw-r--r--chromium/extensions/browser/updater/update_service.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/chromium/extensions/browser/updater/update_service.cc b/chromium/extensions/browser/updater/update_service.cc
index 2c57317abe9..2b62acd4ae9 100644
--- a/chromium/extensions/browser/updater/update_service.cc
+++ b/chromium/extensions/browser/updater/update_service.cc
@@ -135,14 +135,15 @@ void UpdateService::OnEvent(Events event, const std::string& extension_id) {
break;
}
- base::Value attributes(base::Value::Type::DICTIONARY);
- if (should_perform_action_on_omaha_attributes &&
- base::FeatureList::IsEnabled(
- extensions_features::kDisableMalwareExtensionsRemotely)) {
- attributes = GetExtensionOmahaAttributes(extension_id);
+ if (should_perform_action_on_omaha_attributes) {
+ base::Value attributes(base::Value::Type::DICTIONARY);
+ if (base::FeatureList::IsEnabled(
+ extensions_features::kDisableMalwareExtensionsRemotely)) {
+ attributes = GetExtensionOmahaAttributes(extension_id);
+ }
+ ExtensionSystem::Get(browser_context_)
+ ->PerformActionBasedOnOmahaAttributes(extension_id, attributes);
}
- ExtensionSystem::Get(browser_context_)
- ->PerformActionBasedOnOmahaAttributes(extension_id, attributes);
}
UpdateService::UpdateService(