Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(733)

Unified Diff: chrome/browser/ui/browser_commands.cc

Issue 10870073: Change how NavigationController reloads transient entries (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/web_contents/navigation_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_commands.cc
===================================================================
--- chrome/browser/ui/browser_commands.cc (revision 153587)
+++ chrome/browser/ui/browser_commands.cc (working copy)
@@ -131,17 +131,6 @@
void ReloadInternal(Browser* browser,
WindowOpenDisposition disposition,
bool ignore_cache) {
- // If we are showing an interstitial, treat this as an OpenURL.
- WebContents* current_tab = GetActiveWebContents(browser);
- if (current_tab && current_tab->ShowingInterstitialPage()) {
- NavigationEntry* entry = current_tab->GetController().GetActiveEntry();
- DCHECK(entry); // Should exist if interstitial is showing.
- browser->OpenURL(OpenURLParams(
- entry->GetURL(), Referrer(), disposition,
- content::PAGE_TRANSITION_RELOAD, false));
- return;
- }
-
// As this is caused by a user action, give the focus to the page.
//
// Also notify RenderViewHostDelegate of the user gesture; this is
« no previous file with comments | « no previous file | content/browser/web_contents/navigation_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698