| 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 "apps/shell_window.h" | 10 #include "apps/shell_window.h" |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 { "proxiesLabelExtension", IDS_OPTIONS_EXTENSION_PROXIES_LABEL }, | 292 { "proxiesLabelExtension", IDS_OPTIONS_EXTENSION_PROXIES_LABEL }, |
| 293 { "proxiesLabelSystem", IDS_OPTIONS_SYSTEM_PROXIES_LABEL, | 293 { "proxiesLabelSystem", IDS_OPTIONS_SYSTEM_PROXIES_LABEL, |
| 294 IDS_PRODUCT_NAME }, | 294 IDS_PRODUCT_NAME }, |
| 295 { "resetProfileSettings", IDS_RESET_PROFILE_SETTINGS_BUTTON }, | 295 { "resetProfileSettings", IDS_RESET_PROFILE_SETTINGS_BUTTON }, |
| 296 { "resetProfileSettingsDescription", | 296 { "resetProfileSettingsDescription", |
| 297 IDS_RESET_PROFILE_SETTINGS_DESCRIPTION }, | 297 IDS_RESET_PROFILE_SETTINGS_DESCRIPTION }, |
| 298 { "resetProfileSettingsSectionTitle", | 298 { "resetProfileSettingsSectionTitle", |
| 299 IDS_RESET_PROFILE_SETTINGS_SECTION_TITLE }, | 299 IDS_RESET_PROFILE_SETTINGS_SECTION_TITLE }, |
| 300 { "safeBrowsingEnableProtection", | 300 { "safeBrowsingEnableProtection", |
| 301 IDS_OPTIONS_SAFEBROWSING_ENABLEPROTECTION }, | 301 IDS_OPTIONS_SAFEBROWSING_ENABLEPROTECTION }, |
| 302 { "safeBrowsingEnableDownloadFeedback", |
| 303 IDS_OPTIONS_SAFEBROWSING_ENABLEDOWNLOADFEEDBACK }, |
| 302 { "sectionTitleAppearance", IDS_APPEARANCE_GROUP_NAME }, | 304 { "sectionTitleAppearance", IDS_APPEARANCE_GROUP_NAME }, |
| 303 { "sectionTitleDefaultBrowser", IDS_OPTIONS_DEFAULTBROWSER_GROUP_NAME }, | 305 { "sectionTitleDefaultBrowser", IDS_OPTIONS_DEFAULTBROWSER_GROUP_NAME }, |
| 304 { "sectionTitleUsers", IDS_PROFILES_OPTIONS_GROUP_NAME }, | 306 { "sectionTitleUsers", IDS_PROFILES_OPTIONS_GROUP_NAME }, |
| 305 { "sectionTitleSearch", IDS_OPTIONS_DEFAULTSEARCH_GROUP_NAME }, | 307 { "sectionTitleSearch", IDS_OPTIONS_DEFAULTSEARCH_GROUP_NAME }, |
| 306 { "sectionTitleStartup", IDS_OPTIONS_STARTUP_GROUP_NAME }, | 308 { "sectionTitleStartup", IDS_OPTIONS_STARTUP_GROUP_NAME }, |
| 307 { "sectionTitleSync", IDS_SYNC_OPTIONS_GROUP_NAME }, | 309 { "sectionTitleSync", IDS_SYNC_OPTIONS_GROUP_NAME }, |
| 308 { "spellingConfirmMessage", IDS_CONTENT_CONTEXT_SPELLING_BUBBLE_TEXT }, | 310 { "spellingConfirmMessage", IDS_CONTENT_CONTEXT_SPELLING_BUBBLE_TEXT }, |
| 309 { "spellingConfirmEnable", IDS_CONTENT_CONTEXT_SPELLING_BUBBLE_ENABLE }, | 311 { "spellingConfirmEnable", IDS_CONTENT_CONTEXT_SPELLING_BUBBLE_ENABLE }, |
| 310 { "spellingConfirmDisable", IDS_CONTENT_CONTEXT_SPELLING_BUBBLE_DISABLE }, | 312 { "spellingConfirmDisable", IDS_CONTENT_CONTEXT_SPELLING_BUBBLE_DISABLE }, |
| 311 { "spellingPref", IDS_OPTIONS_SPELLING_PREF }, | 313 { "spellingPref", IDS_OPTIONS_SPELLING_PREF }, |
| (...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1712 void BrowserOptionsHandler::SetupManagingSupervisedUsers() { | 1714 void BrowserOptionsHandler::SetupManagingSupervisedUsers() { |
| 1713 bool has_users = !Profile::FromWebUI(web_ui())-> | 1715 bool has_users = !Profile::FromWebUI(web_ui())-> |
| 1714 GetPrefs()->GetDictionary(prefs::kManagedUsers)->empty(); | 1716 GetPrefs()->GetDictionary(prefs::kManagedUsers)->empty(); |
| 1715 base::FundamentalValue has_users_value(has_users); | 1717 base::FundamentalValue has_users_value(has_users); |
| 1716 web_ui()->CallJavascriptFunction( | 1718 web_ui()->CallJavascriptFunction( |
| 1717 "BrowserOptions.updateManagesSupervisedUsers", | 1719 "BrowserOptions.updateManagesSupervisedUsers", |
| 1718 has_users_value); | 1720 has_users_value); |
| 1719 } | 1721 } |
| 1720 | 1722 |
| 1721 } // namespace options | 1723 } // namespace options |
| OLD | NEW |