| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/options/personal_options_handler.h" | 5 #include "chrome/browser/dom_ui/options/personal_options_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 localized_strings->SetString("passwordsAskToSave", | 66 localized_strings->SetString("passwordsAskToSave", |
| 67 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_ASKTOSAVE)); | 67 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_ASKTOSAVE)); |
| 68 localized_strings->SetString("passwordsNeverSave", | 68 localized_strings->SetString("passwordsNeverSave", |
| 69 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_NEVERSAVE)); | 69 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_NEVERSAVE)); |
| 70 localized_strings->SetString("manage_passwords", | 70 localized_strings->SetString("manage_passwords", |
| 71 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MANAGE_PASSWORDS)); | 71 l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MANAGE_PASSWORDS)); |
| 72 | 72 |
| 73 localized_strings->SetString("autofill", | 73 localized_strings->SetString("autofill", |
| 74 dom_options_util::StripColon( | 74 dom_options_util::StripColon( |
| 75 l10n_util::GetStringUTF16(IDS_AUTOFILL_SETTING_WINDOWS_GROUP_NAME))); | 75 l10n_util::GetStringUTF16(IDS_AUTOFILL_SETTING_WINDOWS_GROUP_NAME))); |
| 76 localized_strings->SetString("autoFillEnabled", |
| 77 l10n_util::GetStringUTF16(IDS_OPTIONS_AUTOFILL_ENABLE)); |
| 76 localized_strings->SetString("manageAutofillSettings", | 78 localized_strings->SetString("manageAutofillSettings", |
| 77 l10n_util::GetStringUTF16(IDS_OPTIONS_MANAGE_AUTOFILL_SETTINGS)); | 79 l10n_util::GetStringUTF16(IDS_OPTIONS_MANAGE_AUTOFILL_SETTINGS)); |
| 78 | 80 |
| 79 localized_strings->SetString("browsingData", | 81 localized_strings->SetString("browsingData", |
| 80 dom_options_util::StripColon( | 82 dom_options_util::StripColon( |
| 81 l10n_util::GetStringUTF16(IDS_OPTIONS_BROWSING_DATA_GROUP_NAME))); | 83 l10n_util::GetStringUTF16(IDS_OPTIONS_BROWSING_DATA_GROUP_NAME))); |
| 82 localized_strings->SetString("importData", | 84 localized_strings->SetString("importData", |
| 83 l10n_util::GetStringUTF16(IDS_OPTIONS_IMPORT_DATA_BUTTON)); | 85 l10n_util::GetStringUTF16(IDS_OPTIONS_IMPORT_DATA_BUTTON)); |
| 84 | 86 |
| 85 localized_strings->SetString("themesGallery", | 87 localized_strings->SetString("themesGallery", |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 #endif | 293 #endif |
| 292 | 294 |
| 293 void PersonalOptionsHandler::OnLoginSuccess() { | 295 void PersonalOptionsHandler::OnLoginSuccess() { |
| 294 OnStateChanged(); | 296 OnStateChanged(); |
| 295 } | 297 } |
| 296 | 298 |
| 297 void PersonalOptionsHandler::OnLoginFailure( | 299 void PersonalOptionsHandler::OnLoginFailure( |
| 298 const GoogleServiceAuthError& error) { | 300 const GoogleServiceAuthError& error) { |
| 299 OnStateChanged(); | 301 OnStateChanged(); |
| 300 } | 302 } |
| OLD | NEW |