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

Issue 1910633005: Display status message for "Add snippets" on chrome://snippets-internals (Closed)

Created:
4 years, 8 months ago by jkrcal
Modified:
4 years, 8 months ago
CC:
chromium-reviews, mcwilliams+watch_chromium.org, arv+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

Display status message for "Add snippets" on chrome://snippets-internals The status message informs of URLRequest / HTTP error codes, invalid input, etc (604740). Furthermore, I enlarged the hosts input (605520). BUG=604740, 605520 Committed: https://crrev.com/ab8e57c751b135139f3666ad900f491e78744fcd Cr-Commit-Position: refs/heads/master@{#389431}

Patch Set 1 #

Patch Set 2 : Minor polish #

Patch Set 3 : Another minor polish + fixing the closely related bug 605520 #

Total comments: 23

Patch Set 4 : After code review #1 #

Patch Set 5 : Minor edit (removing one empty line). #

Total comments: 6

Patch Set 6 : After code review #2 #

Total comments: 8

Patch Set 7 : After code review #3 #

Total comments: 5

Patch Set 8 : After code review #4 #

Patch Set 9 : The final version ;) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -36 lines) Patch
M chrome/browser/resources/snippets_internals.css View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/snippets_internals.html View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/snippets_internals_message_handler.cc View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_fetcher.h View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_fetcher.cc View 1 2 3 4 5 6 7 4 chunks +23 lines, -13 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.h View 1 2 3 4 5 4 chunks +10 lines, -2 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 3 4 5 6 7 8 7 chunks +43 lines, -15 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (9 generated)
jkrcal
PTAL
4 years, 8 months ago (2016-04-21 13:15:49 UTC) #4
jkrcal
On 2016/04/21 13:15:49, jkrcal wrote: > PTAL Let me be more specific: PTAL at components/ntp_snippets/*
4 years, 8 months ago (2016-04-21 13:17:04 UTC) #5
jkrcal
bauerb: PTAL at the three snippets-internals files.
4 years, 8 months ago (2016-04-21 13:19:44 UTC) #7
Marc Treib
https://codereview.chromium.org/1910633005/diff/40001/chrome/browser/ui/webui/snippets_internals_message_handler.cc File chrome/browser/ui/webui/snippets_internals_message_handler.cc (right): https://codereview.chromium.org/1910633005/diff/40001/chrome/browser/ui/webui/snippets_internals_message_handler.cc#newcode166 chrome/browser/ui/webui/snippets_internals_message_handler.cc:166: if (!ntp_snippets_service_->get_last_status().empty()) nit: Don't call last_status() twice, call it ...
4 years, 8 months ago (2016-04-21 13:47:21 UTC) #8
Bernhard Bauer
https://codereview.chromium.org/1910633005/diff/40001/chrome/browser/ui/webui/snippets_internals_message_handler.cc File chrome/browser/ui/webui/snippets_internals_message_handler.cc (right): https://codereview.chromium.org/1910633005/diff/40001/chrome/browser/ui/webui/snippets_internals_message_handler.cc#newcode125 chrome/browser/ui/webui/snippets_internals_message_handler.cc:125: SendString("hosts-status", ""); Nit: Use an empty std::string() constructor instead ...
4 years, 8 months ago (2016-04-21 16:28:41 UTC) #9
jkrcal
Thanks for the reviews! PTAL once again. https://codereview.chromium.org/1910633005/diff/40001/chrome/browser/ui/webui/snippets_internals_message_handler.cc File chrome/browser/ui/webui/snippets_internals_message_handler.cc (right): https://codereview.chromium.org/1910633005/diff/40001/chrome/browser/ui/webui/snippets_internals_message_handler.cc#newcode125 chrome/browser/ui/webui/snippets_internals_message_handler.cc:125: SendString("hosts-status", ""); ...
4 years, 8 months ago (2016-04-22 09:30:28 UTC) #10
Bernhard Bauer
https://codereview.chromium.org/1910633005/diff/40001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/1910633005/diff/40001/components/ntp_snippets/ntp_snippets_service.cc#newcode228 components/ntp_snippets/ntp_snippets_service.cc:228: snippets_fetcher_last_status_ = "Cannot fetch for empty hosts list."; On ...
4 years, 8 months ago (2016-04-22 09:42:17 UTC) #11
Marc Treib
LGTM with Bernhard's remaining comments addressed.
4 years, 8 months ago (2016-04-22 09:44:44 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910633005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910633005/100001
4 years, 8 months ago (2016-04-22 10:56:16 UTC) #14
jkrcal
PTAL (I also had to do a rebase-update before the last changes) https://codereview.chromium.org/1910633005/diff/40001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc ...
4 years, 8 months ago (2016-04-22 11:11:59 UTC) #15
Marc Treib
https://codereview.chromium.org/1910633005/diff/100001/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/1910633005/diff/100001/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode33 components/ntp_snippets/ntp_snippets_fetcher.cc:33: } // namespace nitty nit: two spaces before // ...
4 years, 8 months ago (2016-04-22 12:02:54 UTC) #16
jkrcal
Thanks, Marc! PTAL, hopefully for the last time :) https://codereview.chromium.org/1910633005/diff/100001/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/1910633005/diff/100001/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode33 components/ntp_snippets/ntp_snippets_fetcher.cc:33: ...
4 years, 8 months ago (2016-04-22 12:20:09 UTC) #17
Marc Treib
LGTM again :) https://codereview.chromium.org/1910633005/diff/120001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/1910633005/diff/120001/components/ntp_snippets/ntp_snippets_service.cc#newcode338 components/ntp_snippets/ntp_snippets_service.cc:338: last_fetch_status_ = status; nit: Move this ...
4 years, 8 months ago (2016-04-22 12:28:31 UTC) #18
Bernhard Bauer
https://codereview.chromium.org/1910633005/diff/120001/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/1910633005/diff/120001/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode33 components/ntp_snippets/ntp_snippets_fetcher.cc:33: } // namespace If you use an anonymous namespace ...
4 years, 8 months ago (2016-04-22 12:54:00 UTC) #19
jkrcal
Implemented both comments. PTAL https://codereview.chromium.org/1910633005/diff/120001/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/1910633005/diff/120001/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode33 components/ntp_snippets/ntp_snippets_fetcher.cc:33: } // namespace On 2016/04/22 ...
4 years, 8 months ago (2016-04-22 13:04:37 UTC) #20
Bernhard Bauer
LGTM w/ a nit: https://codereview.chromium.org/1910633005/diff/120001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/1910633005/diff/120001/components/ntp_snippets/ntp_snippets_service.cc#newcode338 components/ntp_snippets/ntp_snippets_service.cc:338: last_fetch_status_ = status; On 2016/04/22 ...
4 years, 8 months ago (2016-04-22 14:28:44 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910633005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910633005/160001
4 years, 8 months ago (2016-04-25 07:39:42 UTC) #24
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-04-25 08:17:52 UTC) #26
commit-bot: I haz the power
4 years, 8 months ago (2016-04-25 08:20:26 UTC) #28
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/ab8e57c751b135139f3666ad900f491e78744fcd
Cr-Commit-Position: refs/heads/master@{#389431}

Powered by Google App Engine
This is Rietveld 408576698