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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 values->SetString("accessibilitySettingsURL", | 631 values->SetString("accessibilitySettingsURL", |
632 settings_url); | 632 settings_url); |
633 | 633 |
634 values->SetString("contentProtectionAttestationLearnMoreURL", | 634 values->SetString("contentProtectionAttestationLearnMoreURL", |
635 chrome::kAttestationForContentProtectionLearnMoreURL); | 635 chrome::kAttestationForContentProtectionLearnMoreURL); |
636 | 636 |
637 // Creates magnifierList. | 637 // Creates magnifierList. |
638 std::unique_ptr<base::ListValue> magnifier_list(new base::ListValue); | 638 std::unique_ptr<base::ListValue> magnifier_list(new base::ListValue); |
639 | 639 |
640 std::unique_ptr<base::ListValue> option_full(new base::ListValue); | 640 std::unique_ptr<base::ListValue> option_full(new base::ListValue); |
641 option_full->AppendInteger(ui::MAGNIFIER_FULL); | 641 option_full->AppendInteger(ash::MAGNIFIER_FULL); |
642 option_full->AppendString(l10n_util::GetStringUTF16( | 642 option_full->AppendString(l10n_util::GetStringUTF16( |
643 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_FULL)); | 643 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_FULL)); |
644 magnifier_list->Append(option_full.release()); | 644 magnifier_list->Append(option_full.release()); |
645 | 645 |
646 std::unique_ptr<base::ListValue> option_partial(new base::ListValue); | 646 std::unique_ptr<base::ListValue> option_partial(new base::ListValue); |
647 option_partial->AppendInteger(ui::MAGNIFIER_PARTIAL); | 647 option_partial->AppendInteger(ash::MAGNIFIER_PARTIAL); |
648 option_partial->Append(new base::StringValue(l10n_util::GetStringUTF16( | 648 option_partial->Append(new base::StringValue(l10n_util::GetStringUTF16( |
649 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_PARTIAL))); | 649 IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_PARTIAL))); |
650 magnifier_list->Append(option_partial.release()); | 650 magnifier_list->Append(option_partial.release()); |
651 | 651 |
652 values->Set("magnifierList", magnifier_list.release()); | 652 values->Set("magnifierList", magnifier_list.release()); |
653 #endif | 653 #endif |
654 | 654 |
655 #if defined(OS_MACOSX) | 655 #if defined(OS_MACOSX) |
656 values->SetString("macPasswordsWarning", | 656 values->SetString("macPasswordsWarning", |
657 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MAC_WARNING)); | 657 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MAC_WARNING)); |
(...skipping 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2228 | 2228 |
2229 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { | 2229 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { |
2230 #if defined(OS_CHROMEOS) | 2230 #if defined(OS_CHROMEOS) |
2231 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); | 2231 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); |
2232 #else | 2232 #else |
2233 return true; | 2233 return true; |
2234 #endif | 2234 #endif |
2235 } | 2235 } |
2236 | 2236 |
2237 } // namespace options | 2237 } // namespace options |
OLD | NEW |