Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1081)

Unified Diff: chrome/browser/ui/webui/options/startup_pages_handler.cc

Issue 467363003: Guest mode causes certain settings to be hidden. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change visibility to CSS controlled Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/options/browser_options_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/startup_pages_handler.cc
diff --git a/chrome/browser/ui/webui/options/startup_pages_handler.cc b/chrome/browser/ui/webui/options/startup_pages_handler.cc
index 7aaf5f1f1597e4583e2a166d88c231d98b71c4d7..6563b45ff4d5305962a607ef9e4c86460bee874e 100644
--- a/chrome/browser/ui/webui/options/startup_pages_handler.cc
+++ b/chrome/browser/ui/webui/options/startup_pages_handler.cc
@@ -48,6 +48,11 @@ void StartupPagesHandler::GetLocalizedValues(
}
void StartupPagesHandler::RegisterMessages() {
+ // Guest profiles should never have been displayed the option to set these
+ // values.
+ if (Profile::FromWebUI(web_ui())->IsOffTheRecord())
+ return;
+
web_ui()->RegisterMessageCallback("removeStartupPages",
base::Bind(&StartupPagesHandler::RemoveStartupPages,
base::Unretained(this)));
« no previous file with comments | « chrome/browser/ui/webui/options/browser_options_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698