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

Issue 1438043008: Creating the NTP snippet service. (Closed)

Created:
5 years, 1 month ago by noyau (Ping after 24h)
Modified:
5 years, 1 month ago
CC:
Bernhard Bauer, blundell+watchlist_chromium.org, chromium-reviews, darin-cc_chromium.org, droger+watchlist_chromium.org, jam, May, sdefresne+watchlist_chromium.org, sdefresne+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Creating the NTP snippet service. This service will provide content that will be displayed on the NTP initially on mobile platforms (iOS and Android). This CL just creates the necessary scaffolding, the API will be added and refined in subsequent CLs. BUG=547046 Committed: https://crrev.com/b0888e833f21b7a496482b96b90293f3d433e334 Cr-Commit-Position: refs/heads/master@{#360610}

Patch Set 1 : #

Patch Set 2 : Fixing compile on non-ios platforms (ooops!) #

Total comments: 6

Patch Set 3 : Fixing gn build. #

Patch Set 4 : Fixing Blundell's inline comments. #

Patch Set 5 : Big rename NTPContent/NTPSuggestions. #

Patch Set 6 : Rebase #

Total comments: 28

Patch Set 7 : Feedback. #

Patch Set 8 : s/maybelle/bauerb/ #

Patch Set 9 : Mass automated rename to NTPSnippets. #

Patch Set 10 : Missed one tiny rename in OWNERS. #

Patch Set 11 : Fix mass rename overreach. #

Total comments: 2

Patch Set 12 : Adding missing explicit. #

Total comments: 9

Patch Set 13 : Feedback. #

Patch Set 14 : Matching the style guide. #

Patch Set 15 : Rebase #

