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

Issue 523137: Also match against the query string if present. (Closed)

Created:
10 years, 11 months ago by jochen (gone - plz use gerrit)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, ben+cc_chromium.org, brettw+cc_chromium.org, darin (slow to review), jam
Visibility:
Public.

Description

Also match against the query string if present. BUG=none TEST=BlacklistTest.QueryStringMatch Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=36013

Patch Set 1 #

Total comments: 8

Patch Set 2 : Merge BlacklistTest.QueryStringMatch with BlacklistTest.Generic #

Patch Set 3 : remove unused variable. #

Patch Set 4 : move url stuff to extra function and rename findmatch #

Total comments: 8

Patch Set 5 : updates #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -27 lines) Patch
M chrome/browser/net/chrome_url_request_context.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/privacy_blacklist/blacklist.h View 4 2 chunks +6 lines, -3 lines 2 comments Download
M chrome/browser/privacy_blacklist/blacklist.cc View 1 2 3 4 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/privacy_blacklist/blacklist_interceptor.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/privacy_blacklist/blacklist_io_unittest.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/privacy_blacklist/blacklist_manager_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/privacy_blacklist/blacklist_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/privacy_blacklist/blacklist_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/privacy_blacklist/blacklist_unittest.cc View 1 2 3 4 8 chunks +78 lines, -11 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/blacklist_small.pbl View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/data/blacklist_small.pbr View 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Paweł Hajdan Jr.
http://codereview.chromium.org/523137/diff/1/2 File chrome/browser/privacy_blacklist/blacklist.cc (right): http://codereview.chromium.org/523137/diff/1/2#newcode191 chrome/browser/privacy_blacklist/blacklist.cc:191: if (Matches((*i)->pattern(), url_spec)) { Can we just make it ...
10 years, 11 months ago (2010-01-08 09:22:23 UTC) #1
jochen (gone - plz use gerrit)
I've merged the unit test. This required changing sample test data and adopting the BlacklistIO ...
10 years, 11 months ago (2010-01-08 10:35:28 UTC) #2
Paweł Hajdan Jr.
+brettw for comments about how to use GURL the best way here Brett, could you ...
10 years, 11 months ago (2010-01-08 10:47:41 UTC) #3
jochen (gone - plz use gerrit)
There was an unused variable "input2" in BlacklistTest.Generic which I removed. Rest unchanged. On 2010/01/08 ...
10 years, 11 months ago (2010-01-08 12:42:37 UTC) #4
brettw
http://codereview.chromium.org/523137/diff/1/2 File chrome/browser/privacy_blacklist/blacklist.cc (right): http://codereview.chromium.org/523137/diff/1/2#newcode177 chrome/browser/privacy_blacklist/blacklist.cc:177: Blacklist::Match* Blacklist::findMatch(const GURL& url) const { Can you fix ...
10 years, 11 months ago (2010-01-08 17:42:57 UTC) #5
jochen (gone - plz use gerrit)
I've renamed the findMatch function and moved the GURL to string conversion to a separate ...
10 years, 11 months ago (2010-01-11 10:21:49 UTC) #6
Paweł Hajdan Jr.
Minor things. Also, please either update the .pbr file, or remove it from the repo. ...
10 years, 11 months ago (2010-01-11 10:28:32 UTC) #7
jochen (gone - plz use gerrit)
what do you mean by update the .pbr? It should reflect the changes to the ...
10 years, 11 months ago (2010-01-11 10:46:38 UTC) #8
Paweł Hajdan Jr.
LGTM On 2010/01/11 10:46:38, Jochen Eisinger wrote: > what do you mean by update the ...
10 years, 11 months ago (2010-01-11 10:54:18 UTC) #9
brettw
LGTM, sorry I missed the reply. http://codereview.chromium.org/523137/diff/12001/12004 File chrome/browser/privacy_blacklist/blacklist.h (right): http://codereview.chromium.org/523137/diff/12001/12004#newcode186 chrome/browser/privacy_blacklist/blacklist.h:186: static std::string GetURLAsString(const ...
10 years, 11 months ago (2010-01-12 15:53:51 UTC) #10
jochen (gone - plz use gerrit)
10 years, 11 months ago (2010-01-12 16:30:19 UTC) #11
http://codereview.chromium.org/523137/diff/12001/12004
File chrome/browser/privacy_blacklist/blacklist.h (right):

http://codereview.chromium.org/523137/diff/12001/12004#newcode186
chrome/browser/privacy_blacklist/blacklist.h:186: static std::string
GetURLAsString(const GURL& url);
On 2010/01/12 15:53:51, brettw wrote:
> I'd suggest a name a little more specific. The problem with this name is that
it
> seems like it just converts the URL to a string, which it doesn't. It's
specific
> to this component.
> 
> Maybe GetURLAsLookupString or maybe ...BlacklistString

Done.

Powered by Google App Engine
This is Rietveld 408576698