| 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_resource_cache.h" | 5 #include "chrome/browser/ui/webui/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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 localized_strings.SetString("applaunchtyperegular", | 327 localized_strings.SetString("applaunchtyperegular", |
| 328 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_REGULAR)); | 328 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_REGULAR)); |
| 329 localized_strings.SetString("applaunchtypewindow", | 329 localized_strings.SetString("applaunchtypewindow", |
| 330 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_WINDOW)); | 330 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_WINDOW)); |
| 331 localized_strings.SetString("applaunchtypefullscreen", | 331 localized_strings.SetString("applaunchtypefullscreen", |
| 332 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_FULLSCREEN)); | 332 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_FULLSCREEN)); |
| 333 localized_strings.SetString("web_store_title", | 333 localized_strings.SetString("web_store_title", |
| 334 l10n_util::GetStringUTF16(IDS_EXTENSION_WEB_STORE_TITLE)); | 334 l10n_util::GetStringUTF16(IDS_EXTENSION_WEB_STORE_TITLE)); |
| 335 localized_strings.SetString("web_store_url", | 335 localized_strings.SetString("web_store_url", |
| 336 GetUrlWithLang(GURL(Extension::ChromeStoreLaunchURL()))); | 336 GetUrlWithLang(GURL(Extension::ChromeStoreLaunchURL()))); |
| 337 localized_strings.SetString("appspromohide", | |
| 338 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HIDE)); | |
| 339 localized_strings.SetString("appspromoheader", | |
| 340 l10n_util::GetStringUTF16(IDS_APPS_PROMO_HEADER)); | |
| 341 localized_strings.SetString("appspromotext1", | |
| 342 l10n_util::GetStringUTF16(IDS_APPS_PROMO_TEXT_1)); | |
| 343 localized_strings.SetString("appspromotext2", | |
| 344 l10n_util::GetStringUTF16(IDS_APPS_PROMO_TEXT_2)); | |
| 345 localized_strings.SetString("syncpromotext", | 337 localized_strings.SetString("syncpromotext", |
| 346 l10n_util::GetStringUTF16(IDS_SYNC_START_SYNC_BUTTON_LABEL)); | 338 l10n_util::GetStringUTF16(IDS_SYNC_START_SYNC_BUTTON_LABEL)); |
| 347 #if defined(OS_CHROMEOS) | 339 #if defined(OS_CHROMEOS) |
| 348 localized_strings.SetString("expandMenu", | 340 localized_strings.SetString("expandMenu", |
| 349 l10n_util::GetStringUTF16(IDS_NEW_TAB_CLOSE_MENU_EXPAND)); | 341 l10n_util::GetStringUTF16(IDS_NEW_TAB_CLOSE_MENU_EXPAND)); |
| 350 #endif | 342 #endif |
| 351 | 343 |
| 352 // Don't initiate the sync related message passing with the page if the sync | 344 // Don't initiate the sync related message passing with the page if the sync |
| 353 // code is not present. | 345 // code is not present. |
| 354 if (profile_->GetProfileSyncService()) | 346 if (profile_->GetProfileSyncService()) |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 std::string css_string; | 562 std::string css_string; |
| 571 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); | 563 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); |
| 572 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL); | 564 css_string = ReplaceStringPlaceholders(css_string, subst2, NULL); |
| 573 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL); | 565 css_string = ReplaceStringPlaceholders(css_string, subst3, NULL); |
| 574 | 566 |
| 575 new_tab_css_ = new RefCountedBytes; | 567 new_tab_css_ = new RefCountedBytes; |
| 576 new_tab_css_->data.resize(css_string.size()); | 568 new_tab_css_->data.resize(css_string.size()); |
| 577 std::copy(css_string.begin(), css_string.end(), | 569 std::copy(css_string.begin(), css_string.end(), |
| 578 new_tab_css_->data.begin()); | 570 new_tab_css_->data.begin()); |
| 579 } | 571 } |
| OLD | NEW |