| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/sync_setup_handler.h" | 5 #include "chrome/browser/ui/webui/options/sync_setup_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 localized_strings->SetString("autofillHelpURL", autofill::kHelpURL); | 194 localized_strings->SetString("autofillHelpURL", autofill::kHelpURL); |
| 195 localized_strings->SetString( | 195 localized_strings->SetString( |
| 196 "encryptionInstructions", | 196 "encryptionInstructions", |
| 197 GetStringFUTF16(IDS_SYNC_ENCRYPTION_INSTRUCTIONS, product_name)); | 197 GetStringFUTF16(IDS_SYNC_ENCRYPTION_INSTRUCTIONS, product_name)); |
| 198 localized_strings->SetString( | 198 localized_strings->SetString( |
| 199 "encryptionHelpURL", chrome::kSyncEncryptionHelpURL); | 199 "encryptionHelpURL", chrome::kSyncEncryptionHelpURL); |
| 200 localized_strings->SetString( | 200 localized_strings->SetString( |
| 201 "encryptionSectionMessage", | 201 "encryptionSectionMessage", |
| 202 GetStringFUTF16(IDS_SYNC_ENCRYPTION_SECTION_MESSAGE, product_name)); | 202 GetStringFUTF16(IDS_SYNC_ENCRYPTION_SECTION_MESSAGE, product_name)); |
| 203 localized_strings->SetString( | 203 localized_strings->SetString( |
| 204 "personalizeGoogleServicesTitle", |
| 205 GetStringUTF16(IDS_SYNC_CONFIRMATION_PERSONALIZE_SERVICES_TITLE)); |
| 206 localized_strings->SetString( |
| 207 "personalizeGoogleServicesMessage", |
| 208 GetStringFUTF16( |
| 209 IDS_SYNC_PERSONALIZE_GOOGLE_SERVICES_MESSAGE, |
| 210 base::ASCIIToUTF16(chrome::kGoogleAccountActivityControlsURL))); |
| 211 localized_strings->SetString( |
| 204 "passphraseRecover", | 212 "passphraseRecover", |
| 205 GetStringFUTF16( | 213 GetStringFUTF16( |
| 206 IDS_SYNC_PASSPHRASE_RECOVER, | 214 IDS_SYNC_PASSPHRASE_RECOVER, |
| 207 base::ASCIIToUTF16( | 215 base::ASCIIToUTF16( |
| 208 google_util::AppendGoogleLocaleParam( | 216 google_util::AppendGoogleLocaleParam( |
| 209 GURL(chrome::kSyncGoogleDashboardURL), | 217 GURL(chrome::kSyncGoogleDashboardURL), |
| 210 g_browser_process->GetApplicationLocale()).spec()))); | 218 g_browser_process->GetApplicationLocale()).spec()))); |
| 211 localized_strings->SetString( | 219 localized_strings->SetString( |
| 212 "stopSyncingExplanation", | 220 "stopSyncingExplanation", |
| 213 l10n_util::GetStringFUTF16( | 221 l10n_util::GetStringFUTF16( |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 957 "SyncSetupOverlay.showSyncSetupPage", page, args); | 965 "SyncSetupOverlay.showSyncSetupPage", page, args); |
| 958 | 966 |
| 959 // Make sure the tab used for the Gaia sign in does not cover the settings | 967 // Make sure the tab used for the Gaia sign in does not cover the settings |
| 960 // tab. | 968 // tab. |
| 961 FocusUI(); | 969 FocusUI(); |
| 962 } | 970 } |
| 963 | 971 |
| 964 LoginUIService* SyncSetupHandler::GetLoginUIService() const { | 972 LoginUIService* SyncSetupHandler::GetLoginUIService() const { |
| 965 return LoginUIServiceFactory::GetForProfile(GetProfile()); | 973 return LoginUIServiceFactory::GetForProfile(GetProfile()); |
| 966 } | 974 } |
| OLD | NEW |