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/sync/sync_setup_wizard.h" | 5 #include "chrome/browser/sync/sync_setup_wizard.h" |
6 | 6 |
7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/singleton.h" | 9 #include "base/singleton.h" |
10 #include "chrome/browser/browser_thread.h" | 10 #include "chrome/browser/browser_thread.h" |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 AddString(dict, "cleardata", IDS_SYNC_CLEAR_DATA_FOR_PASSPHRASE); | 164 AddString(dict, "cleardata", IDS_SYNC_CLEAR_DATA_FOR_PASSPHRASE); |
165 AddString(dict, "cleardatalink", IDS_SYNC_CLEAR_DATA_LINK); | 165 AddString(dict, "cleardatalink", IDS_SYNC_CLEAR_DATA_LINK); |
166 | 166 |
167 // Stuff for the footer. | 167 // Stuff for the footer. |
168 AddString(dict, "ok", IDS_OK); | 168 AddString(dict, "ok", IDS_OK); |
169 AddString(dict, "cancel", IDS_CANCEL); | 169 AddString(dict, "cancel", IDS_CANCEL); |
170 } else if (path_raw == kSyncPassphrasePath) { | 170 } else if (path_raw == kSyncPassphrasePath) { |
171 html_resource_id = IDR_SYNC_PASSPHRASE_HTML; | 171 html_resource_id = IDR_SYNC_PASSPHRASE_HTML; |
172 AddString(dict, "enterPassphraseTitle", IDS_SYNC_ENTER_PASSPHRASE_TITLE); | 172 AddString(dict, "enterPassphraseTitle", IDS_SYNC_ENTER_PASSPHRASE_TITLE); |
173 AddString(dict, "enterPassphraseBody", IDS_SYNC_ENTER_PASSPHRASE_BODY); | 173 AddString(dict, "enterPassphraseBody", IDS_SYNC_ENTER_PASSPHRASE_BODY); |
| 174 AddString(dict, "enterOtherPassphraseBody", |
| 175 IDS_SYNC_ENTER_OTHER_PASSPHRASE_BODY); |
174 AddString(dict, "passphraseLabel", IDS_SYNC_PASSPHRASE_LABEL); | 176 AddString(dict, "passphraseLabel", IDS_SYNC_PASSPHRASE_LABEL); |
| 177 AddString(dict, "incorrectPassphrase", IDS_SYNC_INCORRECT_PASSPHRASE); |
| 178 AddString(dict, "passphraseRecover", IDS_SYNC_PASSPHRASE_RECOVER); |
| 179 AddString(dict, "passphraseWarning", IDS_SYNC_PASSPHRASE_WARNING); |
| 180 AddString(dict, "cleardatalink", IDS_SYNC_CLEAR_DATA_LINK); |
| 181 |
175 AddString(dict, "ok", IDS_OK); | 182 AddString(dict, "ok", IDS_OK); |
176 AddString(dict, "cancel", IDS_CANCEL); | 183 AddString(dict, "cancel", IDS_CANCEL); |
177 | |
178 AddString(dict, "passphraseWarning", IDS_SYNC_PASSPHRASE_WARNING); | |
179 AddString(dict, "cleardatalink", IDS_SYNC_CLEAR_DATA_LINK); | |
180 } else if (path_raw == kSyncFirstPassphrasePath) { | 184 } else if (path_raw == kSyncFirstPassphrasePath) { |
181 html_resource_id = IDR_SYNC_FIRST_PASSPHRASE_HTML; | 185 html_resource_id = IDR_SYNC_FIRST_PASSPHRASE_HTML; |
182 AddString(dict, "title", IDS_SYNC_FIRST_PASSPHRASE_TITLE); | 186 AddString(dict, "title", IDS_SYNC_FIRST_PASSPHRASE_TITLE); |
183 dict->SetString("instructions", | 187 dict->SetString("instructions", |
184 GetStringFUTF16(IDS_SYNC_FIRST_PASSPHRASE_MESSAGE, | 188 GetStringFUTF16(IDS_SYNC_FIRST_PASSPHRASE_MESSAGE, |
185 GetStringUTF16(IDS_PRODUCT_NAME))); | 189 GetStringUTF16(IDS_PRODUCT_NAME))); |
186 AddString(dict, "googleOption", IDS_SYNC_PASSPHRASE_OPT_GOOGLE); | 190 AddString(dict, "googleOption", IDS_SYNC_PASSPHRASE_OPT_GOOGLE); |
187 AddString(dict, "explicitOption", IDS_SYNC_PASSPHRASE_OPT_EXPLICIT); | 191 AddString(dict, "explicitOption", IDS_SYNC_PASSPHRASE_OPT_EXPLICIT); |
188 AddString(dict, "nothanksOption", IDS_SYNC_PASSPHRASE_OPT_CANCEL); | 192 AddString(dict, "nothanksOption", IDS_SYNC_PASSPHRASE_OPT_CANCEL); |
189 AddString(dict, "sectionGoogleMessage", IDS_SYNC_PASSPHRASE_MSG_GOOGLE); | 193 AddString(dict, "sectionGoogleMessage", IDS_SYNC_PASSPHRASE_MSG_GOOGLE); |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 result = GAIA_SUCCESS; | 314 result = GAIA_SUCCESS; |
311 } else if (start_state == ENTER_PASSPHRASE || | 315 } else if (start_state == ENTER_PASSPHRASE || |
312 start_state == CONFIGURE || | 316 start_state == CONFIGURE || |
313 start_state == PASSPHRASE_MIGRATION) { | 317 start_state == PASSPHRASE_MIGRATION) { |
314 result = DONE; | 318 result = DONE; |
315 } | 319 } |
316 DCHECK_NE(FATAL_ERROR, result) << | 320 DCHECK_NE(FATAL_ERROR, result) << |
317 "Invalid start state for discrete run: " << start_state; | 321 "Invalid start state for discrete run: " << start_state; |
318 return result; | 322 return result; |
319 } | 323 } |
OLD | NEW |