OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ntp/ntp_resource_cache.h" | 5 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 localized_strings.SetString("bookmarksPage", | 293 localized_strings.SetString("bookmarksPage", |
294 l10n_util::GetStringUTF16(IDS_NEW_TAB_BOOKMARKS_PAGE_TITLE)); | 294 l10n_util::GetStringUTF16(IDS_NEW_TAB_BOOKMARKS_PAGE_TITLE)); |
295 localized_strings.SetString("restorethumbnails", | 295 localized_strings.SetString("restorethumbnails", |
296 l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_LINK)); | 296 l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_LINK)); |
297 localized_strings.SetString("restoreThumbnailsShort", | 297 localized_strings.SetString("restoreThumbnailsShort", |
298 l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_SHORT_LINK)); | 298 l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_SHORT_LINK)); |
299 localized_strings.SetString("recentlyclosed", | 299 localized_strings.SetString("recentlyclosed", |
300 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED)); | 300 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED)); |
301 localized_strings.SetString("closedwindowsingle", | 301 localized_strings.SetString("closedwindowsingle", |
302 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_SINGLE)); | 302 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_SINGLE)); |
| 303 localized_strings.SetString("searchengines", |
| 304 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_SEARCH_ENGINES)); |
303 localized_strings.SetString("foreignsessions", | 305 localized_strings.SetString("foreignsessions", |
304 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_SESSIONS)); | 306 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_SESSIONS)); |
305 localized_strings.SetString("closedwindowmultiple", | 307 localized_strings.SetString("closedwindowmultiple", |
306 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_MULTIPLE)); | 308 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_MULTIPLE)); |
307 localized_strings.SetString("attributionintro", | 309 localized_strings.SetString("attributionintro", |
308 l10n_util::GetStringUTF16(IDS_NEW_TAB_ATTRIBUTION_INTRO)); | 310 l10n_util::GetStringUTF16(IDS_NEW_TAB_ATTRIBUTION_INTRO)); |
309 localized_strings.SetString("thumbnailremovednotification", | 311 localized_strings.SetString("thumbnailremovednotification", |
310 l10n_util::GetStringUTF16(IDS_NEW_TAB_THUMBNAIL_REMOVED_NOTIFICATION)); | 312 l10n_util::GetStringUTF16(IDS_NEW_TAB_THUMBNAIL_REMOVED_NOTIFICATION)); |
311 localized_strings.SetString("undothumbnailremove", | 313 localized_strings.SetString("undothumbnailremove", |
312 l10n_util::GetStringUTF16(IDS_NEW_TAB_UNDO_THUMBNAIL_REMOVE)); | 314 l10n_util::GetStringUTF16(IDS_NEW_TAB_UNDO_THUMBNAIL_REMOVE)); |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS; | 615 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS; |
614 static const base::StringPiece new_tab_theme_css( | 616 static const base::StringPiece new_tab_theme_css( |
615 ResourceBundle::GetSharedInstance().GetRawDataResource( | 617 ResourceBundle::GetSharedInstance().GetRawDataResource( |
616 ntp_css_resource_id)); | 618 ntp_css_resource_id)); |
617 | 619 |
618 // Create the string from our template and the replacements. | 620 // Create the string from our template and the replacements. |
619 std::string css_string; | 621 std::string css_string; |
620 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); | 622 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); |
621 new_tab_css_ = base::RefCountedString::TakeString(&css_string); | 623 new_tab_css_ = base::RefCountedString::TakeString(&css_string); |
622 } | 624 } |
OLD | NEW |