| 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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 values->SetBoolean("profileIsGuest", profile->IsOffTheRecord()); | 747 values->SetBoolean("profileIsGuest", profile->IsOffTheRecord()); |
| 748 values->SetBoolean("profileIsSupervised", profile->IsSupervised()); | 748 values->SetBoolean("profileIsSupervised", profile->IsSupervised()); |
| 749 | 749 |
| 750 #if !defined(OS_CHROMEOS) | 750 #if !defined(OS_CHROMEOS) |
| 751 values->SetBoolean( | 751 values->SetBoolean( |
| 752 "gpuEnabledAtStart", | 752 "gpuEnabledAtStart", |
| 753 g_browser_process->gpu_mode_manager()->initial_gpu_mode_pref()); | 753 g_browser_process->gpu_mode_manager()->initial_gpu_mode_pref()); |
| 754 #endif | 754 #endif |
| 755 | 755 |
| 756 #if defined(OS_CHROMEOS) | 756 #if defined(OS_CHROMEOS) |
| 757 values->SetBoolean("cupsPrintEnabled", | 757 values->SetBoolean("cupsPrintDisabled", |
| 758 base::CommandLine::ForCurrentProcess()->HasSwitch( | 758 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 759 ::switches::kEnableNativeCups)); | 759 ::switches::kDisableNativeCups)); |
| 760 values->SetString("cupsPrintLearnMoreURL", | 760 values->SetString("cupsPrintLearnMoreURL", |
| 761 chrome::kChromeUIMdCupsSettingsURL); | 761 chrome::kChromeUIMdCupsSettingsURL); |
| 762 #endif // defined(OS_CHROMEOS) | 762 #endif // defined(OS_CHROMEOS) |
| 763 | 763 |
| 764 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 764 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
| 765 values->SetBoolean("cloudPrintHideNotificationsCheckbox", | 765 values->SetBoolean("cloudPrintHideNotificationsCheckbox", |
| 766 !cloud_print::PrivetNotificationService::IsEnabled()); | 766 !cloud_print::PrivetNotificationService::IsEnabled()); |
| 767 #endif | 767 #endif |
| 768 | 768 |
| 769 values->SetBoolean("cloudPrintShowMDnsOptions", | 769 values->SetBoolean("cloudPrintShowMDnsOptions", |
| (...skipping 1594 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 |