OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/webui/options/browser_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/browser_options_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 values->SetBoolean("profileIsGuest", profile->IsOffTheRecord()); | 746 values->SetBoolean("profileIsGuest", profile->IsOffTheRecord()); |
747 values->SetBoolean("profileIsSupervised", profile->IsSupervised()); | 747 values->SetBoolean("profileIsSupervised", profile->IsSupervised()); |
748 | 748 |
749 #if !defined(OS_CHROMEOS) | 749 #if !defined(OS_CHROMEOS) |
750 values->SetBoolean( | 750 values->SetBoolean( |
751 "gpuEnabledAtStart", | 751 "gpuEnabledAtStart", |
752 g_browser_process->gpu_mode_manager()->initial_gpu_mode_pref()); | 752 g_browser_process->gpu_mode_manager()->initial_gpu_mode_pref()); |
753 #endif | 753 #endif |
754 | 754 |
755 #if defined(OS_CHROMEOS) | 755 #if defined(OS_CHROMEOS) |
756 values->SetBoolean("cupsPrintEnabled", | 756 values->SetBoolean("cupsPrintDisabled", |
757 base::CommandLine::ForCurrentProcess()->HasSwitch( | 757 base::CommandLine::ForCurrentProcess()->HasSwitch( |
758 ::switches::kEnableNativeCups)); | 758 ::switches::kDisableNativeCups)); |
759 values->SetString("cupsPrintLearnMoreURL", | 759 values->SetString("cupsPrintLearnMoreURL", |
760 chrome::kChromeUIMdCupsSettingsURL); | 760 chrome::kChromeUIMdCupsSettingsURL); |
761 #endif // defined(OS_CHROMEOS) | 761 #endif // defined(OS_CHROMEOS) |
762 | 762 |
763 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 763 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
764 values->SetBoolean("cloudPrintHideNotificationsCheckbox", | 764 values->SetBoolean("cloudPrintHideNotificationsCheckbox", |
765 !cloud_print::PrivetNotificationService::IsEnabled()); | 765 !cloud_print::PrivetNotificationService::IsEnabled()); |
766 #endif | 766 #endif |
767 | 767 |
768 values->SetBoolean("cloudPrintShowMDnsOptions", | 768 values->SetBoolean("cloudPrintShowMDnsOptions", |
(...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2364 | 2364 |
2365 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { | 2365 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { |
2366 #if defined(OS_CHROMEOS) | 2366 #if defined(OS_CHROMEOS) |
2367 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); | 2367 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); |
2368 #else | 2368 #else |
2369 return true; | 2369 return true; |
2370 #endif | 2370 #endif |
2371 } | 2371 } |
2372 | 2372 |
2373 } // namespace options | 2373 } // namespace options |
OLD | NEW |