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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 9733005: net: add DNS certificate revocation experiment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: g b Created 8 years, 9 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 | « chrome/browser/chrome_browser_main.h ('k') | chrome/browser/net/chrome_network_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 70e791fc7305e323fbf5d026da21c3bcc5f6e650..fdf68af7bfd10de75d7ae1f834af57e144b603ca 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -55,6 +55,7 @@
#include "chrome/browser/metrics/tracking_synchronizer.h"
#include "chrome/browser/nacl_host/nacl_process_host.h"
#include "chrome/browser/net/chrome_net_log.h"
+#include "chrome/browser/net/chrome_network_delegate.h"
#include "chrome/browser/net/predictor.h"
#include "chrome/browser/notifications/desktop_notification_service.h"
#include "chrome/browser/notifications/desktop_notification_service_factory.h"
@@ -1006,6 +1007,22 @@ void ChromeBrowserMainParts::AutoLaunchChromeFieldTrial() {
}
}
+void ChromeBrowserMainParts::ComodoDNSExperimentFieldTrial() {
+ // 100% probability of being in the experiment group until the timeout.
+ const base::FieldTrial::Probability kDivisor = 1;
+ const base::FieldTrial::Probability kProbability = 1;
+
+ // After April 15, 2012 builds, it will always be in default group.
+ scoped_refptr<base::FieldTrial> trial(
+ new base::FieldTrial("ComodoDNSExperiment", kDivisor,
+ "inactive", 2012, 4, 15));
+
+ const int active = trial->AppendGroup("active", kProbability);
+
+ if (trial->group() == active)
+ ChromeNetworkDelegate::EnableComodoDNSExperiment();
+}
+
// ChromeBrowserMainParts: |SetupMetricsAndFieldTrials()| related --------------
void ChromeBrowserMainParts::SetupFieldTrials(bool metrics_recording_enabled,
@@ -1026,6 +1043,7 @@ void ChromeBrowserMainParts::SetupFieldTrials(bool metrics_recording_enabled,
PredictorFieldTrial();
DefaultAppsFieldTrial();
AutoLaunchChromeFieldTrial();
+ ComodoDNSExperimentFieldTrial();
AutocompleteFieldTrial::Activate();
NewTabUI::SetupFieldTrials();
}
« no previous file with comments | « chrome/browser/chrome_browser_main.h ('k') | chrome/browser/net/chrome_network_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698