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

Issue 1166393002: Reland "Encapsulate CSS selector declarative content condition tracking" (Closed)

Created:
5 years, 6 months ago by Mike Wittman
Modified:
5 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkcr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland "Encapsulate CSS selector declarative content condition tracking" This is the first step in a refactoring of the declarativeContent API implementation. The goal is to facilitate profile state matching by providing abstractions for conditions and condition state tracking and evaluation. This CL consists of step 2 described in the associated bug: encapsulation of CSS selector condition tracking logic. No functional change is intended. Originally committed at https://crrev.com/fe76220cf0a1cdcfe74ca7daeae9f1da2b91cc6b and reverted at https://crrev.com/4fcf9f62d9099af2e55186d9c423e2ded4fdca0d due to crashes. BUG=492946, 497586 Committed: https://crrev.com/2b0e40655fff162c0fe5752623ceab5ddd79d807 Cr-Commit-Position: refs/heads/master@{#333627}

Patch Set 1 : original change #

Patch Set 2 : crash fixes and tests #

Total comments: 7

Patch Set 3 : rebase #

Patch Set 4 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+747 lines, -230 lines) Patch
M chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.h View 1 6 chunks +34 lines, -41 lines 0 comments Download
M chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc View 1 10 chunks +42 lines, -80 lines 0 comments Download
M chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry_unittest.cc View 1 3 chunks +21 lines, -38 lines 0 comments Download
M chrome/browser/extensions/api/declarative_content/content_action.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/declarative_content/content_condition.h View 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/declarative_content/declarative_content_apitest.cc View 1 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.h View 1 1 chunk +172 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.cc View 1 1 chunk +208 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker_unittest.cc View 1 1 chunk +189 lines, -0 lines 0 comments Download
M chrome/browser/extensions/tab_helper.h View 1 2 3 6 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 1 2 3 10 chunks +40 lines, -50 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/declarative_content/content_rules_registry.h View 1 3 chunks +9 lines, -12 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Mike Wittman
Hi Ben, please take (yet) another look at these changes. To fix two crashes seen ...
5 years, 6 months ago (2015-06-09 02:37:36 UTC) #2
not at google - send to devlin
lgtm https://codereview.chromium.org/1166393002/diff/20001/chrome/browser/extensions/tab_helper.cc File chrome/browser/extensions/tab_helper.cc (right): https://codereview.chromium.org/1166393002/diff/20001/chrome/browser/extensions/tab_helper.cc#newcode81 chrome/browser/extensions/tab_helper.cc:81: void TabHelper::InvokeForContentRulesRegistries(const Func& func) { Usually methods are ...
5 years, 6 months ago (2015-06-09 20:38:11 UTC) #3
Mike Wittman
https://codereview.chromium.org/1166393002/diff/20001/chrome/browser/extensions/tab_helper.cc File chrome/browser/extensions/tab_helper.cc (right): https://codereview.chromium.org/1166393002/diff/20001/chrome/browser/extensions/tab_helper.cc#newcode81 chrome/browser/extensions/tab_helper.cc:81: void TabHelper::InvokeForContentRulesRegistries(const Func& func) { On 2015/06/09 20:38:11, kalman ...
5 years, 6 months ago (2015-06-09 22:05:57 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1166393002/60001
5 years, 6 months ago (2015-06-09 22:09:45 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 6 months ago (2015-06-10 00:53:16 UTC) #8
commit-bot: I haz the power
5 years, 6 months ago (2015-06-10 00:53:55 UTC) #9
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2b0e40655fff162c0fe5752623ceab5ddd79d807
Cr-Commit-Position: refs/heads/master@{#333627}

Powered by Google App Engine
This is Rietveld 408576698