diff options
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 862398d..87b3e9e 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -558,11 +558,8 @@ void Browser::GoBack() { // If we are showing an interstitial, just hide it. TabContents* current_tab = GetSelectedTabContents(); WebContents* web_contents = current_tab->AsWebContents(); - if (web_contents && web_contents->interstitial_page()) { - // The GoBack() case is a special case when an interstitial is shown because - // the "previous" page is still available, just hidden by the interstitial. - // We treat the back as a "Don't proceed", this hides the interstitial and - // reveals the previous page. + if (web_contents && web_contents->showing_interstitial_page()) { + // Pressing back on an interstitial page means "don't proceed". web_contents->interstitial_page()->DontProceed(); return; } |