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

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

Issue 8334030: Merge search engines sync data type with Preferences. Sync the default search provider. Add some ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Merge to TOT and fixed additional conflicts from rsimha. Created 9 years, 1 month 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 <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 localized_strings.SetString("bookmarksPage", 297 localized_strings.SetString("bookmarksPage",
298 l10n_util::GetStringUTF16(IDS_NEW_TAB_BOOKMARKS_PAGE_TITLE)); 298 l10n_util::GetStringUTF16(IDS_NEW_TAB_BOOKMARKS_PAGE_TITLE));
299 localized_strings.SetString("restorethumbnails", 299 localized_strings.SetString("restorethumbnails",
300 l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_LINK)); 300 l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_LINK));
301 localized_strings.SetString("restoreThumbnailsShort", 301 localized_strings.SetString("restoreThumbnailsShort",
302 l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_SHORT_LINK)); 302 l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_SHORT_LINK));
303 localized_strings.SetString("recentlyclosed", 303 localized_strings.SetString("recentlyclosed",
304 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED)); 304 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED));
305 localized_strings.SetString("closedwindowsingle", 305 localized_strings.SetString("closedwindowsingle",
306 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_SINGLE)); 306 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_SINGLE));
307 localized_strings.SetString("searchengines",
308 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_SEARCH_ENGINES));
309 localized_strings.SetString("foreignsessions", 307 localized_strings.SetString("foreignsessions",
310 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_TABS)); 308 l10n_util::GetStringUTF16(IDS_SYNC_DATATYPE_TABS));
311 localized_strings.SetString("closedwindowmultiple", 309 localized_strings.SetString("closedwindowmultiple",
312 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_MULTIPLE)); 310 l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_MULTIPLE));
313 localized_strings.SetString("attributionintro", 311 localized_strings.SetString("attributionintro",
314 l10n_util::GetStringUTF16(IDS_NEW_TAB_ATTRIBUTION_INTRO)); 312 l10n_util::GetStringUTF16(IDS_NEW_TAB_ATTRIBUTION_INTRO));
315 localized_strings.SetString("thumbnailremovednotification", 313 localized_strings.SetString("thumbnailremovednotification",
316 l10n_util::GetStringUTF16(IDS_NEW_TAB_THUMBNAIL_REMOVED_NOTIFICATION)); 314 l10n_util::GetStringUTF16(IDS_NEW_TAB_THUMBNAIL_REMOVED_NOTIFICATION));
317 localized_strings.SetString("undothumbnailremove", 315 localized_strings.SetString("undothumbnailremove",
318 l10n_util::GetStringUTF16(IDS_NEW_TAB_UNDO_THUMBNAIL_REMOVE)); 316 l10n_util::GetStringUTF16(IDS_NEW_TAB_UNDO_THUMBNAIL_REMOVE));
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS; 583 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS;
586 static const base::StringPiece new_tab_theme_css( 584 static const base::StringPiece new_tab_theme_css(
587 ResourceBundle::GetSharedInstance().GetRawDataResource( 585 ResourceBundle::GetSharedInstance().GetRawDataResource(
588 ntp_css_resource_id)); 586 ntp_css_resource_id));
589 587
590 // Create the string from our template and the replacements. 588 // Create the string from our template and the replacements.
591 std::string css_string; 589 std::string css_string;
592 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 590 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
593 new_tab_css_ = base::RefCountedString::TakeString(&css_string); 591 new_tab_css_ = base::RefCountedString::TakeString(&css_string);
594 } 592 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698