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

Issue 10882024: Add webui handler for promotions on Android NTP. (Closed)

Created:
8 years, 4 months ago by aruslan
Modified:
8 years, 3 months ago
Reviewers:
battre, sky, Dan Beam, Evan Stade
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org, arv (Not doing code reviews)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add webui handler for promotions on Android NTP. Add promotions support on Android NTP. BUG=144565 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154540

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 59

Patch Set 3 : Addressing the review comments. #

Total comments: 13

Patch Set 4 : Review comments addressed; UMA actions file added. #

Patch Set 5 : Whitespace merge fail. #

Total comments: 7

Patch Set 6 : Histograms for "shown", UMA for "action"; code style. #

Patch Set 7 : Histograms for "shown", UMA for "action"; code style. #

Patch Set 8 : Rebase. #

Total comments: 7

Patch Set 9 : Histograms for all events. #

Total comments: 20

Patch Set 10 : Addressed review comments. #

Patch Set 11 : Forgotten images added. #

Patch Set 12 : -webkit-image-set actually appears to work. Thanks, Dan! #

Patch Set 13 : Missed a call during the code rearranging. #

Patch Set 14 : Removing images (added separately in https://chromiumcodereview.appspot.com/10905035/) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+725 lines, -130 lines) Patch
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp_android/new_tab.html View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/resources/ntp_android/ntp_android.css View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +37 lines, -18 lines 0 comments Download
M chrome/browser/resources/ntp_android/ntp_android.js View 1 2 3 4 5 6 7 8 9 23 chunks +247 lines, -109 lines 0 comments Download
A chrome/browser/ui/webui/ntp/android/promo_handler.h View 1 2 3 4 5 6 7 8 9 1 chunk +82 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/ntp/android/promo_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +337 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
aruslan
estade and dbeam for webui/ntp code -- please help with the review. I will add ...
8 years, 4 months ago (2012-08-24 15:08:28 UTC) #1
Dan Beam
https://chromiumcodereview.appspot.com/10882024/diff/2001/chrome/browser/resources/ntp_android/ntp_android.css File chrome/browser/resources/ntp_android/ntp_android.css (right): https://chromiumcodereview.appspot.com/10882024/diff/2001/chrome/browser/resources/ntp_android/ntp_android.css#newcode47 chrome/browser/resources/ntp_android/ntp_android.css:47: margin: 16px 24px 16px 24px; nit: margin: 16px 24x; ...
8 years, 4 months ago (2012-08-25 00:48:20 UTC) #2
aruslan
Thanks, Dan; please take a look at the changes! https://chromiumcodereview.appspot.com/10882024/diff/2001/chrome/browser/resources/ntp_android/ntp_android.css File chrome/browser/resources/ntp_android/ntp_android.css (right): https://chromiumcodereview.appspot.com/10882024/diff/2001/chrome/browser/resources/ntp_android/ntp_android.css#newcode47 chrome/browser/resources/ntp_android/ntp_android.css:47: ...
8 years, 3 months ago (2012-08-27 22:19:51 UTC) #3
Dan Beam
https://chromiumcodereview.appspot.com/10882024/diff/2001/chrome/browser/resources/ntp_android/ntp_android.js File chrome/browser/resources/ntp_android/ntp_android.js (right): https://chromiumcodereview.appspot.com/10882024/diff/2001/chrome/browser/resources/ntp_android/ntp_android.js#newcode1060 chrome/browser/resources/ntp_android/ntp_android.js:1060: mostVisitedEl.style.display = On 2012/08/27 22:19:51, aruslan wrote: > On ...
8 years, 3 months ago (2012-08-28 00:32:31 UTC) #4
Dan Beam
will re-review in a little while, busy right now
8 years, 3 months ago (2012-08-28 00:33:03 UTC) #5
Dan Beam
didn't get to this today, will look tomorrow morning
8 years, 3 months ago (2012-08-28 07:26:45 UTC) #6
Evan Stade
https://chromiumcodereview.appspot.com/10882024/diff/3005/chrome/browser/ui/webui/ntp/android/promo_handler.cc File chrome/browser/ui/webui/ntp/android/promo_handler.cc (right): https://chromiumcodereview.appspot.com/10882024/diff/3005/chrome/browser/ui/webui/ntp/android/promo_handler.cc#newcode224 chrome/browser/ui/webui/ntp/android/promo_handler.cc:224: if (!id.compare("most_visited")) { use == https://chromiumcodereview.appspot.com/10882024/diff/3005/chrome/browser/ui/webui/ntp/android/promo_handler.cc#newcode226 chrome/browser/ui/webui/ntp/android/promo_handler.cc:226: content::UserMetricsAction("MobilePromoShownOnMostVisited")); please ...
8 years, 3 months ago (2012-08-28 17:25:54 UTC) #7
aruslan
Thanks for the review; please take a look at the cleaned-up version. I'll look if ...
8 years, 3 months ago (2012-08-28 19:16:49 UTC) #8
Evan Stade
https://chromiumcodereview.appspot.com/10882024/diff/3005/chrome/browser/ui/webui/ntp/android/promo_handler.cc File chrome/browser/ui/webui/ntp/android/promo_handler.cc (right): https://chromiumcodereview.appspot.com/10882024/diff/3005/chrome/browser/ui/webui/ntp/android/promo_handler.cc#newcode226 chrome/browser/ui/webui/ntp/android/promo_handler.cc:226: content::UserMetricsAction("MobilePromoShownOnMostVisited")); On 2012/08/28 19:16:49, aruslan wrote: > On 2012/08/28 ...
8 years, 3 months ago (2012-08-28 20:29:52 UTC) #9
Evan Stade
https://chromiumcodereview.appspot.com/10882024/diff/20001/chrome/browser/resources/ntp_android/ntp_android.js File chrome/browser/resources/ntp_android/ntp_android.js (right): https://chromiumcodereview.appspot.com/10882024/diff/20001/chrome/browser/resources/ntp_android/ntp_android.js#newcode2385 chrome/browser/resources/ntp_android/ntp_android.js:2385: menuOptions = [ my reading is: menuOptions = [ ...
8 years, 3 months ago (2012-08-28 22:37:28 UTC) #10
aruslan
Thanks for the reviews, Evan! I changed the code to use histograms for "shown" and ...
8 years, 3 months ago (2012-08-28 23:16:52 UTC) #11
aruslan
dbeam@, estade@ -- thank you for the reviews! Please take a look at the changed ...
8 years, 3 months ago (2012-08-29 20:41:33 UTC) #12
battre
I did not do a full review, but I was confused that you add a ...
8 years, 3 months ago (2012-08-29 21:04:19 UTC) #13
sky
LGTM
8 years, 3 months ago (2012-08-29 21:36:52 UTC) #14
aruslan
Thanks, Scott and Dominic! Dominic -- if you'd prefer to have the #if merged with ...
8 years, 3 months ago (2012-08-29 21:52:53 UTC) #15
battre
https://chromiumcodereview.appspot.com/10882024/diff/12002/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://chromiumcodereview.appspot.com/10882024/diff/12002/chrome/browser/prefs/browser_prefs.cc#newcode241 chrome/browser/prefs/browser_prefs.cc:241: #if defined(OS_ANDROID) On 2012/08/29 21:52:53, aruslan wrote: > On ...
8 years, 3 months ago (2012-08-29 21:58:24 UTC) #16
Evan Stade
https://chromiumcodereview.appspot.com/10882024/diff/12002/chrome/browser/ui/webui/ntp/android/promo_handler.cc File chrome/browser/ui/webui/ntp/android/promo_handler.cc (right): https://chromiumcodereview.appspot.com/10882024/diff/12002/chrome/browser/ui/webui/ntp/android/promo_handler.cc#newcode241 chrome/browser/ui/webui/ntp/android/promo_handler.cc:241: content::UserMetricsAction("MobilePromoClosePressedOnOpenTabs")); we actually still use histograms for actions most ...
8 years, 3 months ago (2012-08-29 22:17:06 UTC) #17
aruslan
Thanks, Evan. I talked with Ilya and removed UMA actions entirely. https://chromiumcodereview.appspot.com/10882024/diff/12002/chrome/browser/ui/webui/ntp/android/promo_handler.cc File chrome/browser/ui/webui/ntp/android/promo_handler.cc (right): ...
8 years, 3 months ago (2012-08-29 22:59:27 UTC) #18
Dan Beam
https://chromiumcodereview.appspot.com/10882024/diff/25002/chrome/browser/resources/ntp_android/ntp_android.js File chrome/browser/resources/ntp_android/ntp_android.js (right): https://chromiumcodereview.appspot.com/10882024/diff/25002/chrome/browser/resources/ntp_android/ntp_android.js#newcode258 chrome/browser/resources/ntp_android/ntp_android.js:258: RECENTLY_CLOSED: 'recently_closed', nit: alpha sort now https://chromiumcodereview.appspot.com/10882024/diff/25002/chrome/browser/resources/ntp_android/ntp_android.js#newcode1110 chrome/browser/resources/ntp_android/ntp_android.js:1110: promoIsAllowed ...
8 years, 3 months ago (2012-08-30 18:52:26 UTC) #19
aruslan
Thank you, Dan! Hope it looks cleaner now! :) https://chromiumcodereview.appspot.com/10882024/diff/25002/chrome/browser/resources/ntp_android/ntp_android.js File chrome/browser/resources/ntp_android/ntp_android.js (right): https://chromiumcodereview.appspot.com/10882024/diff/25002/chrome/browser/resources/ntp_android/ntp_android.js#newcode258 chrome/browser/resources/ntp_android/ntp_android.js:258: ...
8 years, 3 months ago (2012-08-30 21:38:17 UTC) #20
Dan Beam
lgtm
8 years, 3 months ago (2012-08-30 21:55:22 UTC) #21
aruslan
Thank you for the reviews and suggestions!
8 years, 3 months ago (2012-08-30 22:59:44 UTC) #22
Evan Stade
lgtm
8 years, 3 months ago (2012-08-31 00:04:02 UTC) #23
Dan Beam
you can remove the images from this CL now
8 years, 3 months ago (2012-08-31 01:47:24 UTC) #24
aruslan
On 2012/08/31 01:47:24, Dan Beam wrote: > you can remove the images from this CL ...
8 years, 3 months ago (2012-08-31 01:47:58 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aruslan@chromium.org/10882024/39002
8 years, 3 months ago (2012-08-31 17:30:28 UTC) #26
commit-bot: I haz the power
8 years, 3 months ago (2012-08-31 23:48:24 UTC) #27
Change committed as 154540

Powered by Google App Engine
This is Rietveld 408576698