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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 values->SetBoolean( | 733 values->SetBoolean( |
734 "enableExperimentalAccessibilityFeatures", | 734 "enableExperimentalAccessibilityFeatures", |
735 base::CommandLine::ForCurrentProcess()->HasSwitch( | 735 base::CommandLine::ForCurrentProcess()->HasSwitch( |
736 chromeos::switches::kEnableExperimentalAccessibilityFeatures)); | 736 chromeos::switches::kEnableExperimentalAccessibilityFeatures)); |
737 | 737 |
738 chromeos::CrosSettings* cros_settings = chromeos::CrosSettings::Get(); | 738 chromeos::CrosSettings* cros_settings = chromeos::CrosSettings::Get(); |
739 bool allow_bluetooth = true; | 739 bool allow_bluetooth = true; |
740 cros_settings->GetBoolean(chromeos::kAllowBluetooth, &allow_bluetooth); | 740 cros_settings->GetBoolean(chromeos::kAllowBluetooth, &allow_bluetooth); |
741 values->SetBoolean("allowBluetooth", allow_bluetooth); | 741 values->SetBoolean("allowBluetooth", allow_bluetooth); |
742 | 742 |
743 values->SetBoolean("enableStorageManager", | |
744 !base::CommandLine::ForCurrentProcess()->HasSwitch( | |
745 chromeos::switches::kDisableStorageManager)); | |
746 | |
747 values->SetBoolean("showQuickUnlockSettings", | 743 values->SetBoolean("showQuickUnlockSettings", |
748 chromeos::IsQuickUnlockEnabled()); | 744 chromeos::IsQuickUnlockEnabled()); |
749 if (chromeos::IsQuickUnlockEnabled()) { | 745 if (chromeos::IsQuickUnlockEnabled()) { |
750 values->SetString( | 746 values->SetString( |
751 "enableScreenlock", | 747 "enableScreenlock", |
752 l10n_util::GetStringUTF16( | 748 l10n_util::GetStringUTF16( |
753 IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX_WITH_QUICK_UNLOCK)); | 749 IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX_WITH_QUICK_UNLOCK)); |
754 } else { | 750 } else { |
755 values->SetString( | 751 values->SetString( |
756 "enableScreenlock", | 752 "enableScreenlock", |
(...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2233 | 2229 |
2234 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { | 2230 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { |
2235 #if defined(OS_CHROMEOS) | 2231 #if defined(OS_CHROMEOS) |
2236 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); | 2232 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); |
2237 #else | 2233 #else |
2238 return true; | 2234 return true; |
2239 #endif | 2235 #endif |
2240 } | 2236 } |
2241 | 2237 |
2242 } // namespace options | 2238 } // namespace options |
OLD | NEW |