|
|
Created:
5 years ago by ramant (doing other things) Modified:
4 years, 11 months ago CC:
chromium-reviews, cbentzel+watch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionHttpServerProperties - maintain the MRU order (across browser sessions)
when server properties are persisted to disk.
Bumped up the version number. Added code to read the old data and
persist in the new format. Servers are persisted in a vector and each
entry is similar to the old server entry.
"http_server_properties": {
"servers": [
{"yt3.ggpht.com:443" : {...}},
{"0.client-channel.google.com:443" : {...}},
{"0-edge-chat.facebook.com:443" : {...}},
...
], ...
},
BUG=568386
R=rch@chromium.org, bnc@chromium.org
Committed: https://crrev.com/0947b295f71723c990cae276490c708caf6b4642
Cr-Commit-Position: refs/heads/master@{#367621}
Patch Set 1 : #
Total comments: 2
Patch Set 2 : fix comments #
Total comments: 2
Patch Set 3 : Change NULL to nullptr #
Depends on Patchset: Messages
Total messages: 27 (13 generated)
Description was changed from ========== HttpServerProperties - maintain the MRU order (across browser sessions) when server properties are persisted to disk. Bumped up the version number. Added code to read the old data and persist in the new format. Servers are persisted in a vector and each entry is similar to the old server entry. "http_server_properties": { "servers": [ {"yt3.ggpht.com:443", {...}}, {"0.client-channel.google.com:443", {...}}, {"0-edge-chat.facebook.com:443", {...}}, ... ], ... }, BUG=568386 ========== to ========== HttpServerProperties - maintain the MRU order (across browser sessions) when server properties are persisted to disk. Bumped up the version number. Added code to read the old data and persist in the new format. Servers are persisted in a vector and each entry is similar to the old server entry. "http_server_properties": { "servers": [ {"yt3.ggpht.com:443", {...}}, {"0.client-channel.google.com:443", {...}}, {"0-edge-chat.facebook.com:443", {...}}, ... ], ... }, BUG=568386 R=rch@chromium.org ==========
The CQ bit was checked by rtenneti@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1545883002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1545883002/1
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by rtenneti@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1545883002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1545883002/20001
Patchset #1 (id:1) has been deleted
Description was changed from ========== HttpServerProperties - maintain the MRU order (across browser sessions) when server properties are persisted to disk. Bumped up the version number. Added code to read the old data and persist in the new format. Servers are persisted in a vector and each entry is similar to the old server entry. "http_server_properties": { "servers": [ {"yt3.ggpht.com:443", {...}}, {"0.client-channel.google.com:443", {...}}, {"0-edge-chat.facebook.com:443", {...}}, ... ], ... }, BUG=568386 R=rch@chromium.org ========== to ========== HttpServerProperties - maintain the MRU order (across browser sessions) when server properties are persisted to disk. Bumped up the version number. Added code to read the old data and persist in the new format. Servers are persisted in a vector and each entry is similar to the old server entry. "http_server_properties": { "servers": [ {"yt3.ggpht.com:443", {...}}, {"0.client-channel.google.com:443", {...}}, {"0-edge-chat.facebook.com:443", {...}}, ... ], ... }, BUG=568386 R=rch@chromium.org, bnc@chromium.org ==========
rtenneti@chromium.org changed reviewers: + bnc@chromium.org, rch@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Hi Ryan and Bence, base::Values don't support persisting std::pair,m thus used list of dictionaries instead of list of std::pairs. Could you take a look at the first cut of this change? thanks much raman https://codereview.chromium.org/1545883002/diff/20001/net/http/http_server_pr... File net/http/http_server_properties_manager_unittest.cc (right): https://codereview.chromium.org/1545883002/diff/20001/net/http/http_server_pr... net/http/http_server_properties_manager_unittest.cc:325: EXPECT_EQ("mail.google.com", map_it->first.host()); mail.google.com is MRU server. In version 3, MRU order wasn't maintained.
The CL description has: "http_server_properties": { "servers": [ {"yt3.ggpht.com:443", {...}}, {"0.client-channel.google.com:443", {...}}, {"0-edge-chat.facebook.com:443", {...}}, ... ], ... }, Should it be: "http_server_properties": { "servers": [ {"yt3.ggpht.com:443": {...}}, {"0.client-channel.google.com:443": {...}}, {"0-edge-chat.facebook.com:443": {...}}, ... ], ... }, Namely ":" instead of "," in the servers elements?
I think this LGTM https://codereview.chromium.org/1545883002/diff/20001/net/http/http_server_pr... File net/http/http_server_properties_manager_unittest.cc (right): https://codereview.chromium.org/1545883002/diff/20001/net/http/http_server_pr... net/http/http_server_properties_manager_unittest.cc:325: EXPECT_EQ("mail.google.com", map_it->first.host()); On 2016/01/04 23:45:57, ramant wrote: > http://mail.google.com is MRU server. In version 3, MRU order wasn't maintained. Woo hoo!
Description was changed from ========== HttpServerProperties - maintain the MRU order (across browser sessions) when server properties are persisted to disk. Bumped up the version number. Added code to read the old data and persist in the new format. Servers are persisted in a vector and each entry is similar to the old server entry. "http_server_properties": { "servers": [ {"yt3.ggpht.com:443", {...}}, {"0.client-channel.google.com:443", {...}}, {"0-edge-chat.facebook.com:443", {...}}, ... ], ... }, BUG=568386 R=rch@chromium.org, bnc@chromium.org ========== to ========== HttpServerProperties - maintain the MRU order (across browser sessions) when server properties are persisted to disk. Bumped up the version number. Added code to read the old data and persist in the new format. Servers are persisted in a vector and each entry is similar to the old server entry. "http_server_properties": { "servers": [ {"yt3.ggpht.com:443" : {...}}, {"0.client-channel.google.com:443" : {...}}, {"0-edge-chat.facebook.com:443" : {...}}, ... ], ... }, BUG=568386 R=rch@chromium.org, bnc@chromium.org ==========
Thanks Ryan. Fixed the comments.
LGTM.
https://codereview.chromium.org/1545883002/diff/40001/net/http/http_server_pr... File net/http/http_server_properties_manager.cc (right): https://codereview.chromium.org/1545883002/diff/40001/net/http/http_server_pr... net/http/http_server_properties_manager.cc:449: const base::ListValue* servers_list = NULL; Optional: change |NULL| to |nullptr| in both lines.
Thanks Bence and Ryan. Hopefully, we will see performance improvements. https://codereview.chromium.org/1545883002/diff/40001/net/http/http_server_pr... File net/http/http_server_properties_manager.cc (right): https://codereview.chromium.org/1545883002/diff/40001/net/http/http_server_pr... net/http/http_server_properties_manager.cc:449: const base::ListValue* servers_list = NULL; On 2016/01/05 18:45:47, Bence wrote: > Optional: change |NULL| to |nullptr| in both lines. Done.
The CQ bit was checked by rtenneti@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from rch@chromium.org, bnc@chromium.org Link to the patchset: https://codereview.chromium.org/1545883002/#ps60001 (title: "Change NULL to nullptr")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1545883002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1545883002/60001
Message was sent while issue was closed.
Description was changed from ========== HttpServerProperties - maintain the MRU order (across browser sessions) when server properties are persisted to disk. Bumped up the version number. Added code to read the old data and persist in the new format. Servers are persisted in a vector and each entry is similar to the old server entry. "http_server_properties": { "servers": [ {"yt3.ggpht.com:443" : {...}}, {"0.client-channel.google.com:443" : {...}}, {"0-edge-chat.facebook.com:443" : {...}}, ... ], ... }, BUG=568386 R=rch@chromium.org, bnc@chromium.org ========== to ========== HttpServerProperties - maintain the MRU order (across browser sessions) when server properties are persisted to disk. Bumped up the version number. Added code to read the old data and persist in the new format. Servers are persisted in a vector and each entry is similar to the old server entry. "http_server_properties": { "servers": [ {"yt3.ggpht.com:443" : {...}}, {"0.client-channel.google.com:443" : {...}}, {"0-edge-chat.facebook.com:443" : {...}}, ... ], ... }, BUG=568386 R=rch@chromium.org, bnc@chromium.org ==========
Message was sent while issue was closed.
Committed patchset #3 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== HttpServerProperties - maintain the MRU order (across browser sessions) when server properties are persisted to disk. Bumped up the version number. Added code to read the old data and persist in the new format. Servers are persisted in a vector and each entry is similar to the old server entry. "http_server_properties": { "servers": [ {"yt3.ggpht.com:443" : {...}}, {"0.client-channel.google.com:443" : {...}}, {"0-edge-chat.facebook.com:443" : {...}}, ... ], ... }, BUG=568386 R=rch@chromium.org, bnc@chromium.org ========== to ========== HttpServerProperties - maintain the MRU order (across browser sessions) when server properties are persisted to disk. Bumped up the version number. Added code to read the old data and persist in the new format. Servers are persisted in a vector and each entry is similar to the old server entry. "http_server_properties": { "servers": [ {"yt3.ggpht.com:443" : {...}}, {"0.client-channel.google.com:443" : {...}}, {"0-edge-chat.facebook.com:443" : {...}}, ... ], ... }, BUG=568386 R=rch@chromium.org, bnc@chromium.org Committed: https://crrev.com/0947b295f71723c990cae276490c708caf6b4642 Cr-Commit-Position: refs/heads/master@{#367621} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/0947b295f71723c990cae276490c708caf6b4642 Cr-Commit-Position: refs/heads/master@{#367621} |