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

Issue 371063: Integrate BlacklistManager with Profile. (Closed)

Created:
11 years, 1 month ago by Paweł Hajdan Jr.
Modified:
7 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Integrate BlacklistManager with Profile. Now each Profile has a BlacklistManager that maintains a compiled Blacklist for that Profile. The system does not yet pause user-initiated web requests until the blacklist system is ready. However, the code is not supposed to be ready, and is hidden behind a --enable-privacy-blacklists command-line flag. TEST=Covered by browser_test. BUG=21541 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33290

Patch Set 1 #

Total comments: 13

Patch Set 2 : so many fixes #

Patch Set 3 : hide behind a flag #

Total comments: 7

Patch Set 4 : updated #

Patch Set 5 : sync with trunk #

Total comments: 4

Patch Set 6 : updates #

Patch Set 7 : dummy extension manifest #

Patch Set 8 : re-upload after HTTP 500 #

Patch Set 9 : trybot fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -229 lines) Patch
M chrome/browser/automation/automation_profile_impl.cc View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extensions_service.h View 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.h View 1 5 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 1 2 3 4 8 chunks +18 lines, -10 lines 0 comments Download
M chrome/browser/privacy_blacklist/blacklist_manager.h View 2 3 4 5 4 chunks +24 lines, -12 lines 0 comments Download
M chrome/browser/privacy_blacklist/blacklist_manager.cc View 2 3 4 5 7 chunks +73 lines, -47 lines 0 comments Download
M chrome/browser/privacy_blacklist/blacklist_manager_browsertest.cc View 1 2 3 3 chunks +56 lines, -46 lines 0 comments Download
M chrome/browser/privacy_blacklist/blacklist_manager_unittest.cc View 2 3 4 5 6 7 8 11 chunks +39 lines, -13 lines 0 comments Download
M chrome/browser/privacy_blacklist/blacklist_observer.h View 1 1 chunk +0 lines, -16 lines 0 comments Download
A chrome/browser/privacy_blacklist/blacklist_ui.h View 1 chunk +18 lines, -0 lines 0 comments Download
A + chrome/browser/privacy_blacklist/blacklist_ui.cc View 4 chunks +26 lines, -21 lines 0 comments Download
M chrome/browser/profile.h View 1 2 3 4 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/profile.cc View 1 2 3 4 5 6 7 8 6 chunks +16 lines, -23 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -8 lines 0 comments Download
M chrome/chrome.gyp View 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/common/notification_type.h View 1 2 3 4 1 chunk +9 lines, -6 lines 0 comments Download
M chrome/test/data/extensions/common/privacy_blacklist/privacy_blacklist.pbl View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/testing_profile.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
Paweł Hajdan Jr.
11 years, 1 month ago (2009-11-09 12:45:45 UTC) #1
Erik does not do reviews
http://codereview.chromium.org/371063/diff/1/4 File chrome/browser/net/chrome_url_request_context.cc (left): http://codereview.chromium.org/371063/diff/1/4#oldcode813 Line 813: // TODO(eroman): this doesn't look safe; sharing between ...
11 years, 1 month ago (2009-11-09 18:40:01 UTC) #2
eroman
General: I don't understand the threading model, this seems racy. BlacklistManager defines itself as NonThreadSafe, ...
11 years, 1 month ago (2009-11-09 19:43:09 UTC) #3
Aaron Boodman
I'm going to defer to Erik on this review.
11 years, 1 month ago (2009-11-10 19:49:50 UTC) #4
Aaron Boodman
I'm going to defer to Erik on this review. http://codereview.chromium.org/371063
11 years, 1 month ago (2009-11-10 19:50:07 UTC) #5
Paweł Hajdan Jr.
+brettw, could you take a look at my changes in Profile? Should I keep the ...
11 years, 1 month ago (2009-11-17 12:42:50 UTC) #6
Erik does not do reviews
On Tue, Nov 17, 2009 at 4:42 AM, <phajdan.jr@chromium.org> wrote: > +brettw, could you take ...
11 years, 1 month ago (2009-11-17 16:38:52 UTC) #7
brettw
On 2009/11/17 12:42:50, Paweł Hajdan Jr. wrote: > +brettw, could you take a look at ...
11 years, 1 month ago (2009-11-17 17:06:53 UTC) #8
Paweł Hajdan Jr.
On 2009/11/17 16:38:52, Erik Kay wrote: > I don't think this is acceptable. If the ...
11 years, 1 month ago (2009-11-18 13:58:07 UTC) #9
Paweł Hajdan Jr.
ping!
11 years, 1 month ago (2009-11-19 16:43:05 UTC) #10
Erik does not do reviews
I'm looking at it now On Thu, Nov 19, 2009 at 8:43 AM, <phajdan.jr@chromium.org> wrote: ...
11 years, 1 month ago (2009-11-19 17:50:52 UTC) #11
Erik does not do reviews
http://codereview.chromium.org/371063/diff/16001/16006 File chrome/browser/privacy_blacklist/blacklist_manager.h (right): http://codereview.chromium.org/371063/diff/16001/16006#newcode39 Line 39: BlacklistManager(Profile* profile, BlacklistPathProvider* path_provider); Can there ever be ...
11 years, 1 month ago (2009-11-19 17:57:12 UTC) #12
Paweł Hajdan Jr.
erikkay: Please review. eroman, jam: Mostly FYI. My plan is to change RDH, UserScriptListener and ...
11 years, 1 month ago (2009-11-23 19:47:29 UTC) #13
Paweł Hajdan Jr.
ping!
11 years, 1 month ago (2009-11-24 17:14:22 UTC) #14
Erik does not do reviews
Apologies again, but I wasn't able to get to this today. I'll look first thing ...
11 years, 1 month ago (2009-11-25 01:28:39 UTC) #15
Erik does not do reviews
http://codereview.chromium.org/371063/diff/21001/22006 File chrome/browser/privacy_blacklist/blacklist_manager.cc (right): http://codereview.chromium.org/371063/diff/21001/22006#newcode64 chrome/browser/privacy_blacklist/blacklist_manager.cc:64: CompileBlacklist(); Doesn't this mean that for each and every ...
11 years ago (2009-11-25 16:58:13 UTC) #16
Paweł Hajdan Jr.
Please take a look at the updated patch (if things seem clear now etc). I ...
11 years ago (2009-11-25 18:00:53 UTC) #17
Erik does not do reviews
LGTM - much more clear, thanks!
11 years ago (2009-11-25 18:09:43 UTC) #18
Paweł Hajdan Jr.
Unfortunately, the unit_tests stopped passing because of the added check that the Extension contains at ...
11 years ago (2009-11-25 21:46:01 UTC) #19
Erik does not do reviews
Sorry, I think I'm missing something. Which test is failing? Which check is causing the ...
11 years ago (2009-11-25 22:06:23 UTC) #20
Paweł Hajdan Jr.
On Wed, Nov 25, 2009 at 23:06, Erik Kay <erikkay@chromium.org> wrote: > Sorry, I think ...
11 years ago (2009-11-26 07:58:48 UTC) #21
Paweł Hajdan Jr.
Please take a look at the updated patch.
11 years ago (2009-11-30 15:02:09 UTC) #22
Erik does not do reviews
The only change is the test, right? if so, LGTM
11 years ago (2009-11-30 15:05:33 UTC) #23
Paweł Hajdan Jr.
11 years ago (2009-11-30 16:18:46 UTC) #24
On 2009/11/30 15:05:33, Erik Kay wrote:
> The only change is the test, right?

Yes, just the test so the Extension declares its privacy blacklist.

> if so, LGTM

Thanks for reviewing this quickly. Landing (try servers passed).

Powered by Google App Engine
This is Rietveld 408576698