Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Unified Diff: chrome/browser/safe_browsing/incident_reporting/extension_data_collection.cc

Issue 2054773002: Replace the WAS_INSTALLED_BY_CUSTODIAN creation flag with a pref (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing the build Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/incident_reporting/extension_data_collection.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/extension_data_collection.cc b/chrome/browser/safe_browsing/incident_reporting/extension_data_collection.cc
index 2fc10dd4816572e20fa68de2589e3528a33d1cf9..0d2ce1ce0720bb63e6aaf1a01d47a6cce70180df 100644
--- a/chrome/browser/safe_browsing/incident_reporting/extension_data_collection.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/extension_data_collection.cc
@@ -8,6 +8,7 @@
#include "base/stl_util.h"
#include "base/version.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/extensions/extension_util.h"
#include "chrome/browser/extensions/install_signer.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.h"
@@ -56,7 +57,8 @@ void PopulateExtensionInfo(
}
extension_info->set_installed_by_custodian(
- extension.was_installed_by_custodian());
+ extensions::util::WasInstalledByCustodian(
+ extension.id(), extension_registry.browser_context()));
extension_info->set_installed_by_default(
extension.was_installed_by_default());
extension_info->set_installed_by_oem(extension.was_installed_by_oem());

Powered by Google App Engine
This is Rietveld 408576698