| 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 localized_strings.SetString("pinthumbnailtooltip", | 317 localized_strings.SetString("pinthumbnailtooltip", |
| 318 l10n_util::GetStringUTF16(IDS_NEW_TAB_PIN_THUMBNAIL_TOOLTIP)); | 318 l10n_util::GetStringUTF16(IDS_NEW_TAB_PIN_THUMBNAIL_TOOLTIP)); |
| 319 localized_strings.SetString("unpinthumbnailtooltip", | 319 localized_strings.SetString("unpinthumbnailtooltip", |
| 320 l10n_util::GetStringUTF16(IDS_NEW_TAB_UNPIN_THUMBNAIL_TOOLTIP)); | 320 l10n_util::GetStringUTF16(IDS_NEW_TAB_UNPIN_THUMBNAIL_TOOLTIP)); |
| 321 localized_strings.SetString("showhidethumbnailtooltip", | 321 localized_strings.SetString("showhidethumbnailtooltip", |
| 322 l10n_util::GetStringUTF16(IDS_NEW_TAB_SHOW_HIDE_THUMBNAIL_TOOLTIP)); | 322 l10n_util::GetStringUTF16(IDS_NEW_TAB_SHOW_HIDE_THUMBNAIL_TOOLTIP)); |
| 323 localized_strings.SetString("showhidelisttooltip", | 323 localized_strings.SetString("showhidelisttooltip", |
| 324 l10n_util::GetStringUTF16(IDS_NEW_TAB_SHOW_HIDE_LIST_TOOLTIP)); | 324 l10n_util::GetStringUTF16(IDS_NEW_TAB_SHOW_HIDE_LIST_TOOLTIP)); |
| 325 localized_strings.SetString("pagedisplaytooltip", | 325 localized_strings.SetString("pagedisplaytooltip", |
| 326 l10n_util::GetStringUTF16(IDS_NEW_TAB_PAGE_DISPLAY_TOOLTIP)); | 326 l10n_util::GetStringUTF16(IDS_NEW_TAB_PAGE_DISPLAY_TOOLTIP)); |
| 327 localized_strings.SetString("closefirstrunnotification", | |
| 328 l10n_util::GetStringUTF16(IDS_NEW_TAB_CLOSE_FIRST_RUN_NOTIFICATION)); | |
| 329 localized_strings.SetString("close", l10n_util::GetStringUTF16(IDS_CLOSE)); | 327 localized_strings.SetString("close", l10n_util::GetStringUTF16(IDS_CLOSE)); |
| 330 localized_strings.SetString("history", | 328 localized_strings.SetString("history", |
| 331 l10n_util::GetStringUTF16(IDS_NEW_TAB_HISTORY)); | 329 l10n_util::GetStringUTF16(IDS_NEW_TAB_HISTORY)); |
| 332 localized_strings.SetString("downloads", | 330 localized_strings.SetString("downloads", |
| 333 l10n_util::GetStringUTF16(IDS_NEW_TAB_DOWNLOADS)); | 331 l10n_util::GetStringUTF16(IDS_NEW_TAB_DOWNLOADS)); |
| 334 localized_strings.SetString("help", | 332 localized_strings.SetString("help", |
| 335 l10n_util::GetStringUTF16(IDS_NEW_TAB_HELP)); | 333 l10n_util::GetStringUTF16(IDS_NEW_TAB_HELP)); |
| 336 localized_strings.SetString("helpurl", | 334 localized_strings.SetString("helpurl", |
| 337 GetUrlWithLang(GURL(kHelpContentUrl))); | 335 GetUrlWithLang(GURL(kHelpContentUrl))); |
| 338 localized_strings.SetString("appsettings", | 336 localized_strings.SetString("appsettings", |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS; | 575 IDR_NEW_TAB_4_THEME_CSS : IDR_NEW_TAB_THEME_CSS; |
| 578 static const base::StringPiece new_tab_theme_css( | 576 static const base::StringPiece new_tab_theme_css( |
| 579 ResourceBundle::GetSharedInstance().GetRawDataResource( | 577 ResourceBundle::GetSharedInstance().GetRawDataResource( |
| 580 ntp_css_resource_id)); | 578 ntp_css_resource_id)); |
| 581 | 579 |
| 582 // Create the string from our template and the replacements. | 580 // Create the string from our template and the replacements. |
| 583 std::string css_string; | 581 std::string css_string; |
| 584 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); | 582 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); |
| 585 new_tab_css_ = base::RefCountedString::TakeString(&css_string); | 583 new_tab_css_ = base::RefCountedString::TakeString(&css_string); |
| 586 } | 584 } |
| OLD | NEW |