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

Issue 7027040: Implement A/B experiment for anti-DDoS. (Closed)

Created:
9 years, 6 months ago by Jói
Modified:
9 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, arv (Not doing code reviews), darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Implement A/B experiment for anti-DDoS. BUG=85258 TEST=manual testing done by developer Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89376

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address review comments. #

Total comments: 12

Patch Set 3 : Respond to review comments. #

Patch Set 4 : Add TODO as requested. #

Patch Set 5 : Merge to head. Extend trial cut-off date to July 23rd. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -15 lines) Patch
M base/metrics/field_trial.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/browser_main.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/net_pref_observer.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
A chrome/browser/trials/http_throttling_trial.h View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/browser/trials/http_throttling_trial.cc View 1 2 3 4 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/net_internals_ui.cc View 1 2 3 4 4 chunks +24 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M net/url_request/url_request_throttler_entry.cc View 1 2 4 chunks +10 lines, -9 lines 0 comments Download
M net/url_request/url_request_throttler_manager.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Jói
Reviewers: - yzshen as main reviewer. - wtc for chrome/browser/net/OWNERS rubber stamp. Please note that ...
9 years, 6 months ago (2011-06-07 23:05:05 UTC) #1
yzshen1
http://codereview.chromium.org/7027040/diff/1/chrome/browser/trials/throttling_trial.cc File chrome/browser/trials/throttling_trial.cc (right): http://codereview.chromium.org/7027040/diff/1/chrome/browser/trials/throttling_trial.cc#newcode32 chrome/browser/trials/throttling_trial.cc:32: "ThrottlingEnabled", kTotalProbability, "Default", 2011, 6, 30)); [out of curiosity] ...
9 years, 6 months ago (2011-06-08 00:56:51 UTC) #2
Jói
+jar@ for base/metrics/OWNERS rubber stamp (removed a DCHECK that can occur in valid cases). Yuzhu, ...
9 years, 6 months ago (2011-06-08 16:44:47 UTC) #3
yzshen1
LGTM Thanks! http://codereview.chromium.org/7027040/diff/1/chrome/browser/ui/webui/net_internals_ui.cc File chrome/browser/ui/webui/net_internals_ui.cc (right): http://codereview.chromium.org/7027040/diff/1/chrome/browser/ui/webui/net_internals_ui.cc#newcode748 chrome/browser/ui/webui/net_internals_ui.cc:748: trial->Disable(); Makes sense. Thanks for explaining. On ...
9 years, 6 months ago (2011-06-08 16:55:54 UTC) #4
Jói
Thanks Yuzhu. Wan-Teh and Jim, I await your owners approvals for these files: jar: base/metrics/field_trial.cc ...
9 years, 6 months ago (2011-06-08 17:05:59 UTC) #5
Jói
wtc/jar: ping > Wan-Teh and Jim, I await your owners approvals for these files: > ...
9 years, 6 months ago (2011-06-09 13:57:03 UTC) #6
Jói
wtc & jar: ping for OWNERS approval jar: base/metrics/field_trial.cc wtc: chrome/browser/net/net_pref_observer.cc Cheers, Jói On Thu, ...
9 years, 6 months ago (2011-06-10 16:05:46 UTC) #7
wtc
LGTM. http://codereview.chromium.org/7027040/diff/5001/chrome/browser/trials/throttling_trial.cc File chrome/browser/trials/throttling_trial.cc (right): http://codereview.chromium.org/7027040/diff/5001/chrome/browser/trials/throttling_trial.cc#newcode32 chrome/browser/trials/throttling_trial.cc:32: "ThrottlingEnabled", kTotalProbability, "Default", 2011, 6, 30)); Nit: same ...
9 years, 6 months ago (2011-06-10 22:31:00 UTC) #8
jar (doing other things)
I was only going to look at the metrics code... but accidentally drove into one ...
9 years, 6 months ago (2011-06-12 06:49:12 UTC) #9
Jói
PTAL, I've responded to all of your review comments. Jim, let me know if you ...
9 years, 6 months ago (2011-06-13 17:27:14 UTC) #10
jar (doing other things)
http://codereview.chromium.org/7027040/diff/5001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): http://codereview.chromium.org/7027040/diff/5001/base/metrics/field_trial.cc#newcode374 base/metrics/field_trial.cc:374: // randomization is supported, so we do not DCHECK. ...
9 years, 6 months ago (2011-06-14 02:28:45 UTC) #11
Jói
Hi Jim, I get that, but if I keep the DHCECK in then instead I ...
9 years, 6 months ago (2011-06-14 03:04:11 UTC) #12
Jói
Sorry, no that doesn't work either. The fix required to be able to remove the ...
9 years, 6 months ago (2011-06-14 18:13:42 UTC) #13
Jói
jar: ping On Tue, Jun 14, 2011 at 2:13 PM, Jói Sigurðsson <joi@chromium.org> wrote: > ...
9 years, 6 months ago (2011-06-14 20:47:40 UTC) #14
jar (doing other things)
9 years, 6 months ago (2011-06-16 18:50:12 UTC) #15
LGTM with nit (TODO) added as noted below.

http://codereview.chromium.org/7027040/diff/5001/base/metrics/field_trial.cc
File base/metrics/field_trial.cc (left):

http://codereview.chromium.org/7027040/diff/5001/base/metrics/field_trial.cc#...
base/metrics/field_trial.cc:372: DCHECK(global_);
NIT: Ok... based on phone chat, I'm fine with removing this DCHECK(), and
putting in a TODO() to get it back in RSN.

I thought it would have been easy ot leave it in now, but I'm convinced it has
broader ramifications (wider unit test changes need to be made since you're
putting the field trial into code that gets tickled/tested).

Powered by Google App Engine
This is Rietveld 408576698