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

Issue 2228553003: a provider of Physical Web pages. (Closed)

Created:
4 years, 4 months ago by vitaliii
Modified:
4 years, 4 months ago
CC:
chromium-reviews, ntp-dev+reviews_chromium.org, droger+watchlist_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, arv+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

a provider of Physical Web pages. BUG=635893 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/762478d1961b46576d67263bf766d7c391f8514d Cr-Commit-Position: refs/heads/master@{#412484}

Patch Set 1 #

Total comments: 28

Patch Set 2 : added unittest #

Total comments: 48

Patch Set 3 : fix #

Total comments: 8

Patch Set 4 : nits. #

Total comments: 1

Patch Set 5 : rewrote comment. #

Patch Set 6 : git cl format #

Total comments: 12

Patch Set 7 : Bernhard's comments. #

Patch Set 8 : Bernhard's comments. #

Patch Set 9 : rebase + autoformat #

Patch Set 10 : resolved compile error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+372 lines, -18 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ntp_snippets/content_suggestions_service_factory.cc View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/resources/snippets_internals.html View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/snippets_internals_message_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M components/ntp_snippets.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M components/ntp_snippets/BUILD.gn View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download
M components/ntp_snippets/category.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M components/ntp_snippets/category_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/ntp_snippets/features.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/ntp_snippets/features.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
A components/ntp_snippets/mock_content_suggestions_provider_observer.h View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download
A components/ntp_snippets/mock_content_suggestions_provider_observer.cc View 1 2 3 4 5 6 7 1 chunk +26 lines, -0 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +6 lines, -15 lines 0 comments Download
A + components/ntp_snippets/physical_web_pages/DEPS View 1 chunk +1 line, -1 line 0 comments Download
A components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.h View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
A components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc View 1 2 3 4 5 6 7 8 9 1 chunk +115 lines, -0 lines 0 comments Download
A components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 57 (22 generated)
vitaliii
4 years, 4 months ago (2016-08-09 12:31:45 UTC) #3
Marc Treib
Some drive-by comments :) You should also file a bug and add the number to ...
4 years, 4 months ago (2016-08-09 12:45:18 UTC) #5
Marc Treib
Ah, also: You have a few lines > 80 chars. Try "git cl format" to ...
4 years, 4 months ago (2016-08-09 12:46:01 UTC) #6
tschumann
a test for the new provider and the category factory change would be good :-) ...
4 years, 4 months ago (2016-08-09 15:24:59 UTC) #8
Marc Treib
On 2016/08/09 15:24:59, tschumann wrote: > a test for the new provider and the category ...
4 years, 4 months ago (2016-08-09 15:40:48 UTC) #9
tschumann
On 2016/08/09 15:40:48, Marc Treib wrote: > On 2016/08/09 15:24:59, tschumann wrote: > > a ...
4 years, 4 months ago (2016-08-09 15:52:24 UTC) #10
Marc Treib
On 2016/08/09 15:52:24, tschumann wrote: > On 2016/08/09 15:40:48, Marc Treib wrote: > > On ...
4 years, 4 months ago (2016-08-09 16:00:28 UTC) #11
vitaliii
added a unittest. https://codereview.chromium.org/2228553003/diff/1/chrome/browser/android/chrome_feature_list.h File chrome/browser/android/chrome_feature_list.h (right): https://codereview.chromium.org/2228553003/diff/1/chrome/browser/android/chrome_feature_list.h#newcode22 chrome/browser/android/chrome_feature_list.h:22: extern const base::Feature kNTPPhysicalWebPageSuggestionsFeature; On 2016/08/09 ...
4 years, 4 months ago (2016-08-10 14:18:42 UTC) #12
Marc Treib
https://codereview.chromium.org/2228553003/diff/20001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc File chrome/browser/ntp_snippets/content_suggestions_service_factory.cc (right): https://codereview.chromium.org/2228553003/diff/20001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc#newcode153 chrome/browser/ntp_snippets/content_suggestions_service_factory.cc:153: #if defined(OS_ANDROID) This block is in the wrong place: ...
4 years, 4 months ago (2016-08-10 16:22:03 UTC) #13
tschumann
https://codereview.chromium.org/2228553003/diff/20001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc File chrome/browser/ntp_snippets/content_suggestions_service_factory.cc (right): https://codereview.chromium.org/2228553003/diff/20001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc#newcode153 chrome/browser/ntp_snippets/content_suggestions_service_factory.cc:153: #if defined(OS_ANDROID) On 2016/08/10 16:22:03, Marc Treib wrote: > ...
4 years, 4 months ago (2016-08-10 17:37:58 UTC) #14
Marc Treib
https://codereview.chromium.org/2228553003/diff/20001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc File chrome/browser/ntp_snippets/content_suggestions_service_factory.cc (right): https://codereview.chromium.org/2228553003/diff/20001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc#newcode153 chrome/browser/ntp_snippets/content_suggestions_service_factory.cc:153: #if defined(OS_ANDROID) On 2016/08/10 17:37:57, tschumann wrote: > On ...
4 years, 4 months ago (2016-08-11 12:15:24 UTC) #15
vitaliii
https://codereview.chromium.org/2228553003/diff/20001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc File chrome/browser/ntp_snippets/content_suggestions_service_factory.cc (right): https://codereview.chromium.org/2228553003/diff/20001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc#newcode153 chrome/browser/ntp_snippets/content_suggestions_service_factory.cc:153: #if defined(OS_ANDROID) On 2016/08/10 16:22:03, Marc Treib wrote: > ...
4 years, 4 months ago (2016-08-11 12:15:25 UTC) #16
tschumann
https://codereview.chromium.org/2228553003/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc File components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc (right): https://codereview.chromium.org/2228553003/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc#newcode42 components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc:42: OnNewSuggestionsUrls(urls); On 2016/08/11 12:15:25, vitaliii wrote: > On 2016/08/10 ...
4 years, 4 months ago (2016-08-11 12:52:24 UTC) #17
Marc Treib
LGTM with some more nits. Nice! https://codereview.chromium.org/2228553003/diff/20001/components/ntp_snippets/category_factory.cc File components/ntp_snippets/category_factory.cc (right): https://codereview.chromium.org/2228553003/diff/20001/components/ntp_snippets/category_factory.cc#newcode17 components/ntp_snippets/category_factory.cc:17: AddKnownCategory(KnownCategories::PHYSICAL_WEB_PAGES); On 2016/08/11 ...
4 years, 4 months ago (2016-08-11 12:53:09 UTC) #18
Marc Treib
https://codereview.chromium.org/2228553003/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc File components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc (right): https://codereview.chromium.org/2228553003/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc#newcode42 components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc:42: OnNewSuggestionsUrls(urls); On 2016/08/11 12:52:24, tschumann wrote: > On 2016/08/11 ...
4 years, 4 months ago (2016-08-11 13:09:15 UTC) #19
tschumann
https://codereview.chromium.org/2228553003/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc File components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc (right): https://codereview.chromium.org/2228553003/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc#newcode42 components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc:42: OnNewSuggestionsUrls(urls); On 2016/08/11 13:09:14, Marc Treib wrote: > On ...
4 years, 4 months ago (2016-08-11 13:14:05 UTC) #20
Marc Treib
https://codereview.chromium.org/2228553003/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc File components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc (right): https://codereview.chromium.org/2228553003/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc#newcode42 components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc:42: OnNewSuggestionsUrls(urls); On 2016/08/11 13:14:05, tschumann wrote: > On 2016/08/11 ...
4 years, 4 months ago (2016-08-11 13:17:53 UTC) #21
vitaliii
https://codereview.chromium.org/2228553003/diff/20001/components/ntp_snippets/category_factory.cc File components/ntp_snippets/category_factory.cc (right): https://codereview.chromium.org/2228553003/diff/20001/components/ntp_snippets/category_factory.cc#newcode17 components/ntp_snippets/category_factory.cc:17: AddKnownCategory(KnownCategories::PHYSICAL_WEB_PAGES); On 2016/08/11 12:53:09, Marc Treib wrote: > On ...
4 years, 4 months ago (2016-08-11 14:29:59 UTC) #22
tschumann
lgtm https://codereview.chromium.org/2228553003/diff/60001/components/ntp_snippets/mock_content_suggestions_provider_observer.h File components/ntp_snippets/mock_content_suggestions_provider_observer.h (right): https://codereview.chromium.org/2228553003/diff/60001/components/ntp_snippets/mock_content_suggestions_provider_observer.h#newcode25 components/ntp_snippets/mock_content_suggestions_provider_observer.h:25: // ContentSuggestion. please add: [which takes const list ...
4 years, 4 months ago (2016-08-11 15:06:57 UTC) #23
vitaliii
4 years, 4 months ago (2016-08-11 15:11:51 UTC) #24
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/2228553003/80001
4 years, 4 months ago (2016-08-12 08:00:24 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/236785)
4 years, 4 months ago (2016-08-12 08:06:00 UTC) #32
vitaliii
bauerb@chromium.org: Please review changes.
4 years, 4 months ago (2016-08-12 08:20:13 UTC) #34
Bernhard Bauer
https://codereview.chromium.org/2228553003/diff/100001/components/ntp_snippets/mock_content_suggestions_provider_observer.h File components/ntp_snippets/mock_content_suggestions_provider_observer.h (right): https://codereview.chromium.org/2228553003/diff/100001/components/ntp_snippets/mock_content_suggestions_provider_observer.h#newcode35 components/ntp_snippets/mock_content_suggestions_provider_observer.h:35: const std::list<ContentSuggestion>& suggestions)); If you use a vector here, ...
4 years, 4 months ago (2016-08-12 12:55:19 UTC) #35
vitaliii
https://codereview.chromium.org/2228553003/diff/100001/components/ntp_snippets/mock_content_suggestions_provider_observer.h File components/ntp_snippets/mock_content_suggestions_provider_observer.h (right): https://codereview.chromium.org/2228553003/diff/100001/components/ntp_snippets/mock_content_suggestions_provider_observer.h#newcode35 components/ntp_snippets/mock_content_suggestions_provider_observer.h:35: const std::list<ContentSuggestion>& suggestions)); On 2016/08/12 12:55:19, Bernhard Bauer wrote: ...
4 years, 4 months ago (2016-08-12 13:32:47 UTC) #37
Bernhard Bauer
https://codereview.chromium.org/2228553003/diff/100001/components/ntp_snippets/mock_content_suggestions_provider_observer.cc File components/ntp_snippets/mock_content_suggestions_provider_observer.cc (right): https://codereview.chromium.org/2228553003/diff/100001/components/ntp_snippets/mock_content_suggestions_provider_observer.cc#newcode20 components/ntp_snippets/mock_content_suggestions_provider_observer.cc:20: for (auto& suggestion : suggestions) { Can you use ...
4 years, 4 months ago (2016-08-12 13:49:06 UTC) #38
vitaliii
https://codereview.chromium.org/2228553003/diff/100001/components/ntp_snippets/mock_content_suggestions_provider_observer.cc File components/ntp_snippets/mock_content_suggestions_provider_observer.cc (right): https://codereview.chromium.org/2228553003/diff/100001/components/ntp_snippets/mock_content_suggestions_provider_observer.cc#newcode20 components/ntp_snippets/mock_content_suggestions_provider_observer.cc:20: for (auto& suggestion : suggestions) { On 2016/08/12 13:49:06, ...
4 years, 4 months ago (2016-08-16 07:31:21 UTC) #39
Bernhard Bauer
lgtm
4 years, 4 months ago (2016-08-16 14:05:57 UTC) #40
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/2228553003/140001
4 years, 4 months ago (2016-08-16 15:49:28 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/278740)
4 years, 4 months ago (2016-08-16 15:51:59 UTC) #45
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/2228553003/160001
4 years, 4 months ago (2016-08-16 16:14:56 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/52747) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 4 months ago (2016-08-16 16:23:41 UTC) #50
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/2228553003/180001
4 years, 4 months ago (2016-08-17 08:47:38 UTC) #53
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 4 months ago (2016-08-17 09:51:27 UTC) #55
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 09:53:20 UTC) #57
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/762478d1961b46576d67263bf766d7c391f8514d
Cr-Commit-Position: refs/heads/master@{#412484}

Powered by Google App Engine
This is Rietveld 408576698