Patch Set 16 : Rebase fix: Don't trust git. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -19 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/browser/ntp_snippets/OWNERS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/ntp_snippets/ntp_snippets_service_factory.h View 1 2 3 4 5 6 7 8 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +5 lines, -2 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M components/OWNERS View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
A + components/ntp_snippets.gypi View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -8 lines 0 comments Download
A + components/ntp_snippets/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -9 lines 0 comments Download
A + components/ntp_snippets/DEPS View 1 2 3 4 5 6 7 8 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/ntp_snippets/OWNERS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A components/ntp_snippets/ntp_snippets_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +37 lines, -0 lines 0 comments Download
A components/ntp_snippets/ntp_snippets_service.cc View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -0 lines 0 comments Download
M ios/chrome/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/browser_state/browser_state_keyed_service_factories.mm View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
A + ios/chrome/browser/ntp_snippets/OWNERS View 1 2 3 4 5 6 7 8 0 chunks +-1 lines, --1 lines 0 comments Download
A ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +48 lines, -0 lines 0 comments Download
A ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +42 lines, -0 lines 0 comments Download
M ios/chrome/ios_chrome.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (21 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/1438043008/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1438043008/1
5 years, 1 month ago (2015-11-13 16:59:18 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/118361)
5 years, 1 month ago (2015-11-13 17:07:13 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1438043008/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1438043008/40001
5 years, 1 month ago (2015-11-13 18:19:12 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/118392)
5 years, 1 month ago (2015-11-13 18:34:58 UTC) #10
noyau (Ping after 24h)
To blundell@ for initial review.
5 years, 1 month ago (2015-11-16 09:17:05 UTC) #12
blundell
As discussed offline, I like your suggestion of ntp_suggestions as an alternative name that avoids ...
5 years, 1 month ago (2015-11-16 16:00:53 UTC) #15
noyau (Ping after 24h)
PTAL > As discussed offline, I like your suggestion of ntp_suggestions as an > alternative ...
5 years, 1 month ago (2015-11-17 10:36:10 UTC) #18
noyau (Ping after 24h)
PTAL > As discussed offline, I like your suggestion of ntp_suggestions as an > alternative ...
5 years, 1 month ago (2015-11-17 10:36:10 UTC) #19
blundell
LGTM!
5 years, 1 month ago (2015-11-17 11:28:24 UTC) #20
noyau (Ping after 24h)
jochen: For the addition in chrome/browser sdefresne: For the addition in ios/chrome/browser phajdan: For the ...
5 years, 1 month ago (2015-11-17 11:43:45 UTC) #22
jochen (gone - plz use gerrit)
please file a tracking bug and reference it from the CL description
5 years, 1 month ago (2015-11-17 13:42:26 UTC) #23
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1438043008/diff/200001/components/ntp_suggestions/DEPS File components/ntp_suggestions/DEPS (right): https://codereview.chromium.org/1438043008/diff/200001/components/ntp_suggestions/DEPS#newcode2 components/ntp_suggestions/DEPS:2: "+components/keyed_service", maybe restrict to .../core ? https://codereview.chromium.org/1438043008/diff/200001/components/ntp_suggestions/OWNERS File components/ntp_suggestions/OWNERS ...
5 years, 1 month ago (2015-11-17 13:45:27 UTC) #24
sdefresne
https://codereview.chromium.org/1438043008/diff/200001/chrome/browser/ntp_suggestions/ntp_suggestions_service_factory.cc File chrome/browser/ntp_suggestions/ntp_suggestions_service_factory.cc (right): https://codereview.chromium.org/1438043008/diff/200001/chrome/browser/ntp_suggestions/ntp_suggestions_service_factory.cc#newcode24 chrome/browser/ntp_suggestions/ntp_suggestions_service_factory.cc:24: DCHECK(!context->IsOffTheRecord()); nit: The default implementation of BrowserContextKeyedService::GetServiceForBrowserContext() will return ...
5 years, 1 month ago (2015-11-17 13:57:29 UTC) #25
noyau (Ping after 24h)
On 2015/11/17 13:42:26, jochen wrote: > please file a tracking bug and reference it from ...
5 years, 1 month ago (2015-11-17 15:57:01 UTC) #27
Marc Treib
There is already a class called SuggestionsService, which is also used by the NTP: https://code.google.com/p/chromium/codesearch#chromium/src/components/suggestions/suggestions_service.h&l=47 ...
5 years, 1 month ago (2015-11-17 16:10:23 UTC) #28
noyau (Ping after 24h)
Fixed all review comment. Note to all reviewers, I'm going to do another name change, ...
5 years, 1 month ago (2015-11-17 17:00:34 UTC) #29
Bernhard Bauer
https://codereview.chromium.org/1438043008/diff/200001/components/ntp_suggestions/OWNERS File components/ntp_suggestions/OWNERS (right): https://codereview.chromium.org/1438043008/diff/200001/components/ntp_suggestions/OWNERS#newcode2 components/ntp_suggestions/OWNERS:2: maybelle@chromium.org On 2015/11/17 13:45:27, jochen wrote: > only chromium ...
5 years, 1 month ago (2015-11-17 17:10:44 UTC) #31
noyau (Ping after 24h)
PTAL. Thanks. https://codereview.chromium.org/1438043008/diff/200001/components/ntp_suggestions/OWNERS File components/ntp_suggestions/OWNERS (right): https://codereview.chromium.org/1438043008/diff/200001/components/ntp_suggestions/OWNERS#newcode2 components/ntp_suggestions/OWNERS:2: maybelle@chromium.org On 2015/11/17 17:10:44, Bernhard Bauer wrote: ...
5 years, 1 month ago (2015-11-18 10:42:03 UTC) #33
jochen (gone - plz use gerrit)
lgtm with comments https://codereview.chromium.org/1438043008/diff/200001/components/ntp_suggestions/OWNERS File components/ntp_suggestions/OWNERS (right): https://codereview.chromium.org/1438043008/diff/200001/components/ntp_suggestions/OWNERS#newcode2 components/ntp_suggestions/OWNERS:2: maybelle@chromium.org On 2015/11/17 at 17:00:34, noyau ...
5 years, 1 month ago (2015-11-18 16:22:48 UTC) #36
Bernhard Bauer
https://codereview.chromium.org/1438043008/diff/200001/components/ntp_suggestions/OWNERS File components/ntp_suggestions/OWNERS (right): https://codereview.chromium.org/1438043008/diff/200001/components/ntp_suggestions/OWNERS#newcode2 components/ntp_suggestions/OWNERS:2: maybelle@chromium.org On 2015/11/18 16:22:48, jochen wrote: > On 2015/11/17 ...
5 years, 1 month ago (2015-11-18 16:42:47 UTC) #37
noyau (Ping after 24h)
https://codereview.chromium.org/1438043008/diff/340001/components/ntp_snippets/ntp_snippets_service.h File components/ntp_snippets/ntp_snippets_service.h (right): https://codereview.chromium.org/1438043008/diff/340001/components/ntp_snippets/ntp_snippets_service.h#newcode22 components/ntp_snippets/ntp_snippets_service.h:22: NTPSnippetsService(const std::string& application_language_code); On 2015/11/18 16:22:48, jochen wrote: > ...
5 years, 1 month ago (2015-11-18 17:39:40 UTC) #38
sdefresne
https://codereview.chromium.org/1438043008/diff/360001/components/ntp_snippets/BUILD.gn File components/ntp_snippets/BUILD.gn (right): https://codereview.chromium.org/1438043008/diff/360001/components/ntp_snippets/BUILD.gn#newcode1 components/ntp_snippets/BUILD.gn:1: # GYP version: components/ntp_snippets.gypi:ntp_snippets This file also needs a ...
5 years, 1 month ago (2015-11-18 17:59:07 UTC) #39
noyau (Ping after 24h)
PTAL. https://codereview.chromium.org/1438043008/diff/360001/components/ntp_snippets/BUILD.gn File components/ntp_snippets/BUILD.gn (right): https://codereview.chromium.org/1438043008/diff/360001/components/ntp_snippets/BUILD.gn#newcode1 components/ntp_snippets/BUILD.gn:1: # GYP version: components/ntp_snippets.gypi:ntp_snippets On 2015/11/18 17:59:06, sdefresne ...
5 years, 1 month ago (2015-11-19 09:08:21 UTC) #40
sdefresne
https://codereview.chromium.org/1438043008/diff/360001/components/ntp_snippets/ntp_snippets_service.h File components/ntp_snippets/ntp_snippets_service.h (right): https://codereview.chromium.org/1438043008/diff/360001/components/ntp_snippets/ntp_snippets_service.h#newcode23 components/ntp_snippets/ntp_snippets_service.h:23: void Shutdown() override; On 2015/11/19 at 09:08:21, noyau wrote: ...
5 years, 1 month ago (2015-11-19 11:34:43 UTC) #41
sdefresne
https://codereview.chromium.org/1438043008/diff/360001/components/ntp_snippets/ntp_snippets_service.h File components/ntp_snippets/ntp_snippets_service.h (right): https://codereview.chromium.org/1438043008/diff/360001/components/ntp_snippets/ntp_snippets_service.h#newcode23 components/ntp_snippets/ntp_snippets_service.h:23: void Shutdown() override; On 2015/11/19 at 11:34:43, sdefresne wrote: ...
5 years, 1 month ago (2015-11-19 11:46:50 UTC) #42
noyau (Ping after 24h)
I repent, I repent! PTAL :) https://codereview.chromium.org/1438043008/diff/360001/components/ntp_snippets/ntp_snippets_service.h File components/ntp_snippets/ntp_snippets_service.h (right): https://codereview.chromium.org/1438043008/diff/360001/components/ntp_snippets/ntp_snippets_service.h#newcode23 components/ntp_snippets/ntp_snippets_service.h:23: void Shutdown() override; ...
5 years, 1 month ago (2015-11-19 12:36:14 UTC) #43
sdefresne
lgtm
5 years, 1 month ago (2015-11-19 13:23:56 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/1438043008/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1438043008/380001
5 years, 1 month ago (2015-11-19 14:20:52 UTC) #46
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/138503) mac_chromium_compile_dbg_ng on ...
5 years, 1 month ago (2015-11-19 14:22:35 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1438043008/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1438043008/420001
5 years, 1 month ago (2015-11-19 15:52:14 UTC) #51
commit-bot: I haz the power
Committed patchset #16 (id:420001)
5 years, 1 month ago (2015-11-19 17:13:33 UTC) #52
commit-bot: I haz the power
5 years, 1 month ago (2015-11-19 17:14:34 UTC) #53
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/b0888e833f21b7a496482b96b90293f3d433e334
Cr-Commit-Position: refs/heads/master@{#360610}

Powered by Google App Engine
This is Rietveld 408576698