summaryrefslogtreecommitdiffstats
path: root/content/shell/shell_devtools_frontend.h
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-15 13:03:06 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-15 13:03:06 +0000
commitd212efda8437350e23c4f8b228ee4ffb70d00855 (patch)
treec71ba9983087d0415e776ea7081ee69d4ae757c9 /content/shell/shell_devtools_frontend.h
parent123641a823253f2d64f67425eec520373a42b7ec (diff)
downloadchromium_src-d212efda8437350e23c4f8b228ee4ffb70d00855.zip
chromium_src-d212efda8437350e23c4f8b228ee4ffb70d00855.tar.gz
chromium_src-d212efda8437350e23c4f8b228ee4ffb70d00855.tar.bz2
[content shell] when opening a devtools window for a shell, track the devtools window
Otherwise, we end up with a stale pointer when the devtools window is directly closed BUG=111316 R=marja@chromium.org TEST=running inspector/profiler/cpu-profiler-profile-removal.html after inspector/profiler/cpu-profiler-parameterless-profile-end-crash.html does not crash Review URL: https://codereview.chromium.org/14046018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194168 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/shell_devtools_frontend.h')
-rw-r--r--content/shell/shell_devtools_frontend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/content/shell/shell_devtools_frontend.h b/content/shell/shell_devtools_frontend.h
index 2308aa3..bee0bd0 100644
--- a/content/shell/shell_devtools_frontend.h
+++ b/content/shell/shell_devtools_frontend.h
@@ -27,6 +27,8 @@ class ShellDevToolsFrontend : public WebContentsObserver,
void Focus();
void Close();
+ Shell* frontend_shell() const { return frontend_shell_; }
+
private:
ShellDevToolsFrontend(Shell* frontend_shell, DevToolsAgentHost* agent_host);
virtual ~ShellDevToolsFrontend();