| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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/chromeos/internet_options_handler_stri
ngs.h" | 5 #include "chrome/browser/ui/webui/options/chromeos/internet_options_handler_stri
ngs.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/grit/generated_resources.h" | 9 #include "chrome/grit/generated_resources.h" |
| 10 #include "grit/ash_strings.h" | |
| 11 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
| 12 | 11 |
| 13 namespace chromeos { | 12 namespace chromeos { |
| 14 namespace internet_options_strings { | 13 namespace internet_options_strings { |
| 15 | 14 |
| 16 namespace { | 15 namespace { |
| 17 | 16 |
| 18 struct StringResource { | 17 struct StringResource { |
| 19 const char* name; | 18 const char* name; |
| 20 int id; | 19 int id; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 void RegisterLocalizedStrings(base::DictionaryValue* localized_strings) { | 182 void RegisterLocalizedStrings(base::DictionaryValue* localized_strings) { |
| 184 for (size_t i = 0; i < kStringResourcesLength; ++i) { | 183 for (size_t i = 0; i < kStringResourcesLength; ++i) { |
| 185 localized_strings->SetString( | 184 localized_strings->SetString( |
| 186 kStringResources[i].name, | 185 kStringResources[i].name, |
| 187 l10n_util::GetStringUTF16(kStringResources[i].id)); | 186 l10n_util::GetStringUTF16(kStringResources[i].id)); |
| 188 } | 187 } |
| 189 } | 188 } |
| 190 | 189 |
| 191 } // namespace internet_options_strings | 190 } // namespace internet_options_strings |
| 192 } // namespace chromeos | 191 } // namespace chromeos |
| OLD | NEW |