| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #include "chrome/browser/dom_ui/new_tab_ui.h" | 7 #include "chrome/browser/dom_ui/new_tab_ui.h" |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 l10n_util::GetString(IDS_NEW_TAB_MAKE_THIS_HOMEPAGE)); | 905 l10n_util::GetString(IDS_NEW_TAB_MAKE_THIS_HOMEPAGE)); |
| 906 localized_strings.SetString(L"themelink", | 906 localized_strings.SetString(L"themelink", |
| 907 l10n_util::GetString(IDS_THEMES_GALLERY_URL)); | 907 l10n_util::GetString(IDS_THEMES_GALLERY_URL)); |
| 908 localized_strings.SetString(L"tips", | 908 localized_strings.SetString(L"tips", |
| 909 l10n_util::GetString(IDS_NEW_TAB_TIPS)); | 909 l10n_util::GetString(IDS_NEW_TAB_TIPS)); |
| 910 localized_strings.SetString(L"sync", | 910 localized_strings.SetString(L"sync", |
| 911 l10n_util::GetString(IDS_NEW_TAB_SHOW_HIDE_BOOKMARK_SYNC)); | 911 l10n_util::GetString(IDS_NEW_TAB_SHOW_HIDE_BOOKMARK_SYNC)); |
| 912 localized_strings.SetString(L"promonew", | 912 localized_strings.SetString(L"promonew", |
| 913 l10n_util::GetString(IDS_NTP_PROMOTION_NEW)); | 913 l10n_util::GetString(IDS_NTP_PROMOTION_NEW)); |
| 914 localized_strings.SetString(L"promomessage", | 914 localized_strings.SetString(L"promomessage", |
| 915 l10n_util::GetStringF(IDS_NTP_PROMOTION_MESSAGE, | 915 l10n_util::GetStringF(IDS_NTP_PROMO_MESSAGE, |
| 916 l10n_util::GetString(IDS_PRODUCT_NAME), | 916 l10n_util::GetString(IDS_PRODUCT_NAME), |
| 917 ASCIIToWide(Extension::kGalleryBrowseUrl), | 917 ASCIIToWide(Extension::kGalleryBrowseUrl))); |
| 918 l10n_util::GetString(IDS_SYNC_SERVICE_HELP_URL))); | |
| 919 localized_strings.SetString(L"extensionslink", | 918 localized_strings.SetString(L"extensionslink", |
| 920 ASCIIToWide(Extension::kGalleryBrowseUrl)); | 919 ASCIIToWide(Extension::kGalleryBrowseUrl)); |
| 921 | 920 |
| 922 // Don't initiate the sync related message passing with the page if the sync | 921 // Don't initiate the sync related message passing with the page if the sync |
| 923 // code is not present. | 922 // code is not present. |
| 924 if (profile->GetProfileSyncService()) | 923 if (profile->GetProfileSyncService()) |
| 925 localized_strings.SetString(L"syncispresent", "true"); | 924 localized_strings.SetString(L"syncispresent", "true"); |
| 926 else | 925 else |
| 927 localized_strings.SetString(L"syncispresent", "false"); | 926 localized_strings.SetString(L"syncispresent", "false"); |
| 928 | 927 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 full_html_.append(json_html); | 981 full_html_.append(json_html); |
| 983 size_t after_offset = pos + template_data_placeholder.size(); | 982 size_t after_offset = pos + template_data_placeholder.size(); |
| 984 full_html_.append(new_tab_html.data() + after_offset, | 983 full_html_.append(new_tab_html.data() + after_offset, |
| 985 new_tab_html.size() - after_offset); | 984 new_tab_html.size() - after_offset); |
| 986 } else { | 985 } else { |
| 987 NOTREACHED(); | 986 NOTREACHED(); |
| 988 full_html_.assign(new_tab_html.data(), new_tab_html.size()); | 987 full_html_.assign(new_tab_html.data(), new_tab_html.size()); |
| 989 } | 988 } |
| 990 jstemplate_builder::AppendI18nTemplateProcessHtml(&full_html_); | 989 jstemplate_builder::AppendI18nTemplateProcessHtml(&full_html_); |
| 991 } | 990 } |
| OLD | NEW |