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

Issue 1692503002: Functionality to allow blacklist and whitelist of custom schemes (Closed)

Created:
4 years, 10 months ago by igorcov
Modified:
4 years, 7 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, loading-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Functionality to allow blacklist and whitelist of custom schemes. These changes will allow admins to define custom schemes as part of URLBlacklist and URLWhitelist policies. Only the formats scheme://* and scheme:* are accepted. The URLs of other formats containing custom schemes will be considered invalid and ignored. In case a custom scheme is defined in whitelist, all the URLs for that scheme will proceed to be launched without asking the user. In case a custom scheme is defined in blacklist, all the URLs with that scheme will have the same behavior as standard blacklisted URLs. Most important changes done: url_blacklist_manager.h - New enum URLBlacklistState added, to identify if the URL is in blacklist, whitelist or none. It is used to separate behavior of custom scheme URLs, so that: - if URL is whitelisted it will be launched without any warning/notification. - if URL is blacklisted it will redirect user to blocked page information. - if URL is not matched with any schemes from above, the old behavior is preserved meaning the user is asked if he wants to launch the URL. resource_dispatcher_host_impl.cc - Pass the ResourceContext as additional parameter to ResourceDispatcherHostDelegate when handling external protocol. resource_dispatcher_host_delegate.cc - uses PorfileIOData based on ResourceContext to detect if URL is blacklisted or whitelisted. url_blacklist_manager.cc - Implement the new method to retrieve the URL state, and add code to allow the custom schemes in filter definitions. BUG=158436 Committed: https://crrev.com/eccb40b717c49c968a87f91fba9b23c21f4f9a3e Cr-Commit-Position: refs/heads/master@{#395305}

Patch Set 1 #

Patch Set 2 : Initial implementation done #

Patch Set 3 : Cleaned the code #

Patch Set 4 : Implementation of schema only supported version #

Patch Set 5 : Removed unused comments #

Total comments: 44

Patch Set 6 : Fixed review comments #

Patch Set 7 : Another variable set as const #

Total comments: 17

Patch Set 8 : Fixed review comments #

Total comments: 3

Patch Set 9 : Implemented suggestions from Thiemo. #

Patch Set 10 : Patterns for standard schemes are case-insensitive now #

Patch Set 11 : Merged with changes from other CLs #

Patch Set 12 : Added tests that cover basic documentation for url blacklist #

Patch Set 13 : Fixed comments and method name #

Total comments: 36

Patch Set 14 : Fixed the latest review comments #

Total comments: 14

Patch Set 15 : Fixed review comments #

Total comments: 9

Patch Set 16 : Fixed review comments #

Patch Set 17 : Fixed windows file path #

Patch Set 18 : Included test with new scheme format #

Total comments: 19

Patch Set 19 : Fixed compile errors and latest review comments #

Patch Set 20 : Replaced expect_eq(bool, bool) with expect_true/false(bool) #

Patch Set 21 : Fixed file pattern issue #

Total comments: 14

Patch Set 22 : Fixed review comments #

Patch Set 23 : Fixed review comments #

Total comments: 8

Patch Set 24 : Fixed review comments #

Patch Set 25 : Fixed review comments #

Total comments: 2

Patch Set 26 : Fixed review comments #

Patch Set 27 : Fixed review comments and merged #

Total comments: 6

Patch Set 28 : Fixed review comments. #

Total comments: 2

Patch Set 29 : Fixed review comments #

Patch Set 30 : Improved doc #

Total comments: 2

Patch Set 31 : Removed redundant comments #

Total comments: 9

Patch Set 32 : Fixed review comments #

Patch Set 33 : Fixed review comments #

Total comments: 1

Patch Set 34 : Changed code so that net package is not involved #

Patch Set 35 : Fixed the comments and imports #

Patch Set 36 : Identation fixed. #

Patch Set 37 : Fixed variable name #

Patch Set 38 : Indentation fixed #

Patch Set 39 : Indentation fixed #

Total comments: 6

Patch Set 40 : Fixed review comments #

Total comments: 4

Patch Set 41 : Fixed review comments #

Patch Set 42 : Fixed compile problem #

Patch Set 43 : Fixed compile errors #

Patch Set 44 : Fixed compile error #

Patch Set 45 : Fixed compile error #

