| 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/bind.h" | 10 #include "base/bind.h" |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 localized_strings->SetString("syncpasswords", | 185 localized_strings->SetString("syncpasswords", |
| 186 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_PASSWORDS)); | 186 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_PASSWORDS)); |
| 187 localized_strings->SetString("syncextensions", | 187 localized_strings->SetString("syncextensions", |
| 188 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_EXTENSIONS)); | 188 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_EXTENSIONS)); |
| 189 localized_strings->SetString("syncautofill", | 189 localized_strings->SetString("syncautofill", |
| 190 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_AUTOFILL)); | 190 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_AUTOFILL)); |
| 191 localized_strings->SetString("syncthemes", | 191 localized_strings->SetString("syncthemes", |
| 192 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_THEMES)); | 192 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_THEMES)); |
| 193 localized_strings->SetString("syncapps", | 193 localized_strings->SetString("syncapps", |
| 194 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_APPS)); | 194 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_APPS)); |
| 195 localized_strings->SetString("syncsearchengines", | |
| 196 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_SEARCH_ENGINES)); | |
| 197 localized_strings->SetString("syncsessions", | 195 localized_strings->SetString("syncsessions", |
| 198 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_TABS)); | 196 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_TABS)); |
| 199 | 197 |
| 200 #if defined(OS_CHROMEOS) | 198 #if defined(OS_CHROMEOS) |
| 201 localized_strings->SetString("account", | 199 localized_strings->SetString("account", |
| 202 l10n_util::GetStringUTF16(IDS_OPTIONS_PERSONAL_ACCOUNT_GROUP_NAME)); | 200 l10n_util::GetStringUTF16(IDS_OPTIONS_PERSONAL_ACCOUNT_GROUP_NAME)); |
| 203 localized_strings->SetString("enableScreenlock", | 201 localized_strings->SetString("enableScreenlock", |
| 204 l10n_util::GetStringUTF16(IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX)); | 202 l10n_util::GetStringUTF16(IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX)); |
| 205 localized_strings->SetString("changePicture", | 203 localized_strings->SetString("changePicture", |
| 206 l10n_util::GetStringUTF16(IDS_OPTIONS_CHANGE_PICTURE)); | 204 l10n_util::GetStringUTF16(IDS_OPTIONS_CHANGE_PICTURE)); |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 profile_info_list.Append(profile_value); | 417 profile_info_list.Append(profile_value); |
| 420 } | 418 } |
| 421 | 419 |
| 422 web_ui_->CallJavascriptFunction("PersonalOptions.setProfilesInfo", | 420 web_ui_->CallJavascriptFunction("PersonalOptions.setProfilesInfo", |
| 423 profile_info_list); | 421 profile_info_list); |
| 424 } | 422 } |
| 425 | 423 |
| 426 void PersonalOptionsHandler::CreateProfile(const ListValue* args) { | 424 void PersonalOptionsHandler::CreateProfile(const ListValue* args) { |
| 427 ProfileManager::CreateMultiProfileAsync(); | 425 ProfileManager::CreateMultiProfileAsync(); |
| 428 } | 426 } |
| OLD | NEW |