summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/navigation_controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents/navigation_controller.h')
-rw-r--r--chrome/browser/tab_contents/navigation_controller.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/navigation_controller.h b/chrome/browser/tab_contents/navigation_controller.h
index c2dae3f..16011d3 100644
--- a/chrome/browser/tab_contents/navigation_controller.h
+++ b/chrome/browser/tab_contents/navigation_controller.h
@@ -395,9 +395,11 @@ class NavigationController {
static void DisablePromptOnRepost();
// Maximum number of entries before we start removing entries from the front.
+#ifdef UNIT_TEST
static void set_max_entry_count(size_t max_entry_count) {
max_entry_count_ = max_entry_count;
}
+#endif
static size_t max_entry_count() { return max_entry_count_; }
// Cancels a repost that brought up a warning.