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

Issue 2567173002: Clean up Document::isSecureContext (Closed)

Created:
4 years ago by Charlie Harrison
Modified:
4 years ago
Reviewers:
haraken, Charlie Reis
CC:
chromium-reviews, nasko+codewatch_chromium.org, eae+blinkwatch, eric.carlson_apple.com, Srirama, kinuko+watch, rwlbuis, awdf+watch_chromium.org, jam, blink-reviews-dom_chromium.org, dglazkov+blink, darin-cc_chromium.org, blink-reviews, blink-reviews-api_chromium.org, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, Peter Beverloo, sof, timvolodine, feature-media-reviews_chromium.org, feature-vr-reviews_chromium.org, mlamouri+watch-blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up Document::isSecureContext Document has two methods for getting whether the context is secure. These duplicate functionality, but one also allocates an error string for insecure contexts. Many callers do not need the error string, so this patch updates them to use the other isSecureContext method. The patch also consolidates duplicate logic. The error string allocation was seen in profiles in RenderFrameImpl::willSendRequest BUG=348655 Committed: https://crrev.com/378f5a723e7ee9c00a5af9470880a324c12f556b Cr-Commit-Position: refs/heads/master@{#437998}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -45 lines) Patch
M content/renderer/pepper/host_dispatcher_wrapper.cc View 1 chunk +1 line, -4 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 chunk +4 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/modules/device_orientation/DeviceMotionController.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/Notification.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/NavigatorVR.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebDocument.cpp View 1 chunk +2 lines, -7 lines 0 comments Download
M third_party/WebKit/public/web/WebDocument.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (9 generated)
Charlie Harrison
haraken: PTAL at all of Blink? Let me know if you'd like me to pick ...
4 years ago (2016-12-12 22:39:10 UTC) #4
Charlie Reis
content/ LGTM
4 years ago (2016-12-12 23:06:42 UTC) #5
haraken
LGTM
4 years ago (2016-12-13 01:06:46 UTC) #8
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/2567173002/1
4 years ago (2016-12-13 02:39:12 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-13 02:47:07 UTC) #13
commit-bot: I haz the power
4 years ago (2016-12-13 02:48:47 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/378f5a723e7ee9c00a5af9470880a324c12f556b
Cr-Commit-Position: refs/heads/master@{#437998}

Powered by Google App Engine
This is Rietveld 408576698