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

Issue 2085643002: Don't clear the net predictors prefs on startup (Closed)

Created:
4 years, 6 months ago by Charlie Harrison
Modified:
4 years, 5 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't clear the net predictors prefs on startup Traditionally, the net predictor had its database cleared from preferences during startup, deleting them while transfering to a completely in-memory representation. This is non-ideal for Android, where unclean shutdowns are more common due to oom-killer. This patch removes the behavior in favor of clearing the prefs when the user clears browsing history. Note that in order to properly persist db updates in the presence of unclean shutdowns, we will have to sync the prefs more often. This will be implemented as a follow up. BUG=621604 Committed: https://crrev.com/f2113bc361ed6ad09f2e97ef5068be4e8c32e114 Cr-Commit-Position: refs/heads/master@{#402813}

Patch Set 1 #

Patch Set 2 : Add clear history test + fix old test #

Patch Set 3 : update a benchmark extension? Who knew we even had that... #

Patch Set 4 : dont clear prefs on startup #

Total comments: 11

Patch Set 5 #

Total comments: 7

Patch Set 6 : nits #

Total comments: 1

Patch Set 7 : bauerb@ review #

Total comments: 2

Patch Set 8 : add TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -43 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_net_benchmarking_message_filter.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chrome_net_benchmarking_message_filter.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/net/predictor.h View 1 2 3 4 5 6 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/net/predictor.cc View 1 2 3 4 5 6 6 chunks +24 lines, -25 lines 0 comments Download
M chrome/browser/net/predictor_browsertest.cc View 1 2 3 4 5 3 chunks +38 lines, -14 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
Charlie Harrison
Eric, do you mind taking a look at this? Before Android, I guess it was ...
4 years, 6 months ago (2016-06-23 22:26:44 UTC) #2
eroman
https://codereview.chromium.org/2085643002/diff/50006/chrome/browser/chrome_net_benchmarking_message_filter.cc File chrome/browser/chrome_net_benchmarking_message_filter.cc (right): https://codereview.chromium.org/2085643002/diff/50006/chrome/browser/chrome_net_benchmarking_message_filter.cc#newcode133 chrome/browser/chrome_net_benchmarking_message_filter.cc:133: chrome_browser_net::Predictor* predictor = profile_->GetNetworkPredictor(); I am confused by the ...
4 years, 6 months ago (2016-06-23 23:48:05 UTC) #3
Charlie Harrison
https://codereview.chromium.org/2085643002/diff/50006/chrome/browser/chrome_net_benchmarking_message_filter.cc File chrome/browser/chrome_net_benchmarking_message_filter.cc (right): https://codereview.chromium.org/2085643002/diff/50006/chrome/browser/chrome_net_benchmarking_message_filter.cc#newcode133 chrome/browser/chrome_net_benchmarking_message_filter.cc:133: chrome_browser_net::Predictor* predictor = profile_->GetNetworkPredictor(); On 2016/06/23 23:48:05, eroman wrote: ...
4 years, 6 months ago (2016-06-24 00:00:52 UTC) #4
eroman
On a related note, what is the interaction with incognito mode? Does incognito have its ...
4 years, 6 months ago (2016-06-24 00:17:28 UTC) #5
Charlie Harrison
Note: predictor is nullptr in incognito mode. https://codereview.chromium.org/2085643002/diff/50006/chrome/browser/chrome_net_benchmarking_message_filter.cc File chrome/browser/chrome_net_benchmarking_message_filter.cc (right): https://codereview.chromium.org/2085643002/diff/50006/chrome/browser/chrome_net_benchmarking_message_filter.cc#newcode133 chrome/browser/chrome_net_benchmarking_message_filter.cc:133: chrome_browser_net::Predictor* predictor ...
4 years, 5 months ago (2016-06-24 16:12:09 UTC) #6
eroman
lgtm after nits https://codereview.chromium.org/2085643002/diff/70001/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (left): https://codereview.chromium.org/2085643002/diff/70001/chrome/browser/net/predictor.cc#oldcode155 chrome/browser/net/predictor.cc:155: // have to worry about clearing ...
4 years, 5 months ago (2016-06-25 01:12:53 UTC) #7
Charlie Harrison
thestig@, do you mind taking a look at chrome/browser/browsing_data and chrome/browser/chrome_net_benchmarking_message_filter? https://codereview.chromium.org/2085643002/diff/70001/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (left): ...
4 years, 5 months ago (2016-06-27 18:57:13 UTC) #9
Lei Zhang
I'm going to defer to bauerb@ for chrome/browser/browsing_data.
4 years, 5 months ago (2016-06-27 19:07:41 UTC) #11
Bernhard Bauer
https://codereview.chromium.org/2085643002/diff/50006/chrome/browser/chrome_net_benchmarking_message_filter.cc File chrome/browser/chrome_net_benchmarking_message_filter.cc (right): https://codereview.chromium.org/2085643002/diff/50006/chrome/browser/chrome_net_benchmarking_message_filter.cc#newcode133 chrome/browser/chrome_net_benchmarking_message_filter.cc:133: chrome_browser_net::Predictor* predictor = profile_->GetNetworkPredictor(); On 2016/06/24 16:12:09, csharrison wrote: ...
4 years, 5 months ago (2016-06-28 11:43:46 UTC) #12
Charlie Harrison
Thanks for the detailed review! https://codereview.chromium.org/2085643002/diff/50006/chrome/browser/chrome_net_benchmarking_message_filter.cc File chrome/browser/chrome_net_benchmarking_message_filter.cc (right): https://codereview.chromium.org/2085643002/diff/50006/chrome/browser/chrome_net_benchmarking_message_filter.cc#newcode133 chrome/browser/chrome_net_benchmarking_message_filter.cc:133: chrome_browser_net::Predictor* predictor = profile_->GetNetworkPredictor(); ...
4 years, 5 months ago (2016-06-28 17:01:43 UTC) #13
Bernhard Bauer
LGTM https://codereview.chromium.org/2085643002/diff/90001/chrome/browser/chrome_net_benchmarking_message_filter.cc File chrome/browser/chrome_net_benchmarking_message_filter.cc (right): https://codereview.chromium.org/2085643002/diff/90001/chrome/browser/chrome_net_benchmarking_message_filter.cc#newcode141 chrome/browser/chrome_net_benchmarking_message_filter.cc:141: chrome_browser_net::Predictor* predictor = profile_->GetNetworkPredictor(); Add a TODO here ...
4 years, 5 months ago (2016-06-29 09:52:21 UTC) #14
Lei Zhang
lgtm
4 years, 5 months ago (2016-06-29 14:16:06 UTC) #15
Charlie Harrison
Thanks everyone! https://codereview.chromium.org/2085643002/diff/90001/chrome/browser/chrome_net_benchmarking_message_filter.cc File chrome/browser/chrome_net_benchmarking_message_filter.cc (right): https://codereview.chromium.org/2085643002/diff/90001/chrome/browser/chrome_net_benchmarking_message_filter.cc#newcode141 chrome/browser/chrome_net_benchmarking_message_filter.cc:141: chrome_browser_net::Predictor* predictor = profile_->GetNetworkPredictor(); On 2016/06/29 09:52:20, ...
4 years, 5 months ago (2016-06-29 14:19:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2085643002/110001
4 years, 5 months ago (2016-06-29 14:21:52 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:110001)
4 years, 5 months ago (2016-06-29 15:08:09 UTC) #20
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-29 15:08:22 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 15:09:50 UTC) #23
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/f2113bc361ed6ad09f2e97ef5068be4e8c32e114
Cr-Commit-Position: refs/heads/master@{#402813}

Powered by Google App Engine
This is Rietveld 408576698