summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/toolbar_view.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/views/toolbar_view.cc b/chrome/browser/views/toolbar_view.cc
index 2d18cad..b2125d4 100644
--- a/chrome/browser/views/toolbar_view.cc
+++ b/chrome/browser/views/toolbar_view.cc
@@ -233,6 +233,12 @@ void ToolbarView::ButtonPressed(
// ongoing user edits, since it doesn't realize this is a user-initiated
// action.
location_bar_->Revert();
+ // Shift-clicking or Ctrl-clicking the reload button means we should
+ // ignore any cached content.
+ // TODO(avayvod): eliminate duplication of this logic in
+ // CompactLocationBarView.
+ if (id == IDC_RELOAD && (event.IsShiftDown() || event.IsControlDown()))
+ id = IDC_RELOAD_IGNORING_CACHE;
break;
}
browser_->ExecuteCommandWithDisposition(