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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_service.cc

Issue 924543002: Add "light speed" experiment code for SafeBrowsing service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move check to safe_browsing_service.cc Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698