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

Side by Side Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 2475813002: Enable Native CUPS printing on Chrome OS. (Closed)
Patch Set: rebase Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.js ('k') | chrome/browser/ui/webui/options/options_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698