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

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

Issue 1292403004: Route browser reload command to DevTools if present. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments Created 5 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 | « chrome/browser/devtools/devtools_window.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index f74bb759321d48e9e441789c7bcedf57f0ae410e..4b43f9887bf4facded5635ba2f30bc135d5d9379 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -216,6 +216,13 @@ void ReloadInternal(Browser* browser,
new_tab->UserGestureDone();
if (!new_tab->FocusLocationBarByDefault())
new_tab->Focus();
+
+ if (DevToolsWindow* devtools =
+ DevToolsWindow::GetInstanceForInspectedWebContents(new_tab)) {
+ devtools->ReloadInspectedWebContents(ignore_cache);
+ return;
+ }
+
if (ignore_cache)
new_tab->GetController().ReloadIgnoringCache(true);
else
« no previous file with comments | « chrome/browser/devtools/devtools_window.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698