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

Issue 9703050: SPDY - don't persist SpdySettings until we convert it to a map. (Closed)

Created:
8 years, 9 months ago by ramant (doing other things)
Modified:
8 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, eroman
Visibility:
Public.

Description

SPDY - don't persist SpdySettings until we convert it to a map. - Deleted the code that read and wrote the SpdySettings data from preferences. - Disabled the code that persisted the SpdySettings data. - Disabled the unit tests that tested persisting of SpdySettings. BUG=118148 R=willchan TEST=browser unit tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=126838

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -96 lines) Patch
M chrome/browser/net/http_server_properties_manager.cc View 2 chunks +2 lines, -56 lines 0 comments Download
M chrome/browser/net/http_server_properties_manager_unittest.cc View 3 chunks +0 lines, -37 lines 0 comments Download
M net/spdy/spdy_network_transaction_spdy21_unittest.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M net/spdy/spdy_network_transaction_spdy2_unittest.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M net/spdy/spdy_network_transaction_spdy3_unittest.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M net/spdy/spdy_session.cc View 2 chunks +5 lines, -3 lines 4 comments Download

Messages

Total messages: 6 (0 generated)
rtenneti
Hi Jim and willchan, Commented out (or deleted) the code that read/saved and that set ...
8 years, 9 months ago (2012-03-15 01:36:22 UTC) #1
jar (doing other things)
The code LGTM.... I'd like to get Will's agreement.
8 years, 9 months ago (2012-03-15 01:46:48 UTC) #2
ramant (doing other things)
On 2012/03/15 01:46:48, jar wrote: > The code LGTM.... I'd like to get Will's agreement. ...
8 years, 9 months ago (2012-03-15 02:16:27 UTC) #3
willchan no longer on Chromium
http://codereview.chromium.org/9703050/diff/1/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (right): http://codereview.chromium.org/9703050/diff/1/net/spdy/spdy_session.cc#newcode1303 net/spdy/spdy_session.cc:1303: // TODO(rtenneti): persist SpdySetting. Wait, why do we have ...
8 years, 9 months ago (2012-03-15 03:13:53 UTC) #4
ramant (doing other things)
Hi willchan, Was being conservative with this CL. Will implement the right fix tomorrow. thanks, ...
8 years, 9 months ago (2012-03-15 03:46:29 UTC) #5
willchan no longer on Chromium
8 years, 9 months ago (2012-03-15 04:12:26 UTC) #6
I'm a bit surprised, this seems overly conservative, but it's not worth
debating. LGTM.

On Wed, Mar 14, 2012 at 8:46 PM, <rtenneti@chromium.org> wrote:

> Hi willchan,
>  Was being conservative with this CL. Will implement the right fix
> tomorrow.
>
> thanks,
> raman
>
>
>
>
http://codereview.chromium.**org/9703050/diff/1/net/spdy/**spdy_session.cc<ht...
> File net/spdy/spdy_session.cc (right):
>
> http://codereview.chromium.**org/9703050/diff/1/net/spdy/**
>
spdy_session.cc#newcode1303<http://codereview.chromium.org/9703050/diff/1/net/spdy/spdy_session.cc#newcode1303>
> net/spdy/spdy_session.cc:1303: // TODO(rtenneti): persist SpdySetting.
> On 2012/03/15 03:13:54, willchan wrote:
>
>> Wait, why do we have to change this? We can still set the SpdySetting,
>>
> right? It
>
>> just can't be persisted?
>>
>
> SetSpdySetting is doing the copy of memory. It is possible over a period
> of time (for plus.google.com) we get lot of settings update and we keep
> appending and thus the list can grow. Will check in a fix that doesn't
> grow the memory tomorrow. Hope this approach is ok.
>
>
> http://codereview.chromium.**org/9703050/diff/1/net/spdy/**
>
spdy_session.cc#newcode1677<http://codereview.chromium.org/9703050/diff/1/net/spdy/spdy_session.cc#newcode1677>
> net/spdy/spdy_session.cc:1677: // TODO(rtenneti): Persist SpdySetting.
> On 2012/03/15 03:13:54, willchan wrote:
>
>> Do we need to change this too?
>>
>
> This is where the bug was. In the previous version, we used to break and
> we used to set only one setting update. For sorting purposes, I used the
> same loop and it had the side effect of calling SetSpdySetting for every
> element (and most of the elements were CWD setting).
>
> None of this code will get executed because GetSpdySettings will be
> empty. Wanted to be 100% safe. Will implement persisting (and saving of
> the settings tonight/tomorrow).
>
> What do you think of this approach (being very conservative).
>
>
http://codereview.chromium.**org/9703050/<http://codereview.chromium.org/9703...
>

Powered by Google App Engine
This is Rietveld 408576698