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

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

Issue 2479593006: Move enable extensions define to a build flag. (Closed)
Patch Set: Merge Created 4 years, 1 month 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 6287629cdc02c49456d107a1a39236e14470f0ca..d2723ab279d5b1abb443f9a0fe7c70d62ffd07b2 100644
--- a/chrome/browser/safe_browsing/incident_reporting/extension_data_collection.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/extension_data_collection.cc
@@ -19,6 +19,7 @@
#include "extensions/browser/extension_registry_factory.h"
#include "extensions/common/extension_set.h"
#include "extensions/common/manifest_constants.h"
+#include "extensions/features/features.h"
namespace safe_browsing {
@@ -100,7 +101,7 @@ void PopulateExtensionInfo(
// Finds the last installed extension and adds relevant information to data's
// last_installed_extension field.
void CollectExtensionData(ClientIncidentReport_ExtensionData* data) {
-#if defined(ENABLE_EXTENSIONS)
+#if BUILDFLAG(ENABLE_EXTENSIONS)
scoped_refptr<const extensions::Extension> last_installed_extension;
Profile* profile_for_last_installed_extension = nullptr;
base::Time last_install_time;

Powered by Google App Engine
This is Rietveld 408576698