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

Issue 2520853002: [NTP] Cleanup: add brackets in components/ntp_snippets. [2/2] (Closed)

Created:
4 years, 1 month ago by vitaliii
Modified:
4 years, 1 month ago
Reviewers:
Marc Treib
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP] Cleanup: add brackets in components/ntp_snippets. [2/2] This CL adds curly brackets to |if|, |for| and |while| in components/ntp_snippets. The search was done using "((if)|(for)|(while)) \([^{]*?\n" regexp. Note that it matches multiline statements and this was intended, since there were not many such cases and I wanted to confirm that we did not miss brackets there. BUG=667202 Committed: https://crrev.com/4408d6ca936c694ceb0574f9f59160aade65f0ea Cr-Commit-Position: refs/heads/master@{#433532}

Patch Set 1 #

Total comments: 2

Patch Set 2 : "else if". #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -88 lines) Patch
M components/ntp_snippets/category_factory.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.cc View 14 chunks +47 lines, -24 lines 0 comments Download
M components/ntp_snippets/features.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_status_service.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_database.cc View 6 chunks +18 lines, -10 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_provider.cc View 26 chunks +66 lines, -35 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_provider_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/ntp_snippets/remote/request_throttler.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/ntp_snippets/sessions/foreign_sessions_suggestions_provider_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/ntp_snippets/sessions/tab_delegate_sync_adapter.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/ntp_snippets/user_classifier.cc View 8 chunks +18 lines, -9 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (14 generated)
vitaliii
Hi Marc, could you have a look? https://codereview.chromium.org/2520853002/diff/1/components/ntp_snippets/remote/ntp_snippets_status_service.cc File components/ntp_snippets/remote/ntp_snippets_status_service.cc (left): https://codereview.chromium.org/2520853002/diff/1/components/ntp_snippets/remote/ntp_snippets_status_service.cc#oldcode37 components/ntp_snippets/remote/ntp_snippets_status_service.cc:37: } else ...
4 years, 1 month ago (2016-11-21 08:50:49 UTC) #5
Marc Treib
https://codereview.chromium.org/2520853002/diff/1/components/ntp_snippets/remote/ntp_snippets_status_service.cc File components/ntp_snippets/remote/ntp_snippets_status_service.cc (left): https://codereview.chromium.org/2520853002/diff/1/components/ntp_snippets/remote/ntp_snippets_status_service.cc#oldcode37 components/ntp_snippets/remote/ntp_snippets_status_service.cc:37: } else if (!param_value_str.empty() && On 2016/11/21 08:50:49, vitaliii ...
4 years, 1 month ago (2016-11-21 09:41:22 UTC) #7
vitaliii
Hi Marc, I reverted back "else if" bit, please have a look.
4 years, 1 month ago (2016-11-21 09:49:24 UTC) #10
Marc Treib
LGTM! And btw, thanks for the super-speedy cleanup!
4 years, 1 month ago (2016-11-21 10:00:36 UTC) #11
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/2520853002/20001
4 years, 1 month ago (2016-11-21 12:01:06 UTC) #14
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/2520853002/20001
4 years, 1 month ago (2016-11-21 14:13:07 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-21 14:16:50 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-21 14:19:01 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4408d6ca936c694ceb0574f9f59160aade65f0ea
Cr-Commit-Position: refs/heads/master@{#433532}

Powered by Google App Engine
This is Rietveld 408576698