| 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..315f9aeda367f8c8dd8b0b6f69aac0f43a71bd52 100644
|
| --- a/chrome/browser/ui/webui/options/browser_options_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
|
| @@ -1573,10 +1573,9 @@ 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)) {
|
| + if (Profile::FromWebUI(web_ui())->IsGuestSession()) {
|
| base::FundamentalValue visible(false);
|
| web_ui()->CallJavascriptFunction(
|
| "BrowserOptions.setMetricsReportingSettingVisibility", visible);
|
|
|