force devtools to show as undocked.

This commit is contained in:
gray 2014-11-02 11:32:06 -08:00
parent 45f4a25ac9
commit 6c3f065147

View file

@ -376,6 +376,9 @@ void WebContents::ExecuteJavaScript(const base::string16& code) {
void WebContents::OpenDevTools() { void WebContents::OpenDevTools() {
inspectable_web_contents()->ShowDevTools(); inspectable_web_contents()->ShowDevTools();
// force the inspectable web contents to be undocked when it is opened.
inspectable_web_contents()->GetView()->SetIsDocked(false);
} }
bool WebContents::SendIPCMessage(const base::string16& channel, bool WebContents::SendIPCMessage(const base::string16& channel,