Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(562)

Side by Side Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc

Issue 7837014: [Sync] Change strings to reflect sessions -> open tabs naming convention change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_LINK)); 297 l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_LINK));
298 localized_strings.SetString("restoreThumbnailsShort", 298 localized_strings.SetString("restoreThumbnailsShort",
299 l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_SHORT_LINK)); 299 l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_SHORT_LINK));
300 localized_strings.SetString("recentlyclosed", 300 localized_strings.SetString("recentlyclosed",
301 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED)); 301 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED));
302 localized_strings.SetString("closedwindowsingle", 302 localized_strings.SetString("closedwindowsingle",
303 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_SINGLE)); 303 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_SINGLE));
304 localized_strings.SetString("searchengines", 304 localized_strings.SetString("searchengines",
305 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_SEARCH_ENGINES)); 305 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_SEARCH_ENGINES));
306 localized_strings.SetString("foreignsessions", 306 localized_strings.SetString("foreignsessions",
307 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_SESSIONS)); 307 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_TABS));
Nicolas Zea 2011/09/06 23:20:18 I don't think this does anything anymore with NTP4
308 localized_strings.SetString("closedwindowmultiple", 308 localized_strings.SetString("closedwindowmultiple",
309 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_MULTIPLE)); 309 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_MULTIPLE));
310 localized_strings.SetString("attributionintro", 310 localized_strings.SetString("attributionintro",
311 l10n_util::GetStringUTF16(IDS_NEW_TAB_ATTRIBUTION_INTRO)); 311 l10n_util::GetStringUTF16(IDS_NEW_TAB_ATTRIBUTION_INTRO));
312 localized_strings.SetString("thumbnailremovednotification", 312 localized_strings.SetString("thumbnailremovednotification",
313 l10n_util::GetStringUTF16(IDS_NEW_TAB_THUMBNAIL_REMOVED_NOTIFICATION)); 313 l10n_util::GetStringUTF16(IDS_NEW_TAB_THUMBNAIL_REMOVED_NOTIFICATION));
314 localized_strings.SetString("undothumbnailremove", 314 localized_strings.SetString("undothumbnailremove",
315 l10n_util::GetStringUTF16(IDS_NEW_TAB_UNDO_THUMBNAIL_REMOVE)); 315 l10n_util::GetStringUTF16(IDS_NEW_TAB_UNDO_THUMBNAIL_REMOVE));
316 localized_strings.SetString("removethumbnailtooltip", 316 localized_strings.SetString("removethumbnailtooltip",
317 l10n_util::GetStringUTF16(IDS_NEW_TAB_REMOVE_THUMBNAIL_TOOLTIP)); 317 l10n_util::GetStringUTF16(IDS_NEW_TAB_REMOVE_THUMBNAIL_TOOLTIP));
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS; 586 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS;
587 static const base::StringPiece new_tab_theme_css( 587 static const base::StringPiece new_tab_theme_css(
588 ResourceBundle::GetSharedInstance().GetRawDataResource( 588 ResourceBundle::GetSharedInstance().GetRawDataResource(
589 ntp_css_resource_id)); 589 ntp_css_resource_id));
590 590
591 // Create the string from our template and the replacements. 591 // Create the string from our template and the replacements.
592 std::string css_string; 592 std::string css_string;
593 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 593 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
594 new_tab_css_ = base::RefCountedString::TakeString(&css_string); 594 new_tab_css_ = base::RefCountedString::TakeString(&css_string);
595 } 595 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698