Commit 7b060610 authored by Gauthier Ambard's avatar Gauthier Ambard Committed by Commit Bot

Don't show the progress bar on iPad

This CL doesn't show the progress bar during the loading of the page on
iPad.

Bug: 813073
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I94c2ca6b28906220aeaf7affca702bd36e49b0d8
Reviewed-on: https://chromium-review.googlesource.com/941223Reviewed-by: default avatarOlivier Robin <olivierrobin@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#539820}
parent 622ed6cf
......@@ -472,6 +472,10 @@ const CGFloat kScrollFadeDistance = 30;
_loading = loading;
self.view.reloadButton.hiddenInCurrentState = loading;
self.view.stopButton.hiddenInCurrentState = !loading;
if (IsIPadIdiom())
return;
if (!loading) {
[self stopProgressBar];
} else if (self.view.progressBar.hidden) {
......
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