commit | e3f32b13f58554d60f95d01b8ed8c02b5ca65da5 | [log] [tgz] |
---|---|---|
author | arjanl <arjanl@opera.com> | Tue Jan 05 19:24:54 2016 +0900 |
committer | Qijiang Fan <fqj@google.com> | Fri Jun 05 02:09:56 2020 +0900 |
tree | 030b669109c7031cdbb3f635faea045f5281b721 | |
parent | f4a4c0d1ba42f70321e4e430a7df0c4e94b671fd [diff] |
Don't unnecessarily copy strings Add a function base::SplitStringPieceUsingSubstr that splits a string using a substring delimiter without copying the string parts. Use it in HttpRequestHeaders::AddHeadersFromString. BUG=572076 Review URL: https://codereview.chromium.org/1549063003 Cr-Commit-Position: refs/heads/master@{#367504} CrOS-Libchrome-Original-Commit: 0e8b35ae352e71ea43bf1dc9f6b68128dc8ab187