-
Notifications
You must be signed in to change notification settings - Fork 873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix 10269: Do not proxy downloads for Widevine #5846
Conversation
auto request_info = std::make_shared<brave::BraveRequestInfo>(url); | ||
int rc = | ||
OnBeforeURLRequest_StaticRedirectWork(ResponseCallback(), request_info); | ||
EXPECT_EQ(request_info->new_url_spec, base::EmptyString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer just "" instead of base::EmptyString
, there is an explanation
// Therefore, DO NOT USE THESE AS A GENERAL-PURPOSE SUBSTITUTE FOR DEFAULT
// CONSTRUCTORS. There is only one case where you should use these: functions
// which need to return a string by reference (e.g. as a class member
// accessor), and don't have an empty string to use (e.g. in an error case).
@@ -74,6 +74,13 @@ int OnBeforeURLRequest_StaticRedirectWorkForGURL( | |||
URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS, | |||
"*://dl.google.com/*"); | |||
|
|||
static URLPattern widevineGvt1_pattern( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
most of names here don't match CC, I think it should be widevine_gvt1_pattern
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I filed this issue: brave/brave-browser#10314 - Will try to address this soon. Added a to-do to the code.
7dc8e42
to
bdaa1f8
Compare
Verification PASSED on
|
Resolves brave/brave-browser#10269
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
--use-dev-goupdater-url
https://bitmovin.com/demos/drm
update.googleapis.com
*.gvt1.com
and*.dl.google.com
Reviewer Checklist:
After-merge Checklist:
changes has landed on.