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

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: 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
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("hideSessionMenuItemText", 382 load_time_data.SetString("hideSessionMenuItemText",
387 l10n_util::GetStringUTF16(IDS_POLICY_HIDE)); 383 l10n_util::GetStringUTF16(IDS_POLICY_HIDE));
388 load_time_data.SetString("restoreSessionMenuItemText", 384 load_time_data.SetString("restoreSessionMenuItemText",
389 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_OPEN_ALL)); 385 l10n_util::GetStringUTF16(IDS_NEW_TAB_OTHER_SESSIONS_OPEN_ALL));
390 load_time_data.SetString("learn_more", 386 load_time_data.SetString("learn_more",
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 // Get our template. 571 // Get our template.
576 static const base::StringPiece new_tab_theme_css( 572 static const base::StringPiece new_tab_theme_css(
577 ResourceBundle::GetSharedInstance().GetRawDataResource( 573 ResourceBundle::GetSharedInstance().GetRawDataResource(
578 IDR_NEW_TAB_4_THEME_CSS)); 574 IDR_NEW_TAB_4_THEME_CSS));
579 575
580 // Create the string from our template and the replacements. 576 // Create the string from our template and the replacements.
581 std::string css_string; 577 std::string css_string;
582 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL); 578 css_string = ReplaceStringPlaceholders(new_tab_theme_css, subst, NULL);
583 new_tab_css_ = base::RefCountedString::TakeString(&css_string); 579 new_tab_css_ = base::RefCountedString::TakeString(&css_string);
584 } 580 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698