Patch Set 46 : Fixed compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+375 lines, -127 lines) Patch
M android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 2 chunks +4 lines, -1 line 0 comments Download
M android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 4 chunks +29 lines, -6 lines 0 comments Download
M components/policy/core/browser/url_blacklist_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 4 chunks +16 lines, -1 line 0 comments Download
M components/policy/core/browser/url_blacklist_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 9 chunks +58 lines, -16 lines 0 comments Download
M components/policy/core/browser/url_blacklist_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 17 chunks +245 lines, -90 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 2 chunks +2 lines, -8 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +2 lines, -1 line 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +2 lines, -1 line 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 99 (30 generated)
igorcov
Please review changes made to allow admins to blacklist/whitelist custom schemes.
4 years, 9 months ago (2016-03-08 15:30:25 UTC) #3
Thiemo Nagel
Please make the CL description more clear concerning * what you are trying to do ...
4 years, 9 months ago (2016-03-08 16:38:59 UTC) #6
Thiemo Nagel
Please repeat the CL title ("Functionality to allow blacklist and whitelist of custom schemes") as ...
4 years, 9 months ago (2016-03-08 17:08:22 UTC) #8
Thiemo Nagel
https://codereview.chromium.org/1692503002/diff/80001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/1692503002/diff/80001/chrome/browser/net/chrome_network_delegate.cc#newcode763 chrome/browser/net/chrome_network_delegate.cc:763: net::NetworkDelegate::URLBlacklistState Please wrap in #if defined(ENABLE_CONFIGURATION_POLICY) ... #endif. https://codereview.chromium.org/1692503002/diff/80001/chrome/browser/net/chrome_network_delegate.cc#newcode764 ...
4 years, 9 months ago (2016-03-08 18:44:35 UTC) #11
igorcov
Fixed comments from Thiemo. https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc#newcode300 components/policy/core/browser/url_blacklist_manager.cc:300: if (!url_scheme.empty() && !parsed.host.is_nonempty() && ...
4 years, 9 months ago (2016-03-09 15:21:06 UTC) #13
bartfab (slow)
https://codereview.chromium.org/1692503002/diff/120001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/1692503002/diff/120001/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode242 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc:242: // without any additional security checks. Since the URL ...
4 years, 9 months ago (2016-03-10 13:49:42 UTC) #14
Thiemo Nagel
https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc#newcode300 components/policy/core/browser/url_blacklist_manager.cc:300: if (!url_scheme.empty() && !parsed.host.is_nonempty() && > We want our ...
4 years, 9 months ago (2016-03-10 14:37:26 UTC) #15
bartfab (slow)
https://codereview.chromium.org/1692503002/diff/120001/net/url_request/url_request.h File net/url_request/url_request.h (right): https://codereview.chromium.org/1692503002/diff/120001/net/url_request/url_request.h#newcode632 net/url_request/url_request.h:632: NetworkDelegate* network_delegate() const { return network_delegate_; } On 2016/03/10 ...
4 years, 9 months ago (2016-03-10 17:52:09 UTC) #16
igorcov1
https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc#newcode207 components/policy/core/browser/url_blacklist_manager.cc:207: bool URLBlacklist::IsURLBlocked(const GURL& url) const { On 2016/03/08 18:44:34, ...
4 years, 8 months ago (2016-04-12 07:01:46 UTC) #18
bartfab (slow)
LGTM if all of Thiemo's concerns have been addressed. https://codereview.chromium.org/1692503002/diff/140001/components/policy/core/browser/url_blacklist_manager.h File components/policy/core/browser/url_blacklist_manager.h (right): https://codereview.chromium.org/1692503002/diff/140001/components/policy/core/browser/url_blacklist_manager.h#newcode67 components/policy/core/browser/url_blacklist_manager.h:67: ...
4 years, 8 months ago (2016-04-12 11:28:01 UTC) #19
Thiemo Nagel
https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc#newcode300 components/policy/core/browser/url_blacklist_manager.cc:300: if (!url_scheme.empty() && !parsed.host.is_nonempty() && > The code already ...
4 years, 8 months ago (2016-04-12 13:35:47 UTC) #20
Thiemo Nagel
https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc#newcode304 components/policy/core/browser/url_blacklist_manager.cc:304: filter == url_scheme + "://*") { > It's case ...
4 years, 8 months ago (2016-04-12 14:43:05 UTC) #21
igorcov
https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc#newcode300 components/policy/core/browser/url_blacklist_manager.cc:300: if (!url_scheme.empty() && !parsed.host.is_nonempty() && On 2016/04/12 13:35:47, Thiemo ...
4 years, 8 months ago (2016-04-12 16:09:30 UTC) #22
Thiemo Nagel
https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc#newcode300 components/policy/core/browser/url_blacklist_manager.cc:300: if (!url_scheme.empty() && !parsed.host.is_nonempty() && > Move the code ...
4 years, 8 months ago (2016-04-12 17:20:57 UTC) #23
Thiemo Nagel
https://codereview.chromium.org/1692503002/diff/240001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/240001/components/policy/core/browser/url_blacklist_manager.cc#newcode279 components/policy/core/browser/url_blacklist_manager.cc:279: if (!url::IsStandard(url_scheme.c_str(), I think the IsStandard() condition should be ...
4 years, 8 months ago (2016-04-18 13:12:40 UTC) #24
bartfab (slow)
Still LGTM assuming Thiemo's comments are addressed. https://codereview.chromium.org/1692503002/diff/240001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (left): https://codereview.chromium.org/1692503002/diff/240001/components/policy/core/browser/url_blacklist_manager.cc#oldcode21 components/policy/core/browser/url_blacklist_manager.cc:21: #include "base/values.h" ...
4 years, 8 months ago (2016-04-18 13:27:42 UTC) #25
bartfab (slow)
Still LGTM assuming Thiemo's comments are addressed.
4 years, 8 months ago (2016-04-18 13:27:42 UTC) #26
bartfab (slow)
https://codereview.chromium.org/1692503002/diff/240001/components/policy/core/browser/url_blacklist_manager_unittest.cc File components/policy/core/browser/url_blacklist_manager_unittest.cc (right): https://codereview.chromium.org/1692503002/diff/240001/components/policy/core/browser/url_blacklist_manager_unittest.cc#newcode177 components/policy/core/browser/url_blacklist_manager_unittest.cc:177: void CheckBlacklistMatch(std::string pattern, std::string url, bool matches) { On ...
4 years, 8 months ago (2016-04-18 13:33:52 UTC) #27
igorcov
https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/80001/components/policy/core/browser/url_blacklist_manager.cc#newcode304 components/policy/core/browser/url_blacklist_manager.cc:304: filter == url_scheme + "://*") { On 2016/04/12 17:20:57, ...
4 years, 8 months ago (2016-04-18 15:16:36 UTC) #28
bartfab (slow)
https://codereview.chromium.org/1692503002/diff/260001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (left): https://codereview.chromium.org/1692503002/diff/260001/components/policy/core/browser/url_blacklist_manager.cc#oldcode21 components/policy/core/browser/url_blacklist_manager.cc:21: #include "base/values.h" Nit: This is still used. https://codereview.chromium.org/1692503002/diff/260001/components/policy/core/browser/url_blacklist_manager_unittest.cc File ...
4 years, 8 months ago (2016-04-18 15:26:30 UTC) #29
igorcov
https://codereview.chromium.org/1692503002/diff/260001/components/policy/core/browser/url_blacklist_manager_unittest.cc File components/policy/core/browser/url_blacklist_manager_unittest.cc (right): https://codereview.chromium.org/1692503002/diff/260001/components/policy/core/browser/url_blacklist_manager_unittest.cc#newcode58 components/policy/core/browser/url_blacklist_manager_unittest.cc:58: std::unique_ptr<base::ListValue> block(new base::ListValue); On 2016/04/18 15:26:30, bartfab (slow) wrote: ...
4 years, 8 months ago (2016-04-18 16:20:59 UTC) #30
bartfab (slow)
LGTM assuming Thiemo is OK.
4 years, 8 months ago (2016-04-19 11:19:46 UTC) #31
Thiemo Nagel
https://codereview.chromium.org/1692503002/diff/240001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/240001/components/policy/core/browser/url_blacklist_manager.cc#newcode283 components/policy/core/browser/url_blacklist_manager.cc:283: url_scheme + "://*")) { On 2016/04/18 15:16:36, igorcov wrote: ...
4 years, 8 months ago (2016-04-19 12:59:01 UTC) #32
igorcov
https://codereview.chromium.org/1692503002/diff/280001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/280001/components/policy/core/browser/url_blacklist_manager.cc#newcode279 components/policy/core/browser/url_blacklist_manager.cc:279: // Check if it's a scheme pattern. On 2016/04/19 ...
4 years, 8 months ago (2016-04-19 15:16:27 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1692503002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1692503002/340001
4 years, 8 months ago (2016-04-19 16:34:43 UTC) #35
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/52904)
4 years, 8 months ago (2016-04-19 16:49:14 UTC) #37
Thiemo Nagel
On 2016/04/19 16:34:43, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
4 years, 8 months ago (2016-04-19 17:12:00 UTC) #38
Thiemo Nagel
https://codereview.chromium.org/1692503002/diff/340001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/340001/components/policy/core/browser/url_blacklist_manager.cc#newcode256 components/policy/core/browser/url_blacklist_manager.cc:256: std::string* query) { Please add DCHECK()s to ensure that ...
4 years, 8 months ago (2016-04-19 18:18:31 UTC) #39
igorcov
PTAL https://codereview.chromium.org/1692503002/diff/340001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/340001/components/policy/core/browser/url_blacklist_manager.cc#newcode256 components/policy/core/browser/url_blacklist_manager.cc:256: std::string* query) { On 2016/04/19 18:18:31, Thiemo Nagel ...
4 years, 8 months ago (2016-04-20 13:30:36 UTC) #40
Thiemo Nagel
https://codereview.chromium.org/1692503002/diff/400001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/400001/components/policy/core/browser/url_blacklist_manager.cc#newcode249 components/policy/core/browser/url_blacklist_manager.cc:249: // All arguments are mandatory. Please move method documentation ...
4 years, 8 months ago (2016-04-20 15:28:10 UTC) #41
Thiemo Nagel
https://codereview.chromium.org/1692503002/diff/400001/components/policy/core/browser/url_blacklist_manager_unittest.cc File components/policy/core/browser/url_blacklist_manager_unittest.cc (right): https://codereview.chromium.org/1692503002/diff/400001/components/policy/core/browser/url_blacklist_manager_unittest.cc#newcode182 components/policy/core/browser/url_blacklist_manager_unittest.cc:182: blocked->Append(new base::StringValue(pattern)); BTW: std::WrapUnique seems to be the canonical ...
4 years, 8 months ago (2016-04-20 16:16:52 UTC) #42
igorcov
https://codereview.chromium.org/1692503002/diff/400001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/400001/components/policy/core/browser/url_blacklist_manager.cc#newcode249 components/policy/core/browser/url_blacklist_manager.cc:249: // All arguments are mandatory. On 2016/04/20 15:28:09, Thiemo ...
4 years, 8 months ago (2016-04-21 10:08:48 UTC) #43
Thiemo Nagel
https://codereview.chromium.org/1692503002/diff/440001/components/policy/core/browser/url_blacklist_manager_unittest.cc File components/policy/core/browser/url_blacklist_manager_unittest.cc (right): https://codereview.chromium.org/1692503002/diff/440001/components/policy/core/browser/url_blacklist_manager_unittest.cc#newcode197 components/policy/core/browser/url_blacklist_manager_unittest.cc:197: std::unique_ptr<base::Value> pattern_ptr(new base::StringValue(pattern)); pattern_ptr is unused. https://codereview.chromium.org/1692503002/diff/440001/components/policy/core/browser/url_blacklist_manager_unittest.cc#newcode200 components/policy/core/browser/url_blacklist_manager_unittest.cc:200: if(use_whitelist) ...
4 years, 8 months ago (2016-04-21 11:25:58 UTC) #44
igorcov
https://codereview.chromium.org/1692503002/diff/440001/components/policy/core/browser/url_blacklist_manager_unittest.cc File components/policy/core/browser/url_blacklist_manager_unittest.cc (right): https://codereview.chromium.org/1692503002/diff/440001/components/policy/core/browser/url_blacklist_manager_unittest.cc#newcode197 components/policy/core/browser/url_blacklist_manager_unittest.cc:197: std::unique_ptr<base::Value> pattern_ptr(new base::StringValue(pattern)); On 2016/04/21 11:25:58, Thiemo Nagel wrote: ...
4 years, 8 months ago (2016-04-21 12:51:41 UTC) #45
Thiemo Nagel
The changes don't apply to master. It seems that another rebase is needed. https://codereview.chromium.org/1692503002/diff/480001/components/policy/core/browser/url_blacklist_manager_unittest.cc File ...
4 years, 8 months ago (2016-04-21 13:15:10 UTC) #46
igorcov
https://codereview.chromium.org/1692503002/diff/480001/components/policy/core/browser/url_blacklist_manager_unittest.cc File components/policy/core/browser/url_blacklist_manager_unittest.cc (right): https://codereview.chromium.org/1692503002/diff/480001/components/policy/core/browser/url_blacklist_manager_unittest.cc#newcode803 components/policy/core/browser/url_blacklist_manager_unittest.cc:803: // Check schemes case insensitive scenarios. On 2016/04/21 13:15:09, ...
4 years, 8 months ago (2016-04-21 14:18:14 UTC) #47
Thiemo Nagel
> Only the format |scheme|://* will be accepted. We also accept scheme:* now. Also it ...
4 years, 8 months ago (2016-04-21 14:31:27 UTC) #48
Thiemo Nagel
https://codereview.chromium.org/1692503002/diff/520001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/520001/components/policy/core/browser/url_blacklist_manager.cc#newcode277 components/policy/core/browser/url_blacklist_manager.cc:277: *path = (lc_filter == "file://*") ? "" : file_path.AsUTF8Unsafe(); ...
4 years, 8 months ago (2016-04-21 14:45:10 UTC) #50
igorcov
https://codereview.chromium.org/1692503002/diff/520001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/520001/components/policy/core/browser/url_blacklist_manager.cc#newcode277 components/policy/core/browser/url_blacklist_manager.cc:277: *path = (lc_filter == "file://*") ? "" : file_path.AsUTF8Unsafe(); ...
4 years, 8 months ago (2016-04-21 16:01:34 UTC) #51
Thiemo Nagel
Please also update the documentation of URLBlacklist and URLWhitelist in policy_templates.json: Instead of describing the ...
4 years, 8 months ago (2016-04-21 16:49:30 UTC) #52
igorcov
Updated policy_templates.json too. PTAL. https://codereview.chromium.org/1692503002/diff/540001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/540001/components/policy/core/browser/url_blacklist_manager.cc#newcode277 components/policy/core/browser/url_blacklist_manager.cc:277: *path = (lc_filter == "file://*" ...
4 years, 8 months ago (2016-04-22 09:39:24 UTC) #53
bartfab (slow)
As usual, LGTM assuming Thiemo has no further concerns.
4 years, 8 months ago (2016-04-22 14:16:13 UTC) #54
Thiemo Nagel
https://codereview.chromium.org/1692503002/diff/580001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/1692503002/diff/580001/components/policy/resources/policy_templates.json#newcode4317 components/policy/resources/policy_templates.json:4317: Each URL pattern can either be a pattern for ...
4 years, 8 months ago (2016-04-25 09:11:10 UTC) #55
igorcov
https://codereview.chromium.org/1692503002/diff/580001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/1692503002/diff/580001/components/policy/resources/policy_templates.json#newcode4317 components/policy/resources/policy_templates.json:4317: Each URL pattern can either be a pattern for ...
4 years, 8 months ago (2016-04-25 13:17:12 UTC) #56
Thiemo Nagel
components/policy LGTM
4 years, 8 months ago (2016-04-25 13:20:06 UTC) #57
igorcov
boliu@chromium.org: Please review changes in android_webview/* thakis@chromium.org: Please review changes in chrome/browser/* asanka@chromium.org: Please review ...
4 years, 8 months ago (2016-04-25 13:35:57 UTC) #59
boliu
On 2016/04/25 13:35:57, igorcov wrote: > mailto:boliu@chromium.org: Please review changes in android_webview/* rubberstamp lgtm > ...
4 years, 8 months ago (2016-04-25 15:37:41 UTC) #60
Andrew T Wilson (Slow)
LGTM with some nits https://codereview.chromium.org/1692503002/diff/600001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/1692503002/diff/600001/chrome/browser/net/chrome_network_delegate.cc#newcode754 chrome/browser/net/chrome_network_delegate.cc:754: #if defined(ENABLE_CONFIGURATION_POLICY) Remove this #ifdef ...
4 years, 7 months ago (2016-05-02 09:32:11 UTC) #61
bartfab (slow)
lgtm
4 years, 7 months ago (2016-05-02 10:04:12 UTC) #62
igorcov
https://codereview.chromium.org/1692503002/diff/600001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/1692503002/diff/600001/chrome/browser/net/chrome_network_delegate.cc#newcode754 chrome/browser/net/chrome_network_delegate.cc:754: #if defined(ENABLE_CONFIGURATION_POLICY) On 2016/05/02 09:32:11, Andrew T Wilson (Slow) ...
4 years, 7 months ago (2016-05-02 13:29:08 UTC) #63
asanka
Why does //net have to be involved at all? //net doesn't take the blacklist state ...
4 years, 7 months ago (2016-05-02 13:54:45 UTC) #64
Nico
chrome/ lgtm
4 years, 7 months ago (2016-05-02 15:32:47 UTC) #65
Andrew T Wilson (Slow)
https://codereview.chromium.org/1692503002/diff/640001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1692503002/diff/640001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode913 content/browser/loader/resource_dispatcher_host_impl.cc:913: ResourceRequestInfoImpl* info = loader->GetRequestInfo(); So, we need some place ...
4 years, 7 months ago (2016-05-03 10:03:05 UTC) #66
igorcov
Fixed the code to not involve net/ module. Main changes: ResourceDispatcherHostImpl is passing the ResourceContext ...
4 years, 7 months ago (2016-05-18 12:01:24 UTC) #67
kinuko
content/ lgtm https://codereview.chromium.org/1692503002/diff/760001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/760001/components/policy/core/browser/url_blacklist_manager.cc#newcode265 components/policy/core/browser/url_blacklist_manager.cc:265: const std::string lc_filter = base::ToLowerASCII(base::StringPiece(filter)); nit: do ...
4 years, 7 months ago (2016-05-19 13:06:01 UTC) #68
igorcov
https://codereview.chromium.org/1692503002/diff/760001/components/policy/core/browser/url_blacklist_manager.cc File components/policy/core/browser/url_blacklist_manager.cc (right): https://codereview.chromium.org/1692503002/diff/760001/components/policy/core/browser/url_blacklist_manager.cc#newcode265 components/policy/core/browser/url_blacklist_manager.cc:265: const std::string lc_filter = base::ToLowerASCII(base::StringPiece(filter)); On 2016/05/19 13:06:00, kinuko ...
4 years, 7 months ago (2016-05-19 14:29:21 UTC) #69
Andrew T Wilson (Slow)
LGTM with a couple formatting nits. https://codereview.chromium.org/1692503002/diff/720002/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/1692503002/diff/720002/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode560 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc:560: policy::URLBlacklist::URLBlacklistState::URL_IN_WHITELIST)); I'm pretty ...
4 years, 7 months ago (2016-05-19 15:02:44 UTC) #71
igorcov
https://codereview.chromium.org/1692503002/diff/720002/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc File chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/1692503002/diff/720002/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc#newcode560 chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc:560: policy::URLBlacklist::URLBlacklistState::URL_IN_WHITELIST)); On 2016/05/19 15:02:43, Andrew T Wilson (Slow) wrote: ...
4 years, 7 months ago (2016-05-19 15:25:13 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1692503002/790001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1692503002/790001
4 years, 7 months ago (2016-05-20 09:06:14 UTC) #76
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/191226)
4 years, 7 months ago (2016-05-20 09:19:38 UTC) #78
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1692503002/810001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1692503002/810001
4 years, 7 months ago (2016-05-20 13:52:50 UTC) #81
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/207155)
4 years, 7 months ago (2016-05-20 14:05:28 UTC) #83
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1692503002/830001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1692503002/830001
4 years, 7 months ago (2016-05-20 14:44:04 UTC) #86
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/74228)
4 years, 7 months ago (2016-05-20 14:59:04 UTC) #88
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1692503002/890001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1692503002/890001
4 years, 7 months ago (2016-05-23 08:27:56 UTC) #91
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/74857)
4 years, 7 months ago (2016-05-23 10:10:02 UTC) #93
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1692503002/890001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1692503002/890001
4 years, 7 months ago (2016-05-23 12:17:31 UTC) #95
commit-bot: I haz the power
Committed patchset #46 (id:890001)
4 years, 7 months ago (2016-05-23 12:21:49 UTC) #97
commit-bot: I haz the power
4 years, 7 months ago (2016-05-23 12:23:29 UTC) #99
Message was sent while issue was closed.
Patchset 46 (id:??) landed as
https://crrev.com/eccb40b717c49c968a87f91fba9b23c21f4f9a3e
Cr-Commit-Position: refs/heads/master@{#395305}

Powered by Google App Engine
This is Rietveld 408576698