Commit 919a7a28 authored by noyau's avatar noyau Committed by Commit bot

Removing obsolete code.

BUG=None

Review-Url: https://codereview.chromium.org/2590863002
Cr-Commit-Position: refs/heads/master@{#439782}
parent 0c3e8777
......@@ -127,11 +127,6 @@ extern NSString* const kSetupForTestingWillCloseAllTabsNotification;
// TODO(shreyasv): Find a better solution/remove this when FullScreenController
// moves to Tab.
+ (void)setEnabledForTests:(BOOL)enabled;
// Sets the hide omnibox delay. If set to 0.0, the omnibox is hidden
// synchronously.
+ (void)setHideOmniboxDelaySeconds:(double)hideOmniboxDelaySeconds;
// Resets the hide omnibox delay to its default value.
+ (void)resetHideOmniboxDelaySeconds;
@end
#endif // IOS_CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_H_
......@@ -40,10 +40,6 @@ CGFloat kPrecision = 0.00001;
// Duration for the delay before showing the omnibox.
const double kShowOmniboxDelaySeconds = 0.5;
// Default duration for the delay before hiding the omnibox.
const double kDefaultHideOmniboxDelaySeconds = 3.0;
// Duration for the delay before hiding the omnibox.
double gHideOmniboxDelaySeconds = kDefaultHideOmniboxDelaySeconds;
// Indicates if the FullScreenController returns nil from |init|. Used for
// testing purposes.
BOOL gEnabledForTests = YES;
......@@ -826,14 +822,6 @@ BOOL CGFloatEquals(CGFloat a, CGFloat b) {
#pragma mark - Used for testing
+ (void)setHideOmniboxDelaySeconds:(double)hideOmniboxDelaySeconds {
gHideOmniboxDelaySeconds = hideOmniboxDelaySeconds;
}
+ (void)resetHideOmniboxDelaySeconds {
gHideOmniboxDelaySeconds = kDefaultHideOmniboxDelaySeconds;
}
+ (void)setEnabledForTests:(BOOL)enabled {
gEnabledForTests = enabled;
}
......
......@@ -76,8 +76,6 @@ class FullscreenControllerTest : public PlatformTest {
CGRect frame = CGRectMake(0.0, 0.0, 300.0, 900.0);
PlatformTest::SetUp();
[FullScreenController setHideOmniboxDelaySeconds:0.0];
scrollview_.reset([[UIScrollView alloc] initWithFrame:frame]);
scrollview_.get().contentInset = UIEdgeInsetsZero;
[GetWindow() addSubview:scrollview_];
......
......@@ -159,8 +159,6 @@ class StackViewControllerPerfTest : public PerfTestWithBVC {
if (IsIPadIdiom())
return;
[FullScreenController setHideOmniboxDelaySeconds:0.0];
// Base class does most of the setup.
PerfTestWithBVC::SetUp();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment