Use a more common and easily parsed format for chrome-search://ntpicon
Instead of using custom dir/like/things, let's use the more standard: ?param1=val1¶m2=val2 Because it allows us to use URLSearchParams[1] in JS: url.searchParams.set('param1', 'val1'); And net::QueryIterator in C++: for (net::QueryIterator it(url); !it.IsAtEnd(); it.Advance()) { // use it.GetKey() and it.GetValue() } R=kristipark@chromium.org BUG=953962 [1] https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams Change-Id: I8159e0f6d70b35bc803e9e1064c67ee27a93244b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574690 Auto-Submit: Dan Beam <dbeam@chromium.org> Reviewed-by:Kristi Park <kristipark@chromium.org> Commit-Queue: Dan Beam <dbeam@chromium.org> Cr-Commit-Position: refs/heads/master@{#652623}
Showing
Please register or sign in to comment