| 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 <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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 localized_strings.SetString("attributionintro", | 304 localized_strings.SetString("attributionintro", |
| 305 l10n_util::GetStringUTF16(IDS_NEW_TAB_ATTRIBUTION_INTRO)); | 305 l10n_util::GetStringUTF16(IDS_NEW_TAB_ATTRIBUTION_INTRO)); |
| 306 localized_strings.SetString("thumbnailremovednotification", | 306 localized_strings.SetString("thumbnailremovednotification", |
| 307 l10n_util::GetStringUTF16(IDS_NEW_TAB_THUMBNAIL_REMOVED_NOTIFICATION)); | 307 l10n_util::GetStringUTF16(IDS_NEW_TAB_THUMBNAIL_REMOVED_NOTIFICATION)); |
| 308 localized_strings.SetString("undothumbnailremove", | 308 localized_strings.SetString("undothumbnailremove", |
| 309 l10n_util::GetStringUTF16(IDS_NEW_TAB_UNDO_THUMBNAIL_REMOVE)); | 309 l10n_util::GetStringUTF16(IDS_NEW_TAB_UNDO_THUMBNAIL_REMOVE)); |
| 310 localized_strings.SetString("removethumbnailtooltip", | 310 localized_strings.SetString("removethumbnailtooltip", |
| 311 l10n_util::GetStringUTF16(IDS_NEW_TAB_REMOVE_THUMBNAIL_TOOLTIP)); | 311 l10n_util::GetStringUTF16(IDS_NEW_TAB_REMOVE_THUMBNAIL_TOOLTIP)); |
| 312 localized_strings.SetString("appuninstall", | 312 localized_strings.SetString("appuninstall", |
| 313 l10n_util::GetStringFUTF16( | 313 l10n_util::GetStringFUTF16( |
| 314 IDS_NEW_TAB_APP_UNINSTALL, | 314 IDS_EXTENSIONS_UNINSTALL, |
| 315 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME))); | 315 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME))); |
| 316 localized_strings.SetString("appoptions", | 316 localized_strings.SetString("appoptions", |
| 317 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_OPTIONS)); | 317 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_OPTIONS)); |
| 318 localized_strings.SetString("appdisablenotifications", | 318 localized_strings.SetString("appdisablenotifications", |
| 319 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_DISABLE_NOTIFICATIONS)); | 319 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_DISABLE_NOTIFICATIONS)); |
| 320 localized_strings.SetString("appcreateshortcut", | 320 localized_strings.SetString("appcreateshortcut", |
| 321 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_CREATE_SHORTCUT)); | 321 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_CREATE_SHORTCUT)); |
| 322 localized_strings.SetString("appDefaultPageName", | 322 localized_strings.SetString("appDefaultPageName", |
| 323 l10n_util::GetStringUTF16(IDS_APP_DEFAULT_PAGE_NAME)); | 323 l10n_util::GetStringUTF16(IDS_APP_DEFAULT_PAGE_NAME)); |
| 324 localized_strings.SetString("applaunchtypepinned", | 324 localized_strings.SetString("applaunchtypepinned", |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 // Get our template. | 508 // Get our template. |
| 509 static const base::StringPiece new_tab_theme_css( | 509 static const base::StringPiece new_tab_theme_css( |
| 510 ResourceBundle::GetSharedInstance().GetRawDataResource( | 510 ResourceBundle::GetSharedInstance().GetRawDataResource( |
| 511 IDR_NEW_TAB_4_THEME_CSS)); | 511 IDR_NEW_TAB_4_THEME_CSS)); |
| 512 | 512 |
| 513 // Create the string from our template and the replacements. | 513 // Create the string from our template and the replacements. |
| 514 std::string css_string; | 514 std::string css_string; |
| 515 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); | 515 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); |
| 516 new_tab_css_ = base::RefCountedString::TakeString(&css_string); | 516 new_tab_css_ = base::RefCountedString::TakeString(&css_string); |
| 517 } | 517 } |
| OLD | NEW |