Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 2f13de8372f21a272f767d3c15305eab8e65df8c..ac3ae9c8ad88cdf4803efad56f9a75909bbaa99e 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(); |
} |
/////////////////////////////////////////////////////////////////////////////// |