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

Issue 360733005: Poll CanPredictNetworkActions in Predictor class. (Closed)

Created:
6 years, 5 months ago by Bence
Modified:
6 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org, rpetterson
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Poll CanPredictNetworkActions in Predictor class. Predictor is modified to call functions CanPredictNetworkActionsIO and CanPredictNetworkActionsUI to comply with user preferences (and consider network connection state). This obsoletes Predictor::EnablePredictor. Also, bool members Predictor::preconnect_enabled_ and Predictor::predictor_enabled_ now depend solely on command line switches, therefore they are made const. BUG=334602 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284526

Patch Set 1 #

Patch Set 2 : Nits. #

Total comments: 6

Patch Set 3 : Nits. #

Total comments: 2

Patch Set 4 : Fix bug per msg7. #

Patch Set 5 : Modify predictor_unittest to work with the new interface, also rebase. #

Patch Set 6 : Rebase. #

Total comments: 2

Patch Set 7 : Do not call CanPredictNetworkActions* with NULL. #

Patch Set 8 : Fix unittests. #

Patch Set 9 : Make virtual functions not inline. #

Patch Set 10 : Add OVERRIDE keyword. #

Patch Set 11 : Rebase. #

Patch Set 12 : Make shutdown behave properly. #

Patch Set 13 : Revert hack in Predictor to make tests pass. #

Patch Set 14 : Fix LoginUtilsTest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -86 lines) Patch
M chrome/browser/chromeos/login/login_utils_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/net/net_pref_observer.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/net/predictor.h View 1 2 3 4 5 6 7 8 9 13 12 chunks +37 lines, -18 lines 0 comments Download
M chrome/browser/net/predictor.cc View 1 2 3 4 5 6 7 8 12 13 20 chunks +74 lines, -40 lines 0 comments Download
M chrome/browser/net/predictor_unittest.cc View 1 2 3 4 5 6 7 15 chunks +15 lines, -15 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Bence
zelidrag: chrome/browser/chromeos/login/login_utils_browsertest.cc. (I am obsoleting Predictor::EnablePredictor.) battre: chrome/browser/net/{net_pref_observer.cc,predictor.cc,predictor.h} erg: chrome/browser/profiles/profile_impl*.cc pkasting: chrome/browser/ui/startup/startup_browser_creator_impl.cc. (I moved acting ...
6 years, 5 months ago (2014-06-30 19:53:48 UTC) #1
Peter Kasting
LGTM
6 years, 5 months ago (2014-06-30 19:55:28 UTC) #2
Elliot Glaysher
lgtm
6 years, 5 months ago (2014-06-30 22:04:04 UTC) #3
battre
I have a suggestion to integrate predictor_enabled_ and preconnect_enabled_ into the preferences. What do you ...
6 years, 5 months ago (2014-07-01 08:27:48 UTC) #4
Bence
On 2014/07/01 08:27:48, battre wrote: > I have a suggestion to integrate predictor_enabled_ and preconnect_enabled_ ...
6 years, 5 months ago (2014-07-01 17:38:33 UTC) #5
Bence
https://codereview.chromium.org/360733005/diff/20001/chrome/browser/chromeos/login/login_utils_browsertest.cc File chrome/browser/chromeos/login/login_utils_browsertest.cc (right): https://codereview.chromium.org/360733005/diff/20001/chrome/browser/chromeos/login/login_utils_browsertest.cc#newcode324 chrome/browser/chromeos/login/login_utils_browsertest.cc:324: } On 2014/07/01 08:27:48, battre wrote: > nit: remove ...
6 years, 5 months ago (2014-07-01 17:39:27 UTC) #6
battre
I think I have found one bug. Sorry for not noticing this earlier. Also note ...
6 years, 5 months ago (2014-07-02 12:57:42 UTC) #7
Bence
zelidrag, battre: PTAL. Dominic, thank you for catching both problems. Also, I did a rebase ...
6 years, 5 months ago (2014-07-07 16:35:50 UTC) #8
Bence
On 2014/07/02 12:57:42, battre wrote: > I think I have found one bug. Sorry for ...
6 years, 5 months ago (2014-07-09 20:41:57 UTC) #9
battre
On 2014/07/09 20:41:57, bnc wrote: > On 2014/07/02 12:57:42, battre wrote: > > I think ...
6 years, 5 months ago (2014-07-10 08:24:24 UTC) #10
battre
https://codereview.chromium.org/360733005/diff/100001/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/360733005/diff/100001/chrome/browser/net/predictor.cc#newcode799 chrome/browser/net/predictor.cc:799: prefs::kDnsPrefetchingHostReferralList); This is actually a pretty serious bug that ...
6 years, 5 months ago (2014-07-10 09:01:59 UTC) #11
Bernhard Bauer
https://codereview.chromium.org/360733005/diff/100001/chrome/browser/net/predictor.cc File chrome/browser/net/predictor.cc (right): https://codereview.chromium.org/360733005/diff/100001/chrome/browser/net/predictor.cc#newcode799 chrome/browser/net/predictor.cc:799: prefs::kDnsPrefetchingHostReferralList); On 2014/07/10 09:01:59, battre wrote: > This is ...
6 years, 5 months ago (2014-07-10 09:59:02 UTC) #12
Bence
On 2014/07/10 08:24:24, battre wrote: > On 2014/07/09 20:41:57, bnc wrote: > > On 2014/07/02 ...
6 years, 5 months ago (2014-07-10 13:39:43 UTC) #13
battre
LGTM if the trybots are now happy.
6 years, 5 months ago (2014-07-10 14:03:45 UTC) #14
Bence
On 2014/07/10 14:03:45, battre wrote: > LGTM if the trybots are now happy. Dominic: PTAL. ...
6 years, 5 months ago (2014-07-16 11:48:14 UTC) #15
zel
LGTM for chrome/browser/chromeos/ part
6 years, 5 months ago (2014-07-16 15:18:00 UTC) #16
Bence
On 2014/07/16 15:18:00, zel wrote: > LGTM for chrome/browser/chromeos/ part zelidrag: PTAL at chrome/browser/chromeos/login/login_utils_browsertest.cc. I ...
6 years, 5 months ago (2014-07-21 19:12:05 UTC) #17
zel
On 2014/07/21 19:12:05, bnc wrote: > On 2014/07/16 15:18:00, zel wrote: > > LGTM for ...
6 years, 5 months ago (2014-07-21 19:21:23 UTC) #18
Bence
The CQ bit was checked by bnc@chromium.org
6 years, 5 months ago (2014-07-21 19:29:11 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bnc@chromium.org/360733005/260001
6 years, 5 months ago (2014-07-21 19:29:54 UTC) #20
commit-bot: I haz the power
6 years, 5 months ago (2014-07-21 22:47:34 UTC) #21
Message was sent while issue was closed.
Change committed as 284526

Powered by Google App Engine
This is Rietveld 408576698