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

Issue 2172203002: Enable Popular Sites in Android demo mode. (Closed)

Created:
4 years, 5 months ago by Bernhard Bauer
Modified:
4 years, 4 months ago
CC:
chromium-reviews, jbudorick+watch_chromium.org, mikecase+watch_chromium.org, ntp-dev+reviews_chromium.org, sfiera
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable Popular Sites in Android demo mode. BUG=625033 Committed: https://crrev.com/65f0f9bcaabb68512ce76b923bc9f3305b235b8d Cr-Commit-Position: refs/heads/master@{#408100}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : x #

Total comments: 4

Patch Set 4 : x #

Patch Set 5 : x #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -0 lines) Patch
M chrome/android/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M components/ntp_tiles.gypi View 1 2 chunks +29 lines, -0 lines 0 comments Download
M components/ntp_tiles/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M components/ntp_tiles/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A components/ntp_tiles/android/BUILD.gn View 1 chunk +22 lines, -0 lines 0 comments Download
A components/ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVisitedSites.java View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M components/ntp_tiles/most_visited_sites.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M components/ntp_tiles/most_visited_sites.cc View 1 2 3 4 4 chunks +26 lines, -0 lines 0 comments Download
M tools/android/eclipse/.classpath View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (22 generated)
Bernhard Bauer
Please review. Thanks!
4 years, 5 months ago (2016-07-22 12:48:34 UTC) #11
sfiera
Files missing? Doesn't seem that this will do anything with just the .java source. (fine ...
4 years, 5 months ago (2016-07-22 12:55:46 UTC) #13
Marc Treib
https://codereview.chromium.org/2172203002/diff/30001/components/ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVisitedSites.java File components/ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVisitedSites.java (right): https://codereview.chromium.org/2172203002/diff/30001/components/ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVisitedSites.java#newcode19 components/ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVisitedSites.java:19: private static boolean isPopularSitesEnabled() { As Chris says, this ...
4 years, 5 months ago (2016-07-22 12:59:03 UTC) #14
sfiera
https://codereview.chromium.org/2172203002/diff/30001/components/ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVisitedSites.java File components/ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVisitedSites.java (right): https://codereview.chromium.org/2172203002/diff/30001/components/ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVisitedSites.java#newcode19 components/ntp_tiles/android/java/src/org/chromium/components/ntptiles/MostVisitedSites.java:19: private static boolean isPopularSitesEnabled() { On 2016/07/22 12:59:03, Marc ...
4 years, 5 months ago (2016-07-22 13:01:48 UTC) #15
Bernhard Bauer
On 2016/07/22 12:55:46, sfiera wrote: > Files missing? Doesn't seem that this will do anything ...
4 years, 5 months ago (2016-07-22 14:37:38 UTC) #20
Marc Treib
lgtm
4 years, 5 months ago (2016-07-25 12:38:09 UTC) #23
Bernhard Bauer
Jochen, could I get an OWNERS review for the GYP changes? Thanks!
4 years, 5 months ago (2016-07-25 15:44:11 UTC) #25
jochen (gone - plz use gerrit)
lgtm
4 years, 5 months ago (2016-07-25 16:25:03 UTC) #26
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/2172203002/70001
4 years, 4 months ago (2016-07-27 11:18:13 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:70001)
4 years, 4 months ago (2016-07-27 12:15:35 UTC) #30
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/65f0f9bcaabb68512ce76b923bc9f3305b235b8d Cr-Commit-Position: refs/heads/master@{#408100}
4 years, 4 months ago (2016-07-27 12:18:21 UTC) #32
klobag.chromium
Hmm, this seems complicated. Why not just enable kEnableNTPPopularSites flag when demoUser is true?
4 years, 4 months ago (2016-07-29 22:59:45 UTC) #34
Bernhard Bauer
On 2016/07/29 22:59:45, klobag.chromium wrote: > Hmm, this seems complicated. Is it? Most of the ...
4 years, 4 months ago (2016-07-30 12:27:07 UTC) #35
klobag.chromium
4 years, 4 months ago (2016-08-01 19:21:41 UTC) #36
Message was sent while issue was closed.
On 2016/07/30 12:27:07, Bernhard Bauer wrote:
> On 2016/07/29 22:59:45, klobag.chromium wrote:
> > Hmm, this seems complicated.
> 
> Is it? Most of the changes are to build files and JNI registration, because
> we're adding Java code to the ntp_tiles component which had been
> platform-independent so far.

The CL looks bigger from merging perspective. But agree it is simple from code
perspective.

> 
> > Why not just enable kEnableNTPPopularSites flag when demoUser is true?
> 
> We would have to ensure the command line is modified before Popular Sites is
> initialized, so we would have to add the check to the startup path somewhere
> before the native library is loaded, and accumulating random initialization
code
> during startup seems like an anti-pattern to me. (Then there is also the
> anti-pattern of using the command line as general-purpose state.)

I meant at start up before native initialization.

Powered by Google App Engine
This is Rietveld 408576698