Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 735718c1dd72691d5faa2b704c6f6999a4b69ba4..114ed52b73fbc88efb567252f53daaf0a588b563 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -156,7 +156,7 @@ |
#include "components/startup_metric_utils/startup_metric_utils.h" |
#include "components/web_modal/popup_manager.h" |
#include "components/web_modal/web_contents_modal_dialog_manager.h" |
-#include "content/public/browser/devtools_manager.h" |
+#include "content/public/browser/devtools_agent_host.h" |
#include "content/public/browser/download_item.h" |
#include "content/public/browser/download_manager.h" |
#include "content/public/browser/interstitial_page.h" |
@@ -2028,7 +2028,7 @@ void Browser::Observe(int type, |
void Browser::OnDevToolsDisabledChanged() { |
if (profile_->GetPrefs()->GetBoolean(prefs::kDevToolsDisabled)) |
- content::DevToolsManager::GetInstance()->CloseAllClientHosts(); |
+ content::DevToolsAgentHost::DetachAllClients(); |
} |
/////////////////////////////////////////////////////////////////////////////// |