// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/prerender/prerender_config.h"

namespace prerender {

Config::Config() : max_bytes(150 * 1024 * 1024),
                   max_link_concurrency(1),
                   max_link_concurrency_per_launcher(1),
                   rate_limit_enabled(true),
                   max_wait_to_launch(base::TimeDelta::FromMinutes(4)),
                   time_to_live(base::TimeDelta::FromMinutes(5)),
                   abandon_time_to_live(base::TimeDelta::FromSeconds(3)),
                   default_tab_bounds(640, 480),
                   is_overriding_user_agent(false) {
}

Config::~Config() { }

}  // namespace prerender

// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/prerender/prerender_config.h"

namespace prerender {

Config::Config() : max_bytes(150 * 1024 * 1024),
                   max_link_concurrency(1),
                   max_link_concurrency_per_launcher(1),
                   rate_limit_enabled(true),
                   max_wait_to_launch(base::TimeDelta::FromMinutes(4)),
                   time_to_live(base::TimeDelta::FromMinutes(5)),
                   abandon_time_to_live(base::TimeDelta::FromSeconds(30)),
                   default_tab_bounds(640, 480),
                   is_overriding_user_agent(false) {
}

Config::~Config() { }

}  // namespace prerender

--- 
+++ 
@@ -12,7 +12,7 @@
                    rate_limit_enabled(true),
                    max_wait_to_launch(base::TimeDelta::FromMinutes(4)),
                    time_to_live(base::TimeDelta::FromMinutes(5)),
-                   abandon_time_to_live(base::TimeDelta::FromSeconds(30)),
+                   abandon_time_to_live(base::TimeDelta::FromSeconds(3)),
                    default_tab_bounds(640, 480),
                    is_overriding_user_agent(false) {
 }
Drop prerender abandon timeout to 3 seconds.

30 seconds is too long to keep a missed prerender around for. Per
Prerender.AbandonTimeUntilUsed, prerenders swap in well under 3 seconds of them
being abandoned.

BUG=356290

Review URL: https://codereview.chromium.org/545063003

Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#300779}
