OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 localized_strings.SetString("applaunchtypefullscreen", | 342 localized_strings.SetString("applaunchtypefullscreen", |
343 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_FULLSCREEN)); | 343 l10n_util::GetStringUTF16(IDS_APP_CONTEXT_MENU_OPEN_FULLSCREEN)); |
344 localized_strings.SetString("syncpromotext", | 344 localized_strings.SetString("syncpromotext", |
345 l10n_util::GetStringUTF16(IDS_SYNC_START_SYNC_BUTTON_LABEL)); | 345 l10n_util::GetStringUTF16(IDS_SYNC_START_SYNC_BUTTON_LABEL)); |
346 localized_strings.SetString("syncLinkText", | 346 localized_strings.SetString("syncLinkText", |
347 l10n_util::GetStringUTF16(IDS_SYNC_ADVANCED_OPTIONS)); | 347 l10n_util::GetStringUTF16(IDS_SYNC_ADVANCED_OPTIONS)); |
348 localized_strings.SetString("otherSessions", | 348 localized_strings.SetString("otherSessions", |
349 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_LABEL)); | 349 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_LABEL)); |
350 localized_strings.SetString("otherSessionsEmpty", | 350 localized_strings.SetString("otherSessionsEmpty", |
351 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_EMPTY)); | 351 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_EMPTY)); |
| 352 localized_strings.SetString("otherSessionsSignInText", |
| 353 l10n_util::GetStringFUTF16( |
| 354 IDS_NEW_TAB_OTHER_SESSIONS_SIGN_IN_TEXT, |
| 355 l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME))); |
352 localized_strings.SetString("webStoreLink", | 356 localized_strings.SetString("webStoreLink", |
353 GetUrlWithLang(GURL(extension_urls::GetWebstoreLaunchURL()))); | 357 GetUrlWithLang(GURL(extension_urls::GetWebstoreLaunchURL()))); |
354 localized_strings.SetBoolean("isWebStoreExperimentEnabled", | 358 localized_strings.SetBoolean("isWebStoreExperimentEnabled", |
355 NewTabUI::ShouldShowWebStoreFooterLink()); | 359 NewTabUI::ShouldShowWebStoreFooterLink()); |
356 localized_strings.SetBoolean("appInstallHintEnabled", | 360 localized_strings.SetBoolean("appInstallHintEnabled", |
357 NewTabUI::ShouldShowAppInstallHint()); | 361 NewTabUI::ShouldShowAppInstallHint()); |
358 localized_strings.SetString("appInstallHintText", | 362 localized_strings.SetString("appInstallHintText", |
359 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_INSTALL_HINT_LABEL)); | 363 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_INSTALL_HINT_LABEL)); |
360 localized_strings.SetBoolean("isSuggestionsPageEnabled", | 364 localized_strings.SetBoolean("isSuggestionsPageEnabled", |
361 NewTabUI::IsSuggestionsPageEnabled()); | 365 NewTabUI::IsSuggestionsPageEnabled()); |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 // Get our template. | 546 // Get our template. |
543 static const base::StringPiece new_tab_theme_css( | 547 static const base::StringPiece new_tab_theme_css( |
544 ResourceBundle::GetSharedInstance().GetRawDataResource( | 548 ResourceBundle::GetSharedInstance().GetRawDataResource( |
545 IDR_NEW_TAB_4_THEME_CSS)); | 549 IDR_NEW_TAB_4_THEME_CSS)); |
546 | 550 |
547 // Create the string from our template and the replacements. | 551 // Create the string from our template and the replacements. |
548 std::string css_string; | 552 std::string css_string; |
549 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); | 553 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); |
550 new_tab_css_ = base::RefCountedString::TakeString(&css_string); | 554 new_tab_css_ = base::RefCountedString::TakeString(&css_string); |
551 } | 555 } |
OLD | NEW |