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

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

Issue 164333007: Switch guest profile from forced-incognito to UI mods like ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed typo in function call Created 6 years, 10 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
Index: chrome/browser/ui/webui/options/browser_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
index 5be4f546fee5583b6d09a5880da2d90686fcdcbf..6827ca578f1545c9104ae8b43685dd5d7c2bd88b 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -1573,10 +1573,10 @@ void BrowserOptionsHandler::SetupAccessibilityFeatures() {
#endif
void BrowserOptionsHandler::SetupMetricsReportingSettingVisibility() {
-#if defined(GOOGLE_CHROME_BUILD) && defined(OS_CHROMEOS)
+#if defined(GOOGLE_CHROME_BUILD)
// Don't show the reporting setting if we are in the guest mode.
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- chromeos::switches::kGuestSession)) {
+ Profile* profile = Profile::FromWebUI(web_ui());
msw 2014/02/15 00:30:52 nit: inline this in the if statement below.
bcwhite 2014/02/18 15:19:36 Done.
+ if (profile->IsGuestSession()) {
base::FundamentalValue visible(false);
web_ui()->CallJavascriptFunction(
"BrowserOptions.setMetricsReportingSettingVisibility", visible);

Powered by Google App Engine
This is Rietveld 408576698