Set Ready For Review
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hi - this is another follow-up to previous discussion - crrev.com/c/7794385/10/content/public/browser/security_principal.h#76 Could you please take a look at is when there is time. Thanks.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Decreasing number of string creations, could you please review when you have a chance. Thank you!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
IPC: kin...@chromium.org
📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).
IPC reviewer(s): kin...@chromium.org
Reviewer source(s):
kin...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
@kin...@chromium.org - hi, I still would like to merge this CL - could you please review it or suggest the other owner? It is one line change creating string from string_view. Thank you.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
IPC: ort...@chromium.org
📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).
IPC reviewer(s): ort...@chromium.org
Reviewer source(s):
ort...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
Thank you Reilly, thanks all.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
I was needed to fix build breaks because there were new callers which were using API. Review votes got reset as outdated. Could you please check again. Thank you.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
.GetByID(std::string(render_frame_host->GetSiteInstance()Should this be ExtensionId?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
.GetByID(std::string(render_frame_host->GetSiteInstance()Should this be ExtensionId?
I intentionally left string for mojo one to be more explicit - will ExtensionId work for you here?
.GetByID(std::string(render_frame_host->GetSiteInstance()Viktoriya BryhiderShould this be ExtensionId?
I intentionally left string for mojo one to be more explicit - will ExtensionId work for you here?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
.GetByID(std::string(render_frame_host->GetSiteInstance()Viktoriya BryhiderShould this be ExtensionId?
Giovanni Ortuno UrquidiI intentionally left string for mojo one to be more explicit - will ExtensionId work for you here?
I think it's fine as is.
I did updated it to extensions. thanks
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
LGTM
.GetByID(std::string(render_frame_host->GetSiteInstance()Viktoriya BryhiderShould this be ExtensionId?
Giovanni Ortuno UrquidiI intentionally left string for mojo one to be more explicit - will ExtensionId work for you here?
Viktoriya BryhiderI think it's fine as is.
I did updated it to extensions. thanks
We should probably update `GetById` to take `std::string_view` eventually, since constructing an `std::string` just to satisfy the typedef isn't great.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
.GetByID(std::string(render_frame_host->GetSiteInstance()Viktoriya BryhiderShould this be ExtensionId?
Giovanni Ortuno UrquidiI intentionally left string for mojo one to be more explicit - will ExtensionId work for you here?
Viktoriya BryhiderI think it's fine as is.
Reilly GrantI did updated it to extensions. thanks
We should probably update `GetById` to take `std::string_view` eventually, since constructing an `std::string` just to satisfy the typedef isn't great.
I had it initially, but reverted, because ExtensionId looked more explicit - this is reverted diff: crrev.com/c/7857269/1..2
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Return string_view from SecurityPrincipal::GetHost
Change SecurityPrincipal::GetHost() to return std::string_view instead
of std::string. It eliminates a heap allocation at callers that only
need the host for lookups or comparisons, while callers that need an
owned copy construct one explicitly.
Update SiteInfo::GetHost() to call site_url_.host(), which returns
string_view. Update StoragePartitionConfig::Create and its constructor
to accept std::string_view parameters, since they store the values into
std::string members anyway.
Callers that pass the result to APIs requiring std::string (e.g.,
ExtensionSet::GetByID) now construct std::string from returned view
using the ExtensionId type alias.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |