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

Issue 2318223002: Remove EmptyRuleIterators with nullptrs. (Closed)

Created:
4 years, 3 months ago by Lei Zhang
Modified:
4 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org, extensions-reviews_chromium.org, marja
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove EmptyRuleIterators with nullptrs. Check for nullptrs and avoid adding them to vectors. Committed: https://crrev.com/9edb4f54d7ac549e7e2a83273a8e75caa223d051 Cr-Commit-Position: refs/heads/master@{#417455}

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase #

Patch Set 3 : Address comments. #

Patch Set 4 : Fix failing unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -119 lines) Patch
M chrome/browser/content_settings/content_settings_origin_identifier_value_map_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/content_settings_policy_provider_unittest.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/content_settings/content_settings_pref_provider_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/content_settings/content_settings_store.cc View 1 2 4 chunks +34 lines, -25 lines 0 comments Download
M chrome/browser/extensions/api/content_settings/content_settings_store_unittest.cc View 1 2 3 5 chunks +20 lines, -19 lines 0 comments Download
M components/content_settings/core/browser/content_settings_binary_value_map.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/content_settings/core/browser/content_settings_binary_value_map.cc View 3 chunks +7 lines, -11 lines 0 comments Download
M components/content_settings/core/browser/content_settings_default_provider.cc View 1 2 3 chunks +12 lines, -11 lines 0 comments Download
M components/content_settings/core/browser/content_settings_origin_identifier_value_map.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/content_settings/core/browser/content_settings_origin_identifier_value_map.cc View 3 chunks +10 lines, -12 lines 0 comments Download
M components/content_settings/core/browser/content_settings_pref.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/content_settings/core/browser/content_settings_provider.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/content_settings/core/browser/content_settings_rule.h View 1 chunk +0 lines, -7 lines 0 comments Download
M components/content_settings/core/browser/content_settings_rule.cc View 3 chunks +5 lines, -13 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.cc View 1 3 chunks +22 lines, -15 lines 0 comments Download

Messages

Total messages: 21 (14 generated)
Lei Zhang
From running a debug build with some logging and using the browser casually, I see ...
4 years, 3 months ago (2016-09-07 18:37:30 UTC) #7
Lei Zhang
On 2016/09/07 18:37:30, Lei Zhang wrote: > See https://goto.google.com/cwpperf3 for the callgraph. And for those ...
4 years, 3 months ago (2016-09-07 18:49:32 UTC) #8
Bernhard Bauer
Neat! LGTM, but could we add a comment to methods that return unique_ptr<RuleIterator> that nullptr ...
4 years, 3 months ago (2016-09-08 09:30:31 UTC) #9
Lei Zhang
https://codereview.chromium.org/2318223002/diff/1/chrome/browser/extensions/api/content_settings/content_settings_store.cc File chrome/browser/extensions/api/content_settings/content_settings_store.cc (right): https://codereview.chromium.org/2318223002/diff/1/chrome/browser/extensions/api/content_settings/content_settings_store.cc#newcode93 chrome/browser/extensions/api/content_settings/content_settings_store.cc:93: new ConcatenationIterator(std::move(iterators), auto_lock.release())); On 2016/09/08 09:30:31, Bernhard Bauer wrote: ...
4 years, 3 months ago (2016-09-08 21:04:30 UTC) #12
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/2318223002/60001
4 years, 3 months ago (2016-09-08 22:54:18 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-09 00:39:54 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 00:42:09 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9edb4f54d7ac549e7e2a83273a8e75caa223d051
Cr-Commit-Position: refs/heads/master@{#417455}

Powered by Google App Engine
This is Rietveld 408576698