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

Issue 2433283005: [Media Router] Use origin instead of URL for frame. (Closed)

Created:
4 years, 2 months ago by mark a. foltz
Modified:
4 years, 1 month ago
Reviewers:
imcheng
CC:
zivh_google.com, chromium-reviews, feature-media-reviews_chromium.org, media-router+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] Use origin instead of URL for frame. This CL uses the last committed origin of a frame making a presentation request, instead of the full URL. Frames created in script have an empty last committed URL. Note the following: - Only the origin is used from the frame URL presentation request (that is why this change is safe). PresentationRequest should be converted to use url::Origin instead of GURL to avoid unnecessary conversions. Tracked in crbug.com/632623. - Is it possible for a frames to not have a last committed origin? If so, the strict checking for valid, non-empty origins will need to be relaxed. - TODO: Add functional tests in a separate patch. BUG=658409 Committed: https://crrev.com/e0c208309294e9c5132e713e8b04872b90c184a5 Cr-Commit-Position: refs/heads/master@{#427128}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove DCHECK in media_router_ui.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M chrome/browser/media/router/presentation_request.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
mark a. foltz
4 years, 2 months ago (2016-10-21 21:49:22 UTC) #2
imcheng
lgtm https://codereview.chromium.org/2433283005/diff/1/chrome/browser/ui/webui/media_router/media_router_ui.cc File chrome/browser/ui/webui/media_router/media_router_ui.cc (right): https://codereview.chromium.org/2433283005/diff/1/chrome/browser/ui/webui/media_router/media_router_ui.cc#newcode425 chrome/browser/ui/webui/media_router/media_router_ui.cc:425: DCHECK(origin->is_valid()); We should probably remove this DCHECK since ...
4 years, 2 months ago (2016-10-21 23:58:03 UTC) #3
mark a. foltz
On 2016/10/21 at 23:58:03, imcheng wrote: > lgtm > > https://codereview.chromium.org/2433283005/diff/1/chrome/browser/ui/webui/media_router/media_router_ui.cc > File chrome/browser/ui/webui/media_router/media_router_ui.cc (right): ...
4 years, 1 month ago (2016-10-24 17:16:42 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2433283005/20001
4 years, 1 month ago (2016-10-24 17:17:33 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-24 20:00:54 UTC) #8
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 20:03:13 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e0c208309294e9c5132e713e8b04872b90c184a5
Cr-Commit-Position: refs/heads/master@{#427128}

Powered by Google App Engine
This is Rietveld 408576698