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

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

Issue 10736008: Added reload drop-down menu for the Reload button on Linux when in the DevTools mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 029e9b96ab05f8cd8a36c32541c34ff5dd8af7dc..46a78585e1c2793fcd60020e471c547dcd184e81 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -154,6 +154,7 @@
#include "chrome/common/url_constants.h"
#include "chrome/common/web_apps.h"
#include "content/public/browser/color_chooser.h"
+#include "content/public/browser/devtools_agent_host_registry.h"
#include "content/public/browser/devtools_manager.h"
#include "content/public/browser/download_item.h"
#include "content/public/browser/download_manager.h"
@@ -568,6 +569,11 @@ void Browser::FormatTitleForDisplay(string16* title) {
}
}
+bool Browser::IsDebuggerAttachedForCurrentTab() const {
+ return content::DevToolsAgentHostRegistry::IsDebuggerAttached(
pfeldman 2012/07/10 16:44:56 IsDebuggerAttached won't handle 0 web contents.
+ chrome::GetActiveWebContents(this));
+}
+
///////////////////////////////////////////////////////////////////////////////
// Browser, OnBeforeUnload handling:

Powered by Google App Engine
This is Rietveld 408576698