| Index: chrome/browser/ui/webui/flags_ui.cc
|
| diff --git a/chrome/browser/ui/webui/flags_ui.cc b/chrome/browser/ui/webui/flags_ui.cc
|
| index ff511a7ac9580e138697662bd4d287c251383f1a..558e1376453db0797b7d7862db166a1ea78dc3c9 100644
|
| --- a/chrome/browser/ui/webui/flags_ui.cc
|
| +++ b/chrome/browser/ui/webui/flags_ui.cc
|
| @@ -15,6 +15,7 @@
|
| #include "chrome/browser/prefs/pref_service.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/browser_list.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/pref_names.h"
|
| #include "chrome/common/url_constants.h"
|
| @@ -161,7 +162,8 @@ FlagsUI::FlagsUI(content::WebUI* web_ui) : WebUIController(web_ui) {
|
|
|
| // Set up the about:flags source.
|
| Profile* profile = Profile::FromWebUI(web_ui);
|
| - profile->GetChromeURLDataManager()->AddDataSource(CreateFlagsUIHTMLSource());
|
| + ChromeURLDataManagerFactory::GetForProfile(profile)->
|
| + AddDataSource(CreateFlagsUIHTMLSource());
|
| }
|
|
|
| // static
|
|
|