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

Issue 2799383002: Make NTP Promo invalid if text parameter is not in lookup table. (Closed)

Created:
3 years, 8 months ago by gchatz
Modified:
3 years, 8 months ago
Reviewers:
justincohen
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make NTP Promo invalid if text parameter is not in lookup table. Previously, if the promo text parameter was not found in the localization lookup table, the promo would be considered valid and the text would be displayed as is. With this CL, it is now required that the text parameter exist in the lookup table in order for the promo to be valid. The CL also does general NTP Promo cleanup and adds unit tests. BUG=703440 Review-Url: https://codereview.chromium.org/2799383002 Cr-Commit-Position: refs/heads/master@{#462918} Committed: https://chromium.googlesource.com/chromium/src/+/d50c8a52e838178b0ceedca4e35ed67c3ffa8e57

Patch Set 1 #

Patch Set 2 : unit test fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -32 lines) Patch
M ios/chrome/browser/ui/ntp/notification_promo_whats_new.h View 2 chunks +0 lines, -4 lines 0 comments Download
M ios/chrome/browser/ui/ntp/notification_promo_whats_new.mm View 4 chunks +14 lines, -19 lines 0 comments Download
M ios/chrome/browser/ui/ntp/notification_promo_whats_new_unittest.mm View 1 1 chunk +51 lines, -9 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
gchatz
3 years, 8 months ago (2017-04-07 01:51:24 UTC) #2
justincohen
lgtm
3 years, 8 months ago (2017-04-07 16:20:58 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2799383002/20001
3 years, 8 months ago (2017-04-07 17:35:26 UTC) #6
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 17:53:10 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/d50c8a52e838178b0ceedca4e35e...

Powered by Google App Engine
This is Rietveld 408576698