| Index: chrome/browser/ui/webui/chrome_web_ui_factory.cc
|
| diff --git a/chrome/browser/ui/webui/chrome_web_ui_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_factory.cc
|
| index 5e6a4b9cd0bc2da3538ea66bc9f79d042ecd6b95..d626345f83b5bdfa7db33609e2d72f12d0c40432 100644
|
| --- a/chrome/browser/ui/webui/chrome_web_ui_factory.cc
|
| +++ b/chrome/browser/ui/webui/chrome_web_ui_factory.cc
|
| @@ -24,6 +24,7 @@
|
| #include "chrome/browser/ui/webui/history_ui.h"
|
| #include "chrome/browser/ui/webui/html_dialog_ui.h"
|
| #include "chrome/browser/ui/webui/net_internals_ui.h"
|
| +#include "chrome/browser/ui/webui/new_profile_ui.h"
|
| #include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
|
| #include "chrome/browser/ui/webui/options/options_ui.h"
|
| #include "chrome/browser/ui/webui/plugins_ui.h"
|
| @@ -213,6 +214,13 @@ static WebUIFactoryFunction GetWebUIFactoryFunction(Profile* profile,
|
| if (url.spec() == chrome::kChromeUIConstrainedHTMLTestURL)
|
| return &NewWebUI<ConstrainedHtmlUI>;
|
|
|
| +#if !defined(OS_CHROMEOS)
|
| + if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kMultiProfiles)) {
|
| + if (url.host() == chrome::kChromeUINewProfileHost)
|
| + return &NewWebUI<NewProfileUI>;
|
| + }
|
| +#endif
|
| +
|
| return NULL;
|
| }
|
|
|
|
|