OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/personal_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/personal_options_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 localized_strings->SetString("syncpasswords", | 174 localized_strings->SetString("syncpasswords", |
175 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_PASSWORDS)); | 175 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_PASSWORDS)); |
176 localized_strings->SetString("syncextensions", | 176 localized_strings->SetString("syncextensions", |
177 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_EXTENSIONS)); | 177 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_EXTENSIONS)); |
178 localized_strings->SetString("syncautofill", | 178 localized_strings->SetString("syncautofill", |
179 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_AUTOFILL)); | 179 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_AUTOFILL)); |
180 localized_strings->SetString("syncthemes", | 180 localized_strings->SetString("syncthemes", |
181 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_THEMES)); | 181 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_THEMES)); |
182 localized_strings->SetString("syncapps", | 182 localized_strings->SetString("syncapps", |
183 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_APPS)); | 183 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_APPS)); |
| 184 localized_strings->SetString("syncsearchengines", |
| 185 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_SEARCH_ENGINES)); |
184 localized_strings->SetString("syncsessions", | 186 localized_strings->SetString("syncsessions", |
185 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_SESSIONS)); | 187 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_SESSIONS)); |
186 | 188 |
187 #if defined(OS_CHROMEOS) | 189 #if defined(OS_CHROMEOS) |
188 localized_strings->SetString("account", | 190 localized_strings->SetString("account", |
189 l10n_util::GetStringUTF16(IDS_OPTIONS_PERSONAL_ACCOUNT_GROUP_NAME)); | 191 l10n_util::GetStringUTF16(IDS_OPTIONS_PERSONAL_ACCOUNT_GROUP_NAME)); |
190 localized_strings->SetString("enableScreenlock", | 192 localized_strings->SetString("enableScreenlock", |
191 l10n_util::GetStringUTF16(IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX)); | 193 l10n_util::GetStringUTF16(IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX)); |
192 localized_strings->SetString("changePicture", | 194 localized_strings->SetString("changePicture", |
193 l10n_util::GetStringUTF16(IDS_OPTIONS_CHANGE_PICTURE)); | 195 l10n_util::GetStringUTF16(IDS_OPTIONS_CHANGE_PICTURE)); |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 } | 436 } |
435 | 437 |
436 web_ui_->CallJavascriptFunction("PersonalOptions.setProfilesInfo", | 438 web_ui_->CallJavascriptFunction("PersonalOptions.setProfilesInfo", |
437 profile_info_list); | 439 profile_info_list); |
438 } | 440 } |
439 | 441 |
440 void PersonalOptionsHandler::CreateProfile(const ListValue* args) { | 442 void PersonalOptionsHandler::CreateProfile(const ListValue* args) { |
441 ProfileManager::CreateMultiProfileAsync(); | 443 ProfileManager::CreateMultiProfileAsync(); |
442 } | 444 } |
443 | 445 |
OLD | NEW |