Chromium Code Reviews| 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()) |