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

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

Issue 924543002: Add "light speed" experiment code for SafeBrowsing service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/database_manager.cc
diff --git a/chrome/browser/safe_browsing/database_manager.cc b/chrome/browser/safe_browsing/database_manager.cc
index 2f89931e50aebce92e15a1c38d6b39a257741cfc..dd247f65eca5c3b5c1432c97f3260b766e96443e 100644
--- a/chrome/browser/safe_browsing/database_manager.cc
+++ b/chrome/browser/safe_browsing/database_manager.cc
@@ -30,6 +30,7 @@
#include "chrome/common/chrome_switches.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/notification_service.h"
#include "url/url_constants.h"
@@ -650,6 +651,11 @@ void SafeBrowsingDatabaseManager::StartOnIOThread() {
if (enabled_)
return;
+ // TODO(asvitkine): Experimental code for measuring start up impact of SB.
+ // Remove when experimentation is complete. http://crbug.com/416219
gab 2015/02/12 16:57:00 Wrong bug #, should be 450037, right?
Alexei Svitkine (slow) 2015/02/12 17:27:12 Done.
+ if (!variations::GetVariationParamValue("LightSpeed", "DisableSB").empty())
gab 2015/02/12 16:57:00 So the experiment name is "LightSpeed" and it has
Alexei Svitkine (slow) 2015/02/12 17:27:12 This is using the parameters support in the variat
gab 2015/02/12 17:35:42 Oh very cool! SGTM The one thing I'm worried abou
Alexei Svitkine (slow) 2015/02/12 17:47:56 Right, it depends how many we want to run in paral
gab 2015/02/12 18:26:58 Okay SGTM.
+ return;
+
DCHECK(!safe_browsing_thread_.get());
safe_browsing_thread_.reset(new base::Thread("Chrome_SafeBrowsingThread"));
if (!safe_browsing_thread_->Start())
« 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