| Index: chrome/browser/ui/browser_finder.cc
|
| diff --git a/chrome/browser/ui/browser_finder.cc b/chrome/browser/ui/browser_finder.cc
|
| index 3ab5ff93e4bde6906b01f73076da7b0d96ed3594..832841000d75a4ac4e7c1b6df6eb1bdbdb85102c 100644
|
| --- a/chrome/browser/ui/browser_finder.cc
|
| +++ b/chrome/browser/ui/browser_finder.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/browser/ui/browser_finder.h"
|
|
|
| +#include "chrome/browser/devtools/devtools_window.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/browser_iterator.h"
|
| #include "chrome/browser/ui/browser_list.h"
|
| @@ -170,6 +171,10 @@ Browser* FindBrowserWithWebContents(const WebContents* web_contents) {
|
| for (TabContentsIterator it; !it.done(); it.Next()) {
|
| if (*it == web_contents)
|
| return it.browser();
|
| + DevToolsWindow* dev_tools_window =
|
| + DevToolsWindow::GetDockedInstanceForInspectedTab(*it);
|
| + if (dev_tools_window && (dev_tools_window->web_contents() == web_contents))
|
| + return it.browser();
|
| }
|
| return NULL;
|
| }
|
|
|