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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/grit/generated_resources.h" | 11 #include "chrome/grit/generated_resources.h" |
12 #include "grit/components_strings.h" | 12 #include "components/strings/grit/components_strings.h" |
13 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
14 #include "ui/chromeos/strings/grit/ui_chromeos_strings.h" | 14 #include "ui/chromeos/strings/grit/ui_chromeos_strings.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 namespace internet_options_strings { | 17 namespace internet_options_strings { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 struct StringResource { | 21 struct StringResource { |
22 const char* name; | 22 const char* name; |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 void RegisterLocalizedStrings(base::DictionaryValue* localized_strings) { | 198 void RegisterLocalizedStrings(base::DictionaryValue* localized_strings) { |
199 for (size_t i = 0; i < kStringResourcesLength; ++i) { | 199 for (size_t i = 0; i < kStringResourcesLength; ++i) { |
200 localized_strings->SetString( | 200 localized_strings->SetString( |
201 kStringResources[i].name, | 201 kStringResources[i].name, |
202 l10n_util::GetStringUTF16(kStringResources[i].id)); | 202 l10n_util::GetStringUTF16(kStringResources[i].id)); |
203 } | 203 } |
204 } | 204 } |
205 | 205 |
206 } // namespace internet_options_strings | 206 } // namespace internet_options_strings |
207 } // namespace chromeos | 207 } // namespace chromeos |
OLD | NEW |