| 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 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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("cupsPrintDisabled", | 756 values->SetBoolean("cupsPrintDisabled", |
| 757 base::CommandLine::ForCurrentProcess()->HasSwitch( | 757 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 758 ::switches::kDisableNativeCups)); | 758 ::switches::kDisableNativeCups)); |
| 759 values->SetString("cupsPrintLearnMoreURL", | 759 values->SetString("cupsPrintLearnMoreURL", chrome::kCrosPrintingLearnMoreURL); |
| 760 chrome::kChromeUIMdCupsSettingsURL); | |
| 761 #endif // defined(OS_CHROMEOS) | 760 #endif // defined(OS_CHROMEOS) |
| 762 | 761 |
| 763 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 762 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
| 764 values->SetBoolean("cloudPrintHideNotificationsCheckbox", | 763 values->SetBoolean("cloudPrintHideNotificationsCheckbox", |
| 765 !cloud_print::PrivetNotificationService::IsEnabled()); | 764 !cloud_print::PrivetNotificationService::IsEnabled()); |
| 766 #endif | 765 #endif |
| 767 | 766 |
| 768 values->SetBoolean("cloudPrintShowMDnsOptions", | 767 values->SetBoolean("cloudPrintShowMDnsOptions", |
| 769 cloud_print_mdns_ui_enabled_); | 768 cloud_print_mdns_ui_enabled_); |
| 770 | 769 |
| (...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2364 | 2363 |
| 2365 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { | 2364 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { |
| 2366 #if defined(OS_CHROMEOS) | 2365 #if defined(OS_CHROMEOS) |
| 2367 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); | 2366 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); |
| 2368 #else | 2367 #else |
| 2369 return true; | 2368 return true; |
| 2370 #endif | 2369 #endif |
| 2371 } | 2370 } |
| 2372 | 2371 |
| 2373 } // namespace options | 2372 } // namespace options |
| OLD | NEW |