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 <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 if (cloud_print_connector_ui_enabled_) { | 769 if (cloud_print_connector_ui_enabled_) { |
770 SetupCloudPrintConnectorSection(); | 770 SetupCloudPrintConnectorSection(); |
771 RefreshCloudPrintStatusFromService(); | 771 RefreshCloudPrintStatusFromService(); |
772 } else { | 772 } else { |
773 RemoveCloudPrintConnectorSection(); | 773 RemoveCloudPrintConnectorSection(); |
774 } | 774 } |
775 #endif | 775 #endif |
776 #if defined(OS_CHROMEOS) | 776 #if defined(OS_CHROMEOS) |
777 SetupAccessibilityFeatures(); | 777 SetupAccessibilityFeatures(); |
778 if (!g_browser_process->browser_policy_connector()->IsEnterpriseManaged() && | 778 if (!g_browser_process->browser_policy_connector()->IsEnterpriseManaged() && |
779 !chromeos::UserManager::Get()->IsLoggedInAsGuest()) { | 779 !chromeos::UserManager::Get()->IsLoggedInAsGuest() && |
| 780 !chromeos::UserManager::Get()->IsLoggedInAsLocallyManagedUser()) { |
780 web_ui()->CallJavascriptFunction( | 781 web_ui()->CallJavascriptFunction( |
781 "BrowserOptions.enableFactoryResetSection"); | 782 "BrowserOptions.enableFactoryResetSection"); |
782 } | 783 } |
783 #endif | 784 #endif |
784 } | 785 } |
785 | 786 |
786 // static | 787 // static |
787 void BrowserOptionsHandler::CheckAutoLaunch( | 788 void BrowserOptionsHandler::CheckAutoLaunch( |
788 base::WeakPtr<BrowserOptionsHandler> weak_this, | 789 base::WeakPtr<BrowserOptionsHandler> weak_this, |
789 const base::FilePath& profile_path) { | 790 const base::FilePath& profile_path) { |
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1767 const ProfileInfoCache& cache = | 1768 const ProfileInfoCache& cache = |
1768 g_browser_process->profile_manager()->GetProfileInfoCache(); | 1769 g_browser_process->profile_manager()->GetProfileInfoCache(); |
1769 for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i) { | 1770 for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i) { |
1770 if (existing_managed_user_id == cache.GetManagedUserIdOfProfileAtIndex(i)) | 1771 if (existing_managed_user_id == cache.GetManagedUserIdOfProfileAtIndex(i)) |
1771 return false; | 1772 return false; |
1772 } | 1773 } |
1773 return true; | 1774 return true; |
1774 } | 1775 } |
1775 | 1776 |
1776 } // namespace options | 1777 } // namespace options |
OLD | NEW |