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

Issue 10692158: Refactor URLBlacklistManager to use URLMatcher. (Closed)

Created:
8 years, 5 months ago by Bernhard Bauer
Modified:
8 years, 1 month ago
CC:
chromium-reviews, Aaron Boodman, cbentzel+watch_chromium.org, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org, battre
Visibility:
Public.

Description

Refactor URLBlacklistManager to use URLMatcher. BUG=134417 TEST=a bunch of unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147005

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : compile fix? #

Patch Set 4 : compile fix? #

Patch Set 5 : fix #

Patch Set 6 : fix #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Total comments: 40

Patch Set 11 : joao & dominic #

Patch Set 12 : fix #

Patch Set 13 : review #

Total comments: 2

Patch Set 14 : joao #

Unified diffs Side-by-side diffs Delta from patch set Stats (+421 lines, -373 lines) Patch
M chrome/browser/policy/url_blacklist_manager.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +48 lines, -31 lines 0 comments Download
M chrome/browser/policy/url_blacklist_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +181 lines, -225 lines 0 comments Download
M chrome/browser/policy/url_blacklist_manager_unittest.cc View 1 2 3 4 5 6 18 chunks +126 lines, -115 lines 0 comments Download
M chrome/common/extensions/matcher/url_matcher.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/matcher/url_matcher.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/common/extensions/matcher/url_matcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +51 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Bernhard Bauer
Hello Joao and Mattias, could you take a look at this CL? It refactors policy::URLBlacklist ...
8 years, 5 months ago (2012-07-12 17:43:24 UTC) #1
Joao da Silva
Nice refactoring of the URLBlacklist. I'm mostly cool with all of the changes; can you ...
8 years, 5 months ago (2012-07-13 12:32:11 UTC) #2
Joao da Silva
http://codereview.chromium.org/10692158/diff/12021/chrome/common/extensions/matcher/url_matcher.cc File chrome/common/extensions/matcher/url_matcher.cc (right): http://codereview.chromium.org/10692158/diff/12021/chrome/common/extensions/matcher/url_matcher.cc#newcode262 chrome/common/extensions/matcher/url_matcher.cc:262: return CreateCondition(URLMatcherCondition::HOST_SUFFIX, suffix + kEndOfPath); Hmm PATH_SUFFIX? If you ...
8 years, 5 months ago (2012-07-13 12:43:13 UTC) #3
battre
Great to see that the URLMatcher works well for this usecase. I have just a ...
8 years, 5 months ago (2012-07-13 14:10:53 UTC) #4
Bernhard Bauer
Thanks for the reviews! http://codereview.chromium.org/10692158/diff/12021/chrome/browser/managed_mode.cc File chrome/browser/managed_mode.cc (right): http://codereview.chromium.org/10692158/diff/12021/chrome/browser/managed_mode.cc#newcode21 chrome/browser/managed_mode.cc:21: #include "content/public/browser/browser_thread.h" On 2012/07/13 12:32:11, ...
8 years, 5 months ago (2012-07-13 14:21:07 UTC) #5
battre
http://codereview.chromium.org/10692158/diff/12021/chrome/common/extensions/matcher/url_matcher.cc File chrome/common/extensions/matcher/url_matcher.cc (right): http://codereview.chromium.org/10692158/diff/12021/chrome/common/extensions/matcher/url_matcher.cc#newcode262 chrome/common/extensions/matcher/url_matcher.cc:262: return CreateCondition(URLMatcherCondition::HOST_SUFFIX, suffix + kEndOfPath); On 2012/07/13 14:21:07, Bernhard ...
8 years, 5 months ago (2012-07-13 15:28:54 UTC) #6
Joao da Silva
http://codereview.chromium.org/10692158/diff/12021/chrome/common/extensions/matcher/url_matcher.cc File chrome/common/extensions/matcher/url_matcher.cc (right): http://codereview.chromium.org/10692158/diff/12021/chrome/common/extensions/matcher/url_matcher.cc#newcode262 chrome/common/extensions/matcher/url_matcher.cc:262: return CreateCondition(URLMatcherCondition::HOST_SUFFIX, suffix + kEndOfPath); On 2012/07/13 15:28:54, battre ...
8 years, 5 months ago (2012-07-13 15:37:12 UTC) #7
Bernhard Bauer
http://codereview.chromium.org/10692158/diff/12021/chrome/common/extensions/matcher/url_matcher.cc File chrome/common/extensions/matcher/url_matcher.cc (right): http://codereview.chromium.org/10692158/diff/12021/chrome/common/extensions/matcher/url_matcher.cc#newcode262 chrome/common/extensions/matcher/url_matcher.cc:262: return CreateCondition(URLMatcherCondition::HOST_SUFFIX, suffix + kEndOfPath); On 2012/07/13 15:37:12, Joao ...
8 years, 5 months ago (2012-07-13 16:40:39 UTC) #8
battre
http://codereview.chromium.org/10692158/diff/12021/chrome/common/extensions/matcher/url_matcher.cc File chrome/common/extensions/matcher/url_matcher.cc (right): http://codereview.chromium.org/10692158/diff/12021/chrome/common/extensions/matcher/url_matcher.cc#newcode262 chrome/common/extensions/matcher/url_matcher.cc:262: return CreateCondition(URLMatcherCondition::HOST_SUFFIX, suffix + kEndOfPath); On 2012/07/13 15:37:12, Joao ...
8 years, 5 months ago (2012-07-16 09:17:00 UTC) #9
Joao da Silva
On Mon, Jul 16, 2012 at 11:17 AM, <battre@chromium.org> wrote: > > http://codereview.chromium.**org/10692158/diff/12021/** > chrome/common/extensions/**matcher/url_matcher.cc<http://codereview.chromium.org/10692158/diff/12021/chrome/common/extensions/matcher/url_matcher.cc> ...
8 years, 5 months ago (2012-07-16 09:19:56 UTC) #10
Bernhard Bauer
On 2012/07/16 09:19:56, Joao da Silva wrote: > On Mon, Jul 16, 2012 at 11:17 ...
8 years, 5 months ago (2012-07-16 10:55:48 UTC) #11
Joao da Silva
lgtm https://chromiumcodereview.appspot.com/10692158/diff/20001/chrome/browser/policy/url_blacklist_manager.cc File chrome/browser/policy/url_blacklist_manager.cc (right): https://chromiumcodereview.appspot.com/10692158/diff/20001/chrome/browser/policy/url_blacklist_manager.cc#newcode262 chrome/browser/policy/url_blacklist_manager.cc:262: return true; Suggestion: if (host_length != other_host_length) return ...
8 years, 5 months ago (2012-07-16 11:26:43 UTC) #12
Bernhard Bauer
https://chromiumcodereview.appspot.com/10692158/diff/20001/chrome/browser/policy/url_blacklist_manager.cc File chrome/browser/policy/url_blacklist_manager.cc (right): https://chromiumcodereview.appspot.com/10692158/diff/20001/chrome/browser/policy/url_blacklist_manager.cc#newcode262 chrome/browser/policy/url_blacklist_manager.cc:262: return true; On 2012/07/16 11:26:43, Joao da Silva wrote: ...
8 years, 5 months ago (2012-07-16 11:31:58 UTC) #13
Bernhard Bauer
Dominic, do the URLMatcher changes LGTY?
8 years, 5 months ago (2012-07-17 11:18:10 UTC) #14
battre
LGTM @ URLMatcher changes. Thanks!
8 years, 5 months ago (2012-07-17 14:34:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bauerb@chromium.org/10692158/21008
8 years, 5 months ago (2012-07-17 14:36:58 UTC) #16
commit-bot: I haz the power
8 years, 5 months ago (2012-07-17 15:54:50 UTC) #17
Change committed as 147005

Powered by Google App Engine
This is Rietveld 408576698