| Index: chrome/browser/ui/webui/inspect_ui.cc
|
| diff --git a/chrome/browser/ui/webui/inspect_ui.cc b/chrome/browser/ui/webui/inspect_ui.cc
|
| index 68fe570dec58079e808a1d1196a32f4c78da6c05..3637cf880b94941a454e334d06342ab6084995f0 100644
|
| --- a/chrome/browser/ui/webui/inspect_ui.cc
|
| +++ b/chrome/browser/ui/webui/inspect_ui.cc
|
| @@ -20,6 +20,7 @@
|
| #include "chrome/browser/ui/browser_list.h"
|
| #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
|
| #include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h"
|
| +#include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h"
|
| #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
|
| #include "chrome/common/url_constants.h"
|
| #include "content/public/browser/child_process_data.h"
|
| @@ -382,7 +383,8 @@ InspectUI::InspectUI(content::WebUI* web_ui)
|
| InspectDataSource* html_source = new InspectDataSource();
|
|
|
| Profile* profile = Profile::FromWebUI(web_ui);
|
| - profile->GetChromeURLDataManager()->AddDataSource(html_source);
|
| + ChromeURLDataManagerFactory::GetForProfile(profile)->
|
| + AddDataSource(html_source);
|
|
|
| registrar_.Add(this,
|
| content::NOTIFICATION_WEB_CONTENTS_CONNECTED,
|
|
|