| 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/chromeos/proxy_handler.h" | 5 #include "chrome/browser/ui/webui/options2/chromeos/proxy_handler.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "content/public/browser/web_ui.h" | 13 #include "content/public/browser/web_ui.h" |
| 14 #include "grit/chromium_strings.h" | 14 #include "grit/chromium_strings.h" |
| 15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
| 16 #include "grit/locale_settings.h" | 16 #include "grit/locale_settings.h" |
| 17 #include "grit/theme_resources.h" | 17 #include "grit/theme_resources.h" |
| 18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
| 19 #include "ui/base/resource/resource_bundle.h" | 19 #include "ui/base/resource/resource_bundle.h" |
| 20 | 20 |
| 21 namespace chromeos { | 21 namespace chromeos { |
| 22 namespace options2 { | 22 namespace options { |
| 23 | 23 |
| 24 ProxyHandler::ProxyHandler() { | 24 ProxyHandler::ProxyHandler() { |
| 25 } | 25 } |
| 26 | 26 |
| 27 ProxyHandler::~ProxyHandler() { | 27 ProxyHandler::~ProxyHandler() { |
| 28 } | 28 } |
| 29 | 29 |
| 30 void ProxyHandler::GetLocalizedValues( | 30 void ProxyHandler::GetLocalizedValues( |
| 31 DictionaryValue* localized_strings) { | 31 DictionaryValue* localized_strings) { |
| 32 DCHECK(localized_strings); | 32 DCHECK(localized_strings); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 RegisterStrings(localized_strings, resources, arraysize(resources)); | 56 RegisterStrings(localized_strings, resources, arraysize(resources)); |
| 57 | 57 |
| 58 localized_strings->SetString("enableSharedProxiesBannerText", | 58 localized_strings->SetString("enableSharedProxiesBannerText", |
| 59 l10n_util::GetStringFUTF16( | 59 l10n_util::GetStringFUTF16( |
| 60 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_ENABLE_SHARED_PROXIES_HINT, | 60 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_ENABLE_SHARED_PROXIES_HINT, |
| 61 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_USE_SHARED_PROXIES))); | 61 l10n_util::GetStringUTF16(IDS_OPTIONS_SETTINGS_USE_SHARED_PROXIES))); |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace options2 | 64 } // namespace options |
| 65 } // namespace chromeos | 65 } // namespace chromeos |
| OLD | NEW |