| Auto-Submit | +1 |
| Commit-Queue | +1 |
hayato@, would you review this please?
Please set Owners-Override as well.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Owners-Override | +1 |
lgtm % nits
// FunctionAcceptsStringView(url::UrlEscapeDeoder(input, mode).view());nit; typo Deoder
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +2 |
// FunctionAcceptsStringView(url::UrlEscapeDeoder(input, mode).view());Kent Tamuranit; typo Deoder
Thanks! Done.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
4 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: url/url_util.h
Insertions: 1, Deletions: 1.
@@ -297,7 +297,7 @@
// url::UrlEscapeDecoder decoder(input, mode);
// FunctionAcceptsStringView(decoder.view());
//
-// FunctionAcceptsStringView(url::UrlEscapeDeoder(input, mode).view());
+// FunctionAcceptsStringView(url::UrlEscapeDecoder(input, mode).view());
//
// The following code doesn't work because the view() result can't outlive the
// UrlEscapeDecoder instance.
```
url: Introduce UrlEscapeDecoder to simplify URL decoding
This change introduces url::UrlEscapeDecoder, a helper class that
simplifies the process of decoding URL escape sequences.
Previously, decoding required manually setting up a RawCanonOutputW
buffer and then calling DecodeUrlEscapeSequences(). This pattern was
verbose.
The new UrlEscapeDecoder encapsulates this logic. It performs the
decoding in its constructor. This makes the calling code more concise
and readable:
url::UrlEscapeDecoder decoder(input, mode);
... use decoder.view() ...
This CL refactors several existing call sites to use the new, simpler
pattern.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |