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

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

Issue 10332049: remove ntp app install hint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync it Created 8 years, 7 months 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
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 load_time_data.SetString("otherSessions", 367 load_time_data.SetString("otherSessions",
368 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_LABEL)); 368 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_LABEL));
369 load_time_data.SetString("otherSessionsEmpty", 369 load_time_data.SetString("otherSessionsEmpty",
370 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_EMPTY)); 370 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_EMPTY));
371 load_time_data.SetString("otherSessionsLearnMoreUrl", 371 load_time_data.SetString("otherSessionsLearnMoreUrl",
372 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_LEARN_MORE_URL)); 372 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_LEARN_MORE_URL));
373 load_time_data.SetString("learnMore", 373 load_time_data.SetString("learnMore",
374 l10n_util::GetStringUTF16(IDS_LEARN_MORE)); 374 l10n_util::GetStringUTF16(IDS_LEARN_MORE));
375 load_time_data.SetString("webStoreLink", 375 load_time_data.SetString("webStoreLink",
376 GetUrlWithLang(GURL(extension_urls::GetWebstoreLaunchURL()))); 376 GetUrlWithLang(GURL(extension_urls::GetWebstoreLaunchURL())));
377 load_time_data.SetBoolean("isWebStoreExperimentEnabled",
378 NewTabUI::ShouldShowWebStoreFooterLink());
379 load_time_data.SetBoolean("appInstallHintEnabled",
380 NewTabUI::ShouldShowAppInstallHint());
381 load_time_data.SetString("appInstallHintText", 377 load_time_data.SetString("appInstallHintText",
382 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_INSTALL_HINT_LABEL)); 378 l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_INSTALL_HINT_LABEL));
383 load_time_data.SetBoolean("isSuggestionsPageEnabled", 379 load_time_data.SetBoolean("isSuggestionsPageEnabled",
384 NewTabUI::IsSuggestionsPageEnabled()); 380 NewTabUI::IsSuggestionsPageEnabled());
385 load_time_data.SetBoolean("showApps", NewTabUI::ShouldShowApps()); 381 load_time_data.SetBoolean("showApps", NewTabUI::ShouldShowApps());
386 load_time_data.SetString("collapseSessionMenuItemText", 382 load_time_data.SetString("collapseSessionMenuItemText",
387 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_COLLAPSE_SESSION)); 383 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_COLLAPSE_SESSION));
388 load_time_data.SetString("expandSessionMenuItemText", 384 load_time_data.SetString("expandSessionMenuItemText",
389 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_EXPAND_SESSION)); 385 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_EXPAND_SESSION));
390 load_time_data.SetString("restoreSessionMenuItemText", 386 load_time_data.SetString("restoreSessionMenuItemText",
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 // Get our template. 573 // Get our template.
578 static const base::StringPiece new_tab_theme_css( 574 static const base::StringPiece new_tab_theme_css(
579 ResourceBundle::GetSharedInstance().GetRawDataResource( 575 ResourceBundle::GetSharedInstance().GetRawDataResource(
580 IDR_NEW_TAB_4_THEME_CSS)); 576 IDR_NEW_TAB_4_THEME_CSS));
581 577
582 // Create the string from our template and the replacements. 578 // Create the string from our template and the replacements.
583 std::string css_string; 579 std::string css_string;
584 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 580 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
585 new_tab_css_ = base::RefCountedString::TakeString(&css_string); 581 new_tab_css_ = base::RefCountedString::TakeString(&css_string);
586 } 582 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698