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

Unified Diff: chrome/browser/ui/webui/ntp/app_launcher_handler.cc

Issue 7820003: Add support to download web store promo logos over https. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dcheck Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/ntp/app_launcher_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
index cdfbc8218a0b79c4cc71ce25b78eedffe9bab68d..5072380e29faead3a98557c534bdf05842d0639d 100644
--- a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
+++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
@@ -448,11 +448,12 @@ DictionaryValue* AppLauncherHandler::GetAppInfo(const Extension* extension) {
}
void AppLauncherHandler::FillPromoDictionary(DictionaryValue* dictionary) {
- dictionary->SetString("promoHeader", AppsPromo::GetPromoHeaderText());
- dictionary->SetString("promoButton", AppsPromo::GetPromoButtonText());
- dictionary->SetString("promoLink", AppsPromo::GetPromoLink().spec());
- dictionary->SetString("promoLogo", AppsPromo::GetPromoLogo().spec());
- dictionary->SetString("promoExpire", AppsPromo::GetPromoExpireText());
+ AppsPromo::PromoData data = AppsPromo::GetPromo();
+ dictionary->SetString("promoHeader", data.header);
+ dictionary->SetString("promoButton", data.button);
+ dictionary->SetString("promoLink", data.link.spec());
+ dictionary->SetString("promoLogo", data.logo.spec());
+ dictionary->SetString("promoExpire", data.expire);
}
void AppLauncherHandler::HandleGetApps(const ListValue* args) {

Powered by Google App Engine
This is Rietveld 408576698