| Index: chrome/browser/ui/webui/options2/browser_options_handler2.cc
|
| diff --git a/chrome/browser/ui/webui/options2/browser_options_handler2.cc b/chrome/browser/ui/webui/options2/browser_options_handler2.cc
|
| index 15bf0b1f2804cc1f6c305342bf3b2abef13b180e..f6b79ff1754da430a2e53e6e1d3d9e5f6a92fc42 100644
|
| --- a/chrome/browser/ui/webui/options2/browser_options_handler2.cc
|
| +++ b/chrome/browser/ui/webui/options2/browser_options_handler2.cc
|
| @@ -1002,6 +1002,10 @@ void BrowserOptionsHandler::SendProfilesInfo() {
|
| }
|
|
|
| void BrowserOptionsHandler::CreateProfile(const ListValue* args) {
|
| + // This handler could have been called in managed mode, for example because
|
| + // the user fiddled with the web inspector. Silently return in this case.
|
| + if (!ProfileManager::IsMultipleProfilesEnabled())
|
| + return;
|
| ProfileManager::CreateMultiProfileAsync();
|
| }
|
|
|
|
|