| 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/options2/browser_options_handler.h" | 5 #include "chrome/browser/ui/webui/options2/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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 76 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 77 #include "ui/base/l10n/l10n_util.h" | 77 #include "ui/base/l10n/l10n_util.h" |
| 78 | 78 |
| 79 #if !defined(OS_CHROMEOS) | 79 #if !defined(OS_CHROMEOS) |
| 80 #include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h" | 80 #include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h" |
| 81 #include "chrome/browser/ui/webui/options2/advanced_options_utils.h" | 81 #include "chrome/browser/ui/webui/options2/advanced_options_utils.h" |
| 82 #endif | 82 #endif |
| 83 | 83 |
| 84 #if defined(OS_CHROMEOS) | 84 #if defined(OS_CHROMEOS) |
| 85 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 85 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
| 86 #include "chrome/browser/chromeos/cros_settings.h" | |
| 87 #include "chrome/browser/chromeos/extensions/wallpaper_manager_api.h" | 86 #include "chrome/browser/chromeos/extensions/wallpaper_manager_api.h" |
| 88 #include "chrome/browser/chromeos/login/user_manager.h" | 87 #include "chrome/browser/chromeos/login/user_manager.h" |
| 89 #include "chrome/browser/chromeos/options/take_photo_dialog.h" | 88 #include "chrome/browser/chromeos/options/take_photo_dialog.h" |
| 90 #include "chrome/browser/chromeos/system_settings_provider.h" | |
| 91 #include "chrome/browser/ui/browser_window.h" | 89 #include "chrome/browser/ui/browser_window.h" |
| 90 #include "chrome/browser/ui/webui/options2/chromeos/timezone_options_util.h" |
| 92 #include "ui/gfx/image/image_skia.h" | 91 #include "ui/gfx/image/image_skia.h" |
| 93 #endif // defined(OS_CHROMEOS) | 92 #endif // defined(OS_CHROMEOS) |
| 94 | 93 |
| 95 #if defined(OS_WIN) | 94 #if defined(OS_WIN) |
| 96 #include "chrome/installer/util/auto_launch_util.h" | 95 #include "chrome/installer/util/auto_launch_util.h" |
| 97 #endif // defined(OS_WIN) | 96 #endif // defined(OS_WIN) |
| 98 | 97 |
| 99 #if defined(TOOLKIT_GTK) | 98 #if defined(TOOLKIT_GTK) |
| 100 #include "chrome/browser/ui/gtk/gtk_theme_service.h" | 99 #include "chrome/browser/ui/gtk/gtk_theme_service.h" |
| 101 #endif // defined(TOOLKIT_GTK) | 100 #endif // defined(TOOLKIT_GTK) |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 "languageSectionLabel", | 378 "languageSectionLabel", |
| 380 l10n_util::GetStringFUTF16( | 379 l10n_util::GetStringFUTF16( |
| 381 IDS_OPTIONS_ADVANCED_LANGUAGE_LABEL, | 380 IDS_OPTIONS_ADVANCED_LANGUAGE_LABEL, |
| 382 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME))); | 381 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME))); |
| 383 | 382 |
| 384 #if defined(OS_CHROMEOS) | 383 #if defined(OS_CHROMEOS) |
| 385 values->SetString("cloudPrintLearnMoreURL", chrome::kCloudPrintLearnMoreURL); | 384 values->SetString("cloudPrintLearnMoreURL", chrome::kCloudPrintLearnMoreURL); |
| 386 | 385 |
| 387 // TODO(pastarmovj): replace this with a call to the CrosSettings list | 386 // TODO(pastarmovj): replace this with a call to the CrosSettings list |
| 388 // handling functionality to come. | 387 // handling functionality to come. |
| 389 values->Set("timezoneList", | 388 values->Set("timezoneList", GetTimezoneList().release()); |
| 390 static_cast<chromeos::SystemSettingsProvider*>( | |
| 391 chromeos::CrosSettings::Get()->GetProvider( | |
| 392 chromeos::kSystemTimezone))->GetTimezoneList()); | |
| 393 #endif | 389 #endif |
| 394 #if defined(OS_MACOSX) | 390 #if defined(OS_MACOSX) |
| 395 values->SetString("macPasswordsWarning", | 391 values->SetString("macPasswordsWarning", |
| 396 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MAC_WARNING)); | 392 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MAC_WARNING)); |
| 397 values->SetBoolean("multiple_profiles", | 393 values->SetBoolean("multiple_profiles", |
| 398 g_browser_process->profile_manager()->GetNumberOfProfiles() > 1); | 394 g_browser_process->profile_manager()->GetNumberOfProfiles() > 1); |
| 399 #endif | 395 #endif |
| 400 | 396 |
| 401 if (multiprofile_) | 397 if (multiprofile_) |
| 402 values->Set("profilesInfo", GetProfilesInfoList().release()); | 398 values->Set("profilesInfo", GetProfilesInfoList().release()); |
| (...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1453 } | 1449 } |
| 1454 | 1450 |
| 1455 void BrowserOptionsHandler::SetupSSLConfigSettings() { | 1451 void BrowserOptionsHandler::SetupSSLConfigSettings() { |
| 1456 base::FundamentalValue checked(rev_checking_enabled_.GetValue()); | 1452 base::FundamentalValue checked(rev_checking_enabled_.GetValue()); |
| 1457 base::FundamentalValue disabled(rev_checking_enabled_.IsManaged()); | 1453 base::FundamentalValue disabled(rev_checking_enabled_.IsManaged()); |
| 1458 web_ui()->CallJavascriptFunction( | 1454 web_ui()->CallJavascriptFunction( |
| 1459 "BrowserOptions.setCheckRevocationCheckboxState", checked, disabled); | 1455 "BrowserOptions.setCheckRevocationCheckboxState", checked, disabled); |
| 1460 } | 1456 } |
| 1461 | 1457 |
| 1462 } // namespace options2 | 1458 } // namespace options2 |
| OLD | NEW |