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

Issue 357723003: Implement prediction_options. (Closed)

Created:
6 years, 6 months ago by Bence
Modified:
6 years, 5 months ago
Reviewers:
jkarlin, mmenke, battre
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Implement prediction_options. This provides two functions in the chrome_browser_net namespace that can be used on either UI or OI thread to determine whether predictive network actions (which will include DNS, preconnect, prefetching, rendering) are allowed given user preference and current network state. BUG=334602 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280525

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Rebase again. #

Patch Set 4 : Yet another rebase. #

Total comments: 12

Patch Set 5 : Nits #

Patch Set 6 : Address msg1. #

Patch Set 7 : Fix typo. #

Total comments: 34

Patch Set 8 : Address msg4--9. #

Patch Set 9 : Nit. #

Total comments: 10

Patch Set 10 : Address msg11. #

Patch Set 11 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -13 lines) Patch
A chrome/browser/net/prediction_options.h View 1 2 3 4 5 6 7 8 9 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/browser/net/prediction_options.cc View 1 2 3 4 5 6 7 8 9 1 chunk +68 lines, -0 lines 0 comments Download
M chrome/browser/net/predictor.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
jkarlin
Drive by comments https://codereview.chromium.org/357723003/diff/60001/chrome/browser/net/prediction_helper.cc File chrome/browser/net/prediction_helper.cc (right): https://codereview.chromium.org/357723003/diff/60001/chrome/browser/net/prediction_helper.cc#newcode31 chrome/browser/net/prediction_helper.cc:31: return false; DCHECK(false) with: NOTREACHED() << ...
6 years, 6 months ago (2014-06-26 16:28:53 UTC) #1
Bence
https://codereview.chromium.org/357723003/diff/60001/chrome/browser/net/prediction_helper.cc File chrome/browser/net/prediction_helper.cc (right): https://codereview.chromium.org/357723003/diff/60001/chrome/browser/net/prediction_helper.cc#newcode31 chrome/browser/net/prediction_helper.cc:31: return false; On 2014/06/26 16:28:52, jkarlin wrote: > DCHECK(false) ...
6 years, 6 months ago (2014-06-26 20:02:06 UTC) #2
Bence
Hi, mmenke: could you please review changes in browser/net and browser/profiles? battre: could you please ...
6 years, 6 months ago (2014-06-26 20:05:30 UTC) #3
mmenke
https://codereview.chromium.org/357723003/diff/120001/chrome/browser/net/prediction_helper.cc File chrome/browser/net/prediction_helper.cc (right): https://codereview.chromium.org/357723003/diff/120001/chrome/browser/net/prediction_helper.cc#newcode23 chrome/browser/net/prediction_helper.cc:23: net::NetworkChangeNotifier::GetConnectionType()); nit: Suggest just using a 4-space indent here. ...
6 years, 6 months ago (2014-06-26 20:41:02 UTC) #4
battre
chrome/browser/prefs/browser_prefs.cc LGTM.
6 years, 6 months ago (2014-06-27 06:34:57 UTC) #5
Bence
mmenke: We should brainstorm about four things: 1. What is the best filename for browser/net/prediction_helper.h? ...
6 years, 5 months ago (2014-06-27 15:11:51 UTC) #6
Bence
Results of discussion with mmenke: 1. What is the best filename for browser/net/prediction_helper.h? browser/net/network_prediction_options.h 2. ...
6 years, 5 months ago (2014-06-27 16:11:52 UTC) #7
Bence
Since browser/net/network_prediction_options.{cc,h} is redundant, I will use browser/net/prediction_options.{cc,h} instead. On 2014/06/27 16:11:52, bnc wrote: > ...
6 years, 5 months ago (2014-06-27 16:20:50 UTC) #8
mmenke
https://codereview.chromium.org/357723003/diff/120001/chrome/browser/net/prediction_helper.h File chrome/browser/net/prediction_helper.h (right): https://codereview.chromium.org/357723003/diff/120001/chrome/browser/net/prediction_helper.h#newcode27 chrome/browser/net/prediction_helper.h:27: void RegisterPredictionHelperProfilePrefs( OH, this should be renamed, too, using ...
6 years, 5 months ago (2014-06-27 16:26:29 UTC) #9
Bence
https://codereview.chromium.org/357723003/diff/120001/chrome/browser/net/prediction_helper.h File chrome/browser/net/prediction_helper.h (right): https://codereview.chromium.org/357723003/diff/120001/chrome/browser/net/prediction_helper.h#newcode27 chrome/browser/net/prediction_helper.h:27: void RegisterPredictionHelperProfilePrefs( On 2014/06/27 16:26:29, mmenke wrote: > OH, ...
6 years, 5 months ago (2014-06-27 18:26:45 UTC) #10
mmenke
https://codereview.chromium.org/357723003/diff/160001/chrome/browser/net/prediction_options.cc File chrome/browser/net/prediction_options.cc (right): https://codereview.chromium.org/357723003/diff/160001/chrome/browser/net/prediction_options.cc#newcode48 chrome/browser/net/prediction_options.cc:48: DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); include browser_thread.h https://codereview.chromium.org/357723003/diff/160001/chrome/browser/net/prediction_options.h File chrome/browser/net/prediction_options.h (right): https://codereview.chromium.org/357723003/diff/160001/chrome/browser/net/prediction_options.h#newcode10 chrome/browser/net/prediction_options.h:10: ...
6 years, 5 months ago (2014-06-27 18:52:06 UTC) #11
Bence
https://codereview.chromium.org/357723003/diff/160001/chrome/browser/net/prediction_options.cc File chrome/browser/net/prediction_options.cc (right): https://codereview.chromium.org/357723003/diff/160001/chrome/browser/net/prediction_options.cc#newcode48 chrome/browser/net/prediction_options.cc:48: DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); On 2014/06/27 18:52:05, mmenke wrote: > include browser_thread.h ...
6 years, 5 months ago (2014-06-27 19:10:24 UTC) #12
mmenke
LGTM!
6 years, 5 months ago (2014-06-27 19:14:17 UTC) #13
Bence
The CQ bit was checked by bnc@chromium.org
6 years, 5 months ago (2014-06-27 19:20:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bnc@chromium.org/357723003/180001
6 years, 5 months ago (2014-06-27 19:21:26 UTC) #15
Bence
The CQ bit was checked by bnc@chromium.org
6 years, 5 months ago (2014-06-27 20:30:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bnc@chromium.org/357723003/200001
6 years, 5 months ago (2014-06-27 20:31:58 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium ...
6 years, 5 months ago (2014-06-28 01:29:39 UTC) #18
commit-bot: I haz the power
6 years, 5 months ago (2014-06-28 20:37:17 UTC) #19
Message was sent while issue was closed.
Change committed as 280525

Powered by Google App Engine
This is Rietveld 408576698