Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Issue 1545883002: HttpServerProperties - maintain the MRU order (across browser sessions) (Closed)

Created:
5 years ago by ramant (doing other things)
Modified:
4 years, 11 months ago
Reviewers:
Bence, Ryan Hamilton
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.

Description

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}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : fix comments #

Total comments: 2

Patch Set 3 : Change NULL to nullptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -140 lines) Patch
M net/http/http_server_properties_manager.cc View 1 2 17 chunks +139 lines, -69 lines 0 comments Download
M net/http/http_server_properties_manager_unittest.cc View 1 2 39 chunks +164 lines, -71 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 27 (13 generated)
commit-bot: I haz the power
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
5 years ago (2015-12-23 03:25:10 UTC) #3
commit-bot: I haz the power
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_asan_rel_ng/builds/95908)
5 years ago (2015-12-23 04:48:10 UTC) #5
commit-bot: I haz the power
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
4 years, 11 months ago (2016-01-04 19:24:45 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-04 20:51:28 UTC) #12
ramant (doing other things)
Hi Ryan and Bence, base::Values don't support persisting std::pair,m thus used list of dictionaries instead ...
4 years, 11 months ago (2016-01-04 23:45:57 UTC) #13
Ryan Hamilton
The CL description has: "http_server_properties": { "servers": [ {"yt3.ggpht.com:443", {...}}, {"0.client-channel.google.com:443", {...}}, {"0-edge-chat.facebook.com:443", {...}}, ...
4 years, 11 months ago (2016-01-05 00:15:42 UTC) #14
Ryan Hamilton
I think this LGTM https://codereview.chromium.org/1545883002/diff/20001/net/http/http_server_properties_manager_unittest.cc File net/http/http_server_properties_manager_unittest.cc (right): https://codereview.chromium.org/1545883002/diff/20001/net/http/http_server_properties_manager_unittest.cc#newcode325 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, ...
4 years, 11 months ago (2016-01-05 00:18:20 UTC) #15
ramant (doing other things)
Thanks Ryan. Fixed the comments.
4 years, 11 months ago (2016-01-05 01:41:40 UTC) #17
Bence
LGTM.
4 years, 11 months ago (2016-01-05 18:45:33 UTC) #18
Bence
https://codereview.chromium.org/1545883002/diff/40001/net/http/http_server_properties_manager.cc File net/http/http_server_properties_manager.cc (right): https://codereview.chromium.org/1545883002/diff/40001/net/http/http_server_properties_manager.cc#newcode449 net/http/http_server_properties_manager.cc:449: const base::ListValue* servers_list = NULL; Optional: change |NULL| to ...
4 years, 11 months ago (2016-01-05 18:45:47 UTC) #19
ramant (doing other things)
Thanks Bence and Ryan. Hopefully, we will see performance improvements. https://codereview.chromium.org/1545883002/diff/40001/net/http/http_server_properties_manager.cc File net/http/http_server_properties_manager.cc (right): https://codereview.chromium.org/1545883002/diff/40001/net/http/http_server_properties_manager.cc#newcode449 ...
4 years, 11 months ago (2016-01-05 18:52:58 UTC) #20
commit-bot: I haz the power
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
4 years, 11 months ago (2016-01-05 18:54:31 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 11 months ago (2016-01-05 20:08:51 UTC) #25
commit-bot: I haz the power
4 years, 11 months ago (2016-01-05 20:09:49 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0947b295f71723c990cae276490c708caf6b4642
Cr-Commit-Position: refs/heads/master@{#367621}

Powered by Google App Engine
This is Rietveld 408576698