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

Issue 1159733004: Encapsulate CSS selector declarative content condition tracking (Closed)

Created:
5 years, 7 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@stars-declarative-content-range-for
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 steps 1 and 2 described in the associated bug: by-hand instantiation of DeclarativeRule as DeclarativeContentRule to decouple changes from the web request declarative API implementation, and encapsulation of CSS selector condition tracking logic. No functional change is intended. BUG=492946 Committed: https://crrev.com/fe76220cf0a1cdcfe74ca7daeae9f1da2b91cc6b Cr-Commit-Position: refs/heads/master@{#333144}

Patch Set 1 #

Patch Set 2 : clang error fixes #

Patch Set 3 : iwyu #

Total comments: 20

Patch Set 4 : rebase #

Patch Set 5 : multiple updates #

Total comments: 4

Patch Set 6 : only notify navigation for tracked WebContents, address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+737 lines, -159 lines) Patch
M chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.h View 1 2 3 4 5 7 chunks +38 lines, -31 lines 0 comments Download
M chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc View 1 2 3 4 5 12 chunks +69 lines, -69 lines 0 comments Download
M chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry_unittest.cc View 1 2 3 4 5 3 chunks +30 lines, -38 lines 0 comments Download
M chrome/browser/extensions/api/declarative_content/content_action.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/declarative_content/content_condition.h View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
A chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.h View 1 2 3 4 5 1 chunk +137 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.cc View 1 2 3 4 5 1 chunk +254 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker_unittest.cc View 1 2 3 4 5 1 chunk +199 lines, -0 lines 0 comments Download
M chrome/browser/extensions/tab_helper.h View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/declarative_content/content_rules_registry.h View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
Mike Wittman
Hi Ben, I'm pausing work on the isBookmarked declarativeContent implementation to refactor ChromeContentRulesRegistry to use ...
5 years, 7 months ago (2015-05-28 01:17:33 UTC) #2
not at google - send to devlin
Awesome. Fantastic to see this happening. I'm happy to review this and will get to ...
5 years, 6 months ago (2015-05-28 16:05:45 UTC) #4
not at google - send to devlin
Ok, that sure is a lot to get through, here is my first pass. Comments ...
5 years, 6 months ago (2015-06-01 22:51:12 UTC) #5
Mike Wittman
Multiple updates here: - revert the DeclarativeRule => DeclarativeContentRule manual template instantiation since we're not ...
5 years, 6 months ago (2015-06-05 01:17:45 UTC) #6
not at google - send to devlin
lgtm https://codereview.chromium.org/1159733004/diff/40001/chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.cc File chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.cc (right): https://codereview.chromium.org/1159733004/diff/40001/chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.cc#newcode89 chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.cc:89: void DeclarativeContentCssConditionTracker::OnWebContentsNavigation( On 2015/06/05 01:17:44, Mike Wittman wrote: ...
5 years, 6 months ago (2015-06-05 17:16:30 UTC) #7
Mike Wittman
One more patch to addresses the previous comments, and fix test failures due to the ...
5 years, 6 months ago (2015-06-05 21:00:46 UTC) #10
not at google - send to devlin
still looks fine https://codereview.chromium.org/1159733004/diff/40001/chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.cc File chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.cc (right): https://codereview.chromium.org/1159733004/diff/40001/chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.cc#newcode89 chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.cc:89: void DeclarativeContentCssConditionTracker::OnWebContentsNavigation( On 2015/06/05 21:00:46, Mike ...
5 years, 6 months ago (2015-06-05 21:15:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1159733004/140001
5 years, 6 months ago (2015-06-05 21:17:26 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:140001)
5 years, 6 months ago (2015-06-05 21:51:45 UTC) #15
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/fe76220cf0a1cdcfe74ca7daeae9f1da2b91cc6b Cr-Commit-Position: refs/heads/master@{#333144}
5 years, 6 months ago (2015-06-05 21:52:50 UTC) #16
dominicc (has gone to gerrit)
5 years, 6 months ago (2015-06-08 04:14:49 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:140001) has been created in
https://codereview.chromium.org/1159623014/ by dominicc@chromium.org.

The reason for reverting is: Stability sheriff here; I'm speculatively rolling
this out because I suspect it caused Issue 497586..

Powered by Google App Engine
This is Rietveld 408576698