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

Issue 1997473004: Snippets are enabled when search suggestions are enabled. (Closed)

Created:
4 years, 7 months ago by Michael van Ouwerkerk
Modified:
4 years, 6 months ago
CC:
chromium-reviews, mvanouwerkerk+watch_chromium.org, rginda+watch_chromium.org, mcwilliams+watch_chromium.org, dgn+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Snippets are enabled when search suggestions are enabled. * Users can now opt out of New Tab Page snippets with this preference: Settings > Privacy > Search and URL suggestions * Observing changes and updating previously instantiated NTPs is for a later CL. BUG=606792 TBR=skuhne Committed: https://crrev.com/97313225831b95666b6f7a6bdb0f6cd62858e411 Cr-Commit-Position: refs/heads/master@{#395866}

Patch Set 1 #

Patch Set 2 : Fix unit test. #

Patch Set 3 : Fix ios. #

Total comments: 4

Patch Set 4 : Rebase. Add a TODO. #

Total comments: 16

Patch Set 5 : Add docs. #

Patch Set 6 : Rebase. #

Patch Set 7 : Delete Init method. #

Patch Set 8 : Set shutdown_ #

Total comments: 9

Patch Set 9 : #

Total comments: 6

Patch Set 10 : #

Total comments: 1

Patch Set 11 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -43 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageLayout.java View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NtpColorUtils.java View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java View 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc View 1 2 3 4 5 5 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 2 chunks +1 line, -5 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -3 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +14 lines, -19 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 80 (29 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997473004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997473004/1
4 years, 7 months ago (2016-05-19 15:29:00 UTC) #2
Michael van Ouwerkerk
Bernhard, could you take a look please?
4 years, 7 months ago (2016-05-19 15:29:07 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/8528) mac_chromium_gn_rel on ...
4 years, 7 months ago (2016-05-19 15:36:43 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997473004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997473004/20001
4 years, 7 months ago (2016-05-19 16:37:51 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/8653) ios-simulator-gn on ...
4 years, 7 months ago (2016-05-19 16:44:10 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997473004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997473004/40001
4 years, 7 months ago (2016-05-19 16:56:49 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-19 18:52:05 UTC) #15
Bernhard Bauer
LGTM w/ a nit and a suggestion for future work: https://codereview.chromium.org/1997473004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NtpColorUtils.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/NtpColorUtils.java (right): https://codereview.chromium.org/1997473004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NtpColorUtils.java#newcode18 ...
4 years, 7 months ago (2016-05-20 10:43:27 UTC) #16
Michael van Ouwerkerk
Thanks Bernhard! https://codereview.chromium.org/1997473004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NtpColorUtils.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/NtpColorUtils.java (right): https://codereview.chromium.org/1997473004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NtpColorUtils.java#newcode18 chrome/android/java/src/org/chromium/chrome/browser/ntp/NtpColorUtils.java:18: public final class NtpColorUtils { On 2016/05/20 ...
4 years, 7 months ago (2016-05-20 11:25:58 UTC) #17
Michael van Ouwerkerk
skuhne: please review deletions from profile_manager.cc as OWNER
4 years, 7 months ago (2016-05-20 11:28:22 UTC) #19
Michael van Ouwerkerk
Eric: please take a look at the ios changes as OWNER.
4 years, 7 months ago (2016-05-20 11:30:17 UTC) #21
noyau (Ping after 24h)
https://codereview.chromium.org/1997473004/diff/60001/components/ntp_snippets/ntp_snippets_service.h File components/ntp_snippets/ntp_snippets_service.h (right): https://codereview.chromium.org/1997473004/diff/60001/components/ntp_snippets/ntp_snippets_service.h#newcode67 components/ntp_snippets/ntp_snippets_service.h:67: std::unique_ptr<image_fetcher::ImageFetcher> image_fetcher); 7 arguments now. This starts to smell ...
4 years, 7 months ago (2016-05-20 11:45:05 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997473004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997473004/60001
4 years, 7 months ago (2016-05-20 11:58:51 UTC) #24
Michael van Ouwerkerk
Thanks Eric. Please take another look. Marc, could you comment on the comment in ProfileManager? ...
4 years, 7 months ago (2016-05-20 12:38:36 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-20 13:08:53 UTC) #28
Marc Treib
https://codereview.chromium.org/1997473004/diff/60001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/1997473004/diff/60001/chrome/browser/profiles/profile_manager.cc#newcode1232 chrome/browser/profiles/profile_manager.cc:1232: // Note: Create the service even if the feature ...
4 years, 7 months ago (2016-05-20 13:49:36 UTC) #29
Michael van Ouwerkerk
Thanks Marc! Please take another look. https://codereview.chromium.org/1997473004/diff/60001/components/ntp_snippets/ntp_snippets_service.h File components/ntp_snippets/ntp_snippets_service.h (right): https://codereview.chromium.org/1997473004/diff/60001/components/ntp_snippets/ntp_snippets_service.h#newcode67 components/ntp_snippets/ntp_snippets_service.h:67: std::unique_ptr<image_fetcher::ImageFetcher> image_fetcher); On ...
4 years, 7 months ago (2016-05-20 14:56:50 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997473004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997473004/80001
4 years, 7 months ago (2016-05-20 14:57:21 UTC) #32
noyau (Ping after 24h)
https://codereview.chromium.org/1997473004/diff/60001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/1997473004/diff/60001/chrome/browser/profiles/profile_manager.cc#newcode1234 chrome/browser/profiles/profile_manager.cc:1234: NTPSnippetsServiceFactory::GetForProfile(profile)->Init(); Here the service is created and Init is ...
4 years, 7 months ago (2016-05-20 15:16:53 UTC) #33
noyau (Ping after 24h)
On 2016/05/20 15:16:53, noyau wrote: > https://codereview.chromium.org/1997473004/diff/60001/chrome/browser/profiles/profile_manager.cc > File chrome/browser/profiles/profile_manager.cc (right): > > https://codereview.chromium.org/1997473004/diff/60001/chrome/browser/profiles/profile_manager.cc#newcode1234 > ...
4 years, 7 months ago (2016-05-20 15:20:16 UTC) #34
Marc Treib
LGTM, provided you want to do the "listen to pref changes" part in a follow-up ...
4 years, 7 months ago (2016-05-20 15:30:25 UTC) #35
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-20 16:04:28 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997473004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997473004/100001
4 years, 7 months ago (2016-05-23 17:21:21 UTC) #39
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-23 18:34:24 UTC) #41
Michael van Ouwerkerk
https://codereview.chromium.org/1997473004/diff/60001/components/ntp_snippets/ntp_snippets_service.h File components/ntp_snippets/ntp_snippets_service.h (right): https://codereview.chromium.org/1997473004/diff/60001/components/ntp_snippets/ntp_snippets_service.h#newcode67 components/ntp_snippets/ntp_snippets_service.h:67: std::unique_ptr<image_fetcher::ImageFetcher> image_fetcher); On 2016/05/20 15:16:53, noyau wrote: > On ...
4 years, 7 months ago (2016-05-24 14:11:31 UTC) #42
noyau (Ping after 24h)
Ok. But I'd like for the Init method to be removed. It serves no purpose, ...
4 years, 7 months ago (2016-05-24 14:19:12 UTC) #43
Michael van Ouwerkerk
https://codereview.chromium.org/1997473004/diff/60001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/1997473004/diff/60001/chrome/browser/profiles/profile_manager.cc#newcode1234 chrome/browser/profiles/profile_manager.cc:1234: NTPSnippetsServiceFactory::GetForProfile(profile)->Init(); On 2016/05/24 14:19:11, noyau wrote: > On 2016/05/20 ...
4 years, 7 months ago (2016-05-24 14:38:54 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997473004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997473004/120001
4 years, 7 months ago (2016-05-24 14:39:20 UTC) #46
Bernhard Bauer
https://codereview.chromium.org/1997473004/diff/60001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/1997473004/diff/60001/chrome/browser/profiles/profile_manager.cc#newcode1234 chrome/browser/profiles/profile_manager.cc:1234: NTPSnippetsServiceFactory::GetForProfile(profile)->Init(); On 2016/05/24 14:38:54, Michael van Ouwerkerk wrote: > ...
4 years, 7 months ago (2016-05-24 14:54:28 UTC) #47
Michael van Ouwerkerk
https://codereview.chromium.org/1997473004/diff/60001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/1997473004/diff/60001/chrome/browser/profiles/profile_manager.cc#newcode1234 chrome/browser/profiles/profile_manager.cc:1234: NTPSnippetsServiceFactory::GetForProfile(profile)->Init(); On 2016/05/24 14:54:28, Bernhard Bauer wrote: > On ...
4 years, 6 months ago (2016-05-24 15:00:45 UTC) #48
noyau (Ping after 24h)
On 2016/05/24 14:54:28, Bernhard Bauer wrote: > https://codereview.chromium.org/1997473004/diff/60001/chrome/browser/profiles/profile_manager.cc > File chrome/browser/profiles/profile_manager.cc (right): > > https://codereview.chromium.org/1997473004/diff/60001/chrome/browser/profiles/profile_manager.cc#newcode1234 ...
4 years, 6 months ago (2016-05-24 15:00:51 UTC) #49
Michael van Ouwerkerk
On 2016/05/24 15:00:51, noyau wrote: > On 2016/05/24 14:54:28, Bernhard Bauer wrote: > > > ...
4 years, 6 months ago (2016-05-24 15:03:28 UTC) #50
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/10539)
4 years, 6 months ago (2016-05-24 15:04:26 UTC) #52
Bernhard Bauer
On 2016/05/24 15:00:51, noyau wrote: > On 2016/05/24 14:54:28, Bernhard Bauer wrote: > > > ...
4 years, 6 months ago (2016-05-24 15:05:52 UTC) #54
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997473004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997473004/140001
4 years, 6 months ago (2016-05-24 16:16:09 UTC) #56
dgn
https://codereview.chromium.org/1997473004/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java (right): https://codereview.chromium.org/1997473004/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java#newcode18 chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java:18: && PrefServiceBridge.getInstance().isSearchSuggestEnabled(); We want to use the material UI ...
4 years, 6 months ago (2016-05-24 16:38:36 UTC) #58
Marc Treib
not lgtm anymore - I agree with Nicolas that we want to keep the State ...
4 years, 6 months ago (2016-05-24 16:55:24 UTC) #59
Marc Treib
On 2016/05/24 16:55:24, Marc Treib wrote: > not lgtm anymore - I agree with Nicolas ...
4 years, 6 months ago (2016-05-24 16:57:53 UTC) #60
Michael van Ouwerkerk
All done. Please take another look. https://codereview.chromium.org/1997473004/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java (right): https://codereview.chromium.org/1997473004/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java#newcode18 chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java:18: && PrefServiceBridge.getInstance().isSearchSuggestEnabled(); On ...
4 years, 6 months ago (2016-05-24 16:58:09 UTC) #61
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997473004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997473004/160001
4 years, 6 months ago (2016-05-24 16:58:59 UTC) #63
Marc Treib
https://codereview.chromium.org/1997473004/diff/160001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/1997473004/diff/160001/components/ntp_snippets/ntp_snippets_service.cc#newcode216 components/ntp_snippets/ntp_snippets_service.cc:216: state_ = State::INITED; Hm, so the NOT_INITED state doesn't ...
4 years, 6 months ago (2016-05-24 17:04:22 UTC) #64
Michael van Ouwerkerk
All done. Please take another look. https://codereview.chromium.org/1997473004/diff/160001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/1997473004/diff/160001/components/ntp_snippets/ntp_snippets_service.cc#newcode216 components/ntp_snippets/ntp_snippets_service.cc:216: state_ = State::INITED; ...
4 years, 6 months ago (2016-05-24 17:16:38 UTC) #65
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997473004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997473004/180001
4 years, 6 months ago (2016-05-24 17:17:18 UTC) #67
Marc Treib
LGTM again, thanks! https://codereview.chromium.org/1997473004/diff/180001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/1997473004/diff/180001/components/ntp_snippets/ntp_snippets_service.cc#newcode237 components/ntp_snippets/ntp_snippets_service.cc:237: DCHECK_EQ(state_, State::SHUT_DOWN); This won't compile AFAIK, ...
4 years, 6 months ago (2016-05-24 17:20:10 UTC) #68
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-simulator-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-gn/builds/10712)
4 years, 6 months ago (2016-05-24 17:25:37 UTC) #70
dgn
https://codereview.chromium.org/1997473004/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java (right): https://codereview.chromium.org/1997473004/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java#newcode18 chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsConfig.java:18: && PrefServiceBridge.getInstance().isSearchSuggestEnabled(); On 2016/05/24 16:58:09, Michael van Ouwerkerk wrote: ...
4 years, 6 months ago (2016-05-24 18:04:19 UTC) #71
noyau (Ping after 24h)
On 24 May 2016 at 17:05, <bauerb@chromium.org> wrote: > > This won't do the fetch ...
4 years, 6 months ago (2016-05-24 21:10:40 UTC) #72
Marc Treib
On Tue, May 24, 2016 at 11:10 PM Éric Noyau <noyau@chromium.org> wrote: > On 24 ...
4 years, 6 months ago (2016-05-25 08:15:49 UTC) #73
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1997473004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1997473004/200001
4 years, 6 months ago (2016-05-25 10:31:32 UTC) #76
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 6 months ago (2016-05-25 11:50:01 UTC) #78
commit-bot: I haz the power
4 years, 6 months ago (2016-05-25 11:51:10 UTC) #80
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/97313225831b95666b6f7a6bdb0f6cd62858e411
Cr-Commit-Position: refs/heads/master@{#395866}

Powered by Google App Engine
This is Rietveld 408576698