Index: chrome/browser/safe_browsing/safe_browsing_service.cc |
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc |
index 466f8ca2ee0b0401187832bab7dc23de696b260e..a7a6263c1f8969e3305170a3f5f11d1ee6a3027d 100644 |
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc |
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc |
@@ -38,8 +38,8 @@ |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/common/url_constants.h" |
-#include "components/metrics/metrics_service.h" |
#include "components/startup_metric_utils/startup_metric_utils.h" |
+#include "components/variations/variations_associated_data.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/cookie_crypto_delegate.h" |
#include "content/public/browser/cookie_store_factory.h" |
@@ -595,6 +595,11 @@ void SafeBrowsingService::RefreshState() { |
} |
} |
+ // TODO(asvitkine): Experimental code for measuring start up impact of SB. |
+ // Remove when experimentation is complete. http://crbug.com/450037 |
+ if (!variations::GetVariationParamValue("LightSpeed", "DisableSB").empty()) |
+ enable = false; |
+ |
if (enable) |
Start(); |
else |