Index: chrome/browser/ui/webui/options/options_ui.cc |
diff --git a/chrome/browser/ui/webui/options/options_ui.cc b/chrome/browser/ui/webui/options/options_ui.cc |
index de49ff1589312d27ff8d2bc65ee1474d16f1cfe2..f106bd0b3a191fa0861a64a83adfd00c9c8d3c00 100644 |
--- a/chrome/browser/ui/webui/options/options_ui.cc |
+++ b/chrome/browser/ui/webui/options/options_ui.cc |
@@ -294,7 +294,6 @@ OptionsUI::OptionsUI(content::WebUI* web_ui) |
AddOptionsPageUIHandler(localized_strings, new ResetProfileSettingsHandler()); |
AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler()); |
AddOptionsPageUIHandler(localized_strings, new ImportDataHandler()); |
- AddOptionsPageUIHandler(localized_strings, new StartupPagesHandler()); |
AddOptionsPageUIHandler(localized_strings, |
new SupervisedUserCreateConfirmHandler()); |
AddOptionsPageUIHandler(localized_strings, new SupervisedUserImportHandler()); |
@@ -303,6 +302,12 @@ OptionsUI::OptionsUI(content::WebUI* web_ui) |
AddOptionsPageUIHandler(localized_strings, new SyncSetupHandler( |
g_browser_process->profile_manager())); |
AddOptionsPageUIHandler(localized_strings, new WebsiteSettingsHandler()); |
+ |
+ // Disable back end handling for certain options for guest mode. |
+ if (!Profile::FromWebUI(web_ui())->IsOffTheRecord()) { |
+ AddOptionsPageUIHandler(localized_strings, new StartupPagesHandler()); |
Evan Stade
2014/08/19 20:41:15
it suddenly occurs to me that this might trigger o
Mike Lerman
2014/08/20 15:58:16
I was able to make this change, until I moved the
|
+ } |
+ |
#if defined(OS_CHROMEOS) |
AddOptionsPageUIHandler(localized_strings, |
new chromeos::options::AccountsOptionsHandler()); |