Index: chrome/browser/interstitials/chrome_metrics_helper.cc |
diff --git a/chrome/browser/interstitials/chrome_metrics_helper.cc b/chrome/browser/interstitials/chrome_metrics_helper.cc |
index 8245fb42385b9bc36f32b989215ca6da7265c82e..709b81e92a4c2e7e55227dd508c5458087f4c267 100644 |
--- a/chrome/browser/interstitials/chrome_metrics_helper.cc |
+++ b/chrome/browser/interstitials/chrome_metrics_helper.cc |
@@ -33,7 +33,9 @@ ChromeMetricsHelper::ChromeMetricsHelper( |
g_browser_process->rappor_service() |
? g_browser_process->rappor_service()->AsWeakPtr() |
: base::WeakPtr<rappor::RapporService>()), |
+#if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) || defined(ENABLE_EXTENSIONS) |
web_contents_(web_contents), |
+#endif |
request_url_(request_url), |
sampling_event_name_(sampling_event_name) { |
DCHECK(!sampling_event_name_.empty()); |