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: |