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

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: fix sync failures Created 9 years, 3 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 9916ccd97bbc45eb79fdbb34dd5321f345789d4d..6d08ef24c38160668ea3bf0b263f8d9ac0a71b85 100644
--- a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
+++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
@@ -452,11 +452,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) {
« no previous file with comments | « chrome/browser/extensions/apps_promo_unittest.cc ('k') | chrome/browser/web_resource/promo_resource_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698