summaryrefslogtreecommitdiffstats
path: root/extensions/browser/extension_throttle_entry.h
diff options
context:
space:
mode:
authorxunjieli <xunjieli@chromium.org>2015-06-19 07:31:21 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-19 14:31:50 +0000
commite484e2d6ef69920249c610af605b9935d0f179aa (patch)
tree315de9c1be09ab85b2f009ce09ae648855cab778 /extensions/browser/extension_throttle_entry.h
parentf5a2156812c318825b6438258d9f882fc63ecd16 (diff)
downloadchromium_src-e484e2d6ef69920249c610af605b9935d0f179aa.zip
chromium_src-e484e2d6ef69920249c610af605b9935d0f179aa.tar.gz
chromium_src-e484e2d6ef69920249c610af605b9935d0f179aa.tar.bz2
Use a custom BackoffEntry::Policy for extension_request_limiting_throttle_browsertest
ExtensionRequestLimitingThrottleBrowserTest takes long to complete on slow bots. This CL sets a custom backoff policy for these tests, so that the tests are not too dependent on the timing. BUG=501362 Review URL: https://codereview.chromium.org/1193543003 Cr-Commit-Position: refs/heads/master@{#335255}
Diffstat (limited to 'extensions/browser/extension_throttle_entry.h')
-rw-r--r--extensions/browser/extension_throttle_entry.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/extensions/browser/extension_throttle_entry.h b/extensions/browser/extension_throttle_entry.h
index d0f25cb..61a70b2 100644
--- a/extensions/browser/extension_throttle_entry.h
+++ b/extensions/browser/extension_throttle_entry.h
@@ -71,12 +71,8 @@ class ExtensionThrottleEntry : public ExtensionThrottleEntryInterface {
// It is only used by unit tests.
ExtensionThrottleEntry(ExtensionThrottleManager* manager,
const std::string& url_id,
- int sliding_window_period_ms,
- int max_send_threshold,
- int initial_backoff_ms,
- double multiply_factor,
- double jitter_factor,
- int maximum_backoff_ms);
+ const net::BackoffEntry::Policy* backoff_policy,
+ bool ignore_user_gesture_load_flag_for_tests);
// Used by the manager, returns true if the entry needs to be garbage
// collected.