This commit is contained in:
Cheng Zhao 2015-03-27 16:24:33 +08:00
parent b52771e729
commit 32cd068427
5 changed files with 7 additions and 8 deletions

View file

@ -284,9 +284,8 @@ bool NativeWindow::HasModalDialog() {
return has_dialog_attached_;
}
void NativeWindow::OpenDevTools(bool dock) {
if (!dock)
inspectable_web_contents()->SetCanDock(false);
void NativeWindow::OpenDevTools(bool can_dock) {
inspectable_web_contents()->SetCanDock(can_dock);
inspectable_web_contents()->ShowDevTools();
}