| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/signin/sync_confirmation_ui.h" | 5 #include "chrome/browser/ui/webui/signin/sync_confirmation_ui.h" |
| 6 | 6 |
| 7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/ui/webui/signin/sync_confirmation_handler.h" | 9 #include "chrome/browser/ui/webui/signin/sync_confirmation_handler.h" |
| 10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 source->SetJsonPath("strings.js"); | 26 source->SetJsonPath("strings.js"); |
| 27 source->SetDefaultResource(IDR_SYNC_CONFIRMATION_HTML); | 27 source->SetDefaultResource(IDR_SYNC_CONFIRMATION_HTML); |
| 28 source->AddResourcePath("sync_confirmation.css", IDR_SYNC_CONFIRMATION_CSS); | 28 source->AddResourcePath("sync_confirmation.css", IDR_SYNC_CONFIRMATION_CSS); |
| 29 source->AddResourcePath("sync_confirmation.js", IDR_SYNC_CONFIRMATION_JS); | 29 source->AddResourcePath("sync_confirmation.js", IDR_SYNC_CONFIRMATION_JS); |
| 30 | 30 |
| 31 source->AddLocalizedString("syncConfirmationTitle", | 31 source->AddLocalizedString("syncConfirmationTitle", |
| 32 IDS_SYNC_CONFIRMATION_TITLE); | 32 IDS_SYNC_CONFIRMATION_TITLE); |
| 33 source->AddLocalizedString("syncConfirmationChromeSyncTitle", | 33 source->AddLocalizedString("syncConfirmationChromeSyncTitle", |
| 34 IDS_SYNC_CONFIRMATION_CHROME_SYNC_TITLE); | 34 IDS_SYNC_CONFIRMATION_CHROME_SYNC_TITLE); |
| 35 source->AddLocalizedString("syncConfirmationChromeSyncBody", | 35 source->AddLocalizedString("syncConfirmationChromeSyncBody", |
| 36 IDS_SYNC_CONFIRMATION_CHROME_SYNC_BODY); | 36 IDS_SYNC_CONFIRMATION_CHROME_SYNC_MESSAGE); |
| 37 source->AddLocalizedString("syncConfirmationPersonalizeServicesTitle", |
| 38 IDS_SYNC_CONFIRMATION_PERSONALIZE_SERVICES_TITLE); |
| 39 source->AddLocalizedString("syncConfirmationPersonalizeServicesBody", |
| 40 IDS_SYNC_CONFIRMATION_PERSONALIZE_SERVICES_BODY); |
| 41 source->AddLocalizedString("syncConfirmationSyncSettingsLinkBody", |
| 42 IDS_SYNC_CONFIRMATION_SYNC_SETTINGS_LINK_BODY); |
| 37 source->AddLocalizedString("syncConfirmationConfirmLabel", | 43 source->AddLocalizedString("syncConfirmationConfirmLabel", |
| 38 IDS_SYNC_CONFIRMATION_CONFIRM_BUTTON_LABEL); | 44 IDS_SYNC_CONFIRMATION_CONFIRM_BUTTON_LABEL); |
| 39 source->AddLocalizedString("syncConfirmationUndoLabel", | 45 source->AddLocalizedString("syncConfirmationUndoLabel", |
| 40 IDS_SYNC_CONFIRMATION_UNDO_BUTTON_LABEL); | 46 IDS_SYNC_CONFIRMATION_UNDO_BUTTON_LABEL); |
| 41 | 47 |
| 42 base::DictionaryValue strings; | 48 base::DictionaryValue strings; |
| 43 webui::SetLoadTimeDataDefaults( | 49 webui::SetLoadTimeDataDefaults( |
| 44 g_browser_process->GetApplicationLocale(), &strings); | 50 g_browser_process->GetApplicationLocale(), &strings); |
| 45 source->AddLocalizedStrings(strings); | 51 source->AddLocalizedStrings(strings); |
| 46 | 52 |
| 47 content::WebUIDataSource::Add(profile, source); | 53 content::WebUIDataSource::Add(profile, source); |
| 48 web_ui->AddMessageHandler(handler); | 54 web_ui->AddMessageHandler(handler); |
| 49 } | 55 } |
| OLD | NEW |