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

Issue 412143009: Moved data reduction proxy initialization logic to ProfileImplIOData (Closed)

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

Description

Moved data reduction proxy initialization logic from ProfileIOData, where it would be available to all profiles, including Incognito, to ProfileImplIOData, where it would only be available to non- Incognito profiles. In the process, (1) refactored and simplified DataReductionProxyUsageStats so that it could live on the IO thread. (2) Added a keyed service called DataReductionProxyChromeSettings, so chrome browsers on all platforms could use the same pattern. BUG=396695 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288288

Patch Set 1 : #

Total comments: 16

Patch Set 2 : Addressed issues #

Patch Set 3 : Removed DataReductionProxyChromeSettings from this CL #

Patch Set 4 : Addressed comments from willchan #

Patch Set 5 : #

Total comments: 15

Patch Set 6 : #

Patch Set 7 : Addressed comments from willchan #

Total comments: 35

Patch Set 8 : Addressed comments from willchan and sgurun #

Total comments: 23

Patch Set 9 : addressed comments from willchan and sgurun #

Patch Set 10 : Trybot nit #

Patch Set 11 : Android webview fix #

Patch Set 12 : Added suggestion from sgurun #

Total comments: 2

Patch Set 13 : Register prefs #

Patch Set 14 : Rebase #

Patch Set 15 : fix #

Patch Set 16 : nit #

Patch Set 17 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+509 lines, -314 lines) Patch
M android_webview/browser/aw_browser_context.h View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -11 lines 0 comments Download
M android_webview/browser/aw_browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +21 lines, -18 lines 0 comments Download
M android_webview/browser/net/aw_url_request_context_getter.h View 1 2 3 4 5 6 7 3 chunks +12 lines, -6 lines 0 comments Download
M android_webview/browser/net/aw_url_request_context_getter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +30 lines, -19 lines 0 comments Download
M android_webview/native/aw_contents_statics.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +12 lines, -4 lines 0 comments Download
M chrome/browser/io_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +13 lines, -10 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +34 lines, -36 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -12 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +35 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 1 2 3 4 5 6 7 8 3 chunks +23 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +49 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +4 lines, -46 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +19 lines, -10 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +33 lines, -15 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +17 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_config_service.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_config_service.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -8 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_config_service_unittest.cc View 1 2 3 4 5 6 7 5 chunks +21 lines, -8 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_params.h View 1 2 3 4 5 6 7 5 chunks +11 lines, -6 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_params.cc View 1 2 3 4 5 6 7 8 2 chunks +23 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_settings.h View 1 2 3 4 5 6 7 8 5 chunks +4 lines, -10 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -6 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h View 1 2 3 4 5 6 chunks +34 lines, -15 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.cc View 1 2 3 4 5 4 chunks +36 lines, -32 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc View 1 4 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
bengr
nyquist: chrome/android/* thestig: chrome/browser/io_thread.* marq: chrome/browser/net/spdyproxy/* and components/data_reduction_proxy* willchan: chrome/browser/profiles/*
6 years, 5 months ago (2014-07-25 02:08:44 UTC) #1
bengr
On 2014/07/25 02:08:44, bengr1 wrote: > nyquist: chrome/android/* > thestig: chrome/browser/io_thread.* > marq: chrome/browser/net/spdyproxy/* and ...
6 years, 5 months ago (2014-07-25 20:52:16 UTC) #2
willchan no longer on Chromium
Here's a first pass https://codereview.chromium.org/412143009/diff/100001/chrome/browser/io_thread.h File chrome/browser/io_thread.h (right): https://codereview.chromium.org/412143009/diff/100001/chrome/browser/io_thread.h#newcode442 chrome/browser/io_thread.h:442: #if defined(SPDY_PROXY_AUTH_ORIGIN) Why did this ...
6 years, 4 months ago (2014-07-28 15:45:23 UTC) #3
bengr
https://codereview.chromium.org/412143009/diff/100001/chrome/browser/io_thread.h File chrome/browser/io_thread.h (right): https://codereview.chromium.org/412143009/diff/100001/chrome/browser/io_thread.h#newcode442 chrome/browser/io_thread.h:442: #if defined(SPDY_PROXY_AUTH_ORIGIN) On 2014/07/28 15:45:22, willchan wrote: > Why ...
6 years, 4 months ago (2014-07-28 20:29:04 UTC) #4
willchan no longer on Chromium
https://codereview.chromium.org/412143009/diff/100001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://codereview.chromium.org/412143009/diff/100001/chrome/browser/profiles/profile_impl.cc#newcode734 chrome/browser/profiles/profile_impl.cc:734: // Post to prevent a Profile initialization loop. On ...
6 years, 4 months ago (2014-07-29 00:26:57 UTC) #5
bengr
https://codereview.chromium.org/412143009/diff/180001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/412143009/diff/180001/android_webview/browser/aw_browser_context.cc#newcode105 android_webview/browser/aw_browser_context.cc:105: data_reduction_proxy_auth_request_handler_.reset( I don't see one. Maybe Selim knows? On ...
6 years, 4 months ago (2014-07-29 21:29:53 UTC) #6
bengr
Addressed comments from willchan@. sgurun@, please review android_webview/*
6 years, 4 months ago (2014-07-31 17:48:46 UTC) #7
willchan no longer on Chromium
marq_: Are you planning on reviewing this? I'd like to get another eye on this, ...
6 years, 4 months ago (2014-07-31 22:31:35 UTC) #8
sgurun-gerrit only
https://codereview.chromium.org/412143009/diff/240001/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): https://codereview.chromium.org/412143009/diff/240001/android_webview/browser/net/aw_url_request_context_getter.cc#newcode199 android_webview/browser/net/aw_url_request_context_getter.cc:199: data_reduction_proxy_config_service_.release()); agreed with Will. (thanks for doing such a ...
6 years, 4 months ago (2014-07-31 23:11:55 UTC) #9
marq (ping after 24h)
On 2014/07/31 22:31:35, willchan wrote: > marq_: Are you planning on reviewing this? I'd like ...
6 years, 4 months ago (2014-07-31 23:14:34 UTC) #10
willchan no longer on Chromium
Sorry, didn't mean it in a "please look at this now". Just more of a, ...
6 years, 4 months ago (2014-07-31 23:17:58 UTC) #11
marq (ping after 24h)
https://codereview.chromium.org/412143009/diff/240001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/412143009/diff/240001/chrome/browser/io_thread.cc#newcode648 chrome/browser/io_thread.cc:648: globals_->data_reduction_proxy_params.reset( Why aren't the holdback and promoAllowed param flags ...
6 years, 4 months ago (2014-07-31 23:54:33 UTC) #12
bengr
https://codereview.chromium.org/412143009/diff/240001/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): https://codereview.chromium.org/412143009/diff/240001/android_webview/browser/net/aw_url_request_context_getter.cc#newcode199 android_webview/browser/net/aw_url_request_context_getter.cc:199: data_reduction_proxy_config_service_.release()); Thanks for going into so much detail. I ...
6 years, 4 months ago (2014-08-02 01:10:32 UTC) #13
willchan no longer on Chromium
I've reviewed the profiles and chrome/browser/net parts pretty thoroughly, but not all the details in ...
6 years, 4 months ago (2014-08-04 23:13:46 UTC) #14
marq (ping after 24h)
LGTM, although the duplication of the Params object still bugs me.
6 years, 4 months ago (2014-08-05 00:03:42 UTC) #15
sgurun-gerrit only
https://codereview.chromium.org/412143009/diff/260001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/412143009/diff/260001/android_webview/browser/aw_browser_context.cc#newcode107 android_webview/browser/aw_browser_context.cc:107: scoped_ptr<data_reduction_proxy::DataReductionProxyConfigService> nit: import name from data_reduction_proxy namespace to prevent ...
6 years, 4 months ago (2014-08-05 01:26:36 UTC) #16
sgurun-gerrit only
6 years, 4 months ago (2014-08-05 01:26:40 UTC) #17
bengr
thestig and nyquist, PTAL https://codereview.chromium.org/412143009/diff/260001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/412143009/diff/260001/android_webview/browser/aw_browser_context.cc#newcode107 android_webview/browser/aw_browser_context.cc:107: scoped_ptr<data_reduction_proxy::DataReductionProxyConfigService> On 2014/08/05 01:26:34, sgurun ...
6 years, 4 months ago (2014-08-05 02:35:07 UTC) #18
Lei Zhang
I'm delegating c/b/io_thread* OWNERship to some networking folks. [1] So taking myself off this CL ...
6 years, 4 months ago (2014-08-05 02:52:23 UTC) #19
willchan no longer on Chromium
LGTM https://codereview.chromium.org/412143009/diff/260001/android_webview/browser/net/aw_url_request_context_getter.h File android_webview/browser/net/aw_url_request_context_getter.h (right): https://codereview.chromium.org/412143009/diff/260001/android_webview/browser/net/aw_url_request_context_getter.h#newcode40 android_webview/browser/net/aw_url_request_context_getter.h:40: scoped_ptr<data_reduction_proxy::DataReductionProxyConfigService> On 2014/08/05 02:35:07, bengr1 wrote: > On ...
6 years, 4 months ago (2014-08-05 03:03:52 UTC) #20
willchan no longer on Chromium
My LGTM also covers c/b/io_thread*
6 years, 4 months ago (2014-08-05 03:04:06 UTC) #21
chromium-reviews
Aw lgtm On Aug 4, 2014 8:03 PM, <willchan@chromium.org> wrote: > LGTM > > > ...
6 years, 4 months ago (2014-08-05 04:35:24 UTC) #22
sgurun-gerrit only
On 2014/08/05 04:35:24, chromium-reviews wrote: > Aw lgtm > On Aug 4, 2014 8:03 PM, ...
6 years, 4 months ago (2014-08-05 17:11:26 UTC) #23
bengr
The CQ bit was checked by bengr@chromium.org
6 years, 4 months ago (2014-08-06 01:13:06 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bengr@chromium.org/412143009/300001
6 years, 4 months ago (2014-08-06 01:15:56 UTC) #25
bengr
The CQ bit was unchecked by bengr@chromium.org
6 years, 4 months ago (2014-08-06 01:34:15 UTC) #26
sgurun-gerrit only
On 2014/08/06 01:34:15, bengr1 wrote: > The CQ bit was unchecked by mailto:bengr@chromium.org looking at ...
6 years, 4 months ago (2014-08-06 21:46:36 UTC) #27
sgurun-gerrit only
https://codereview.chromium.org/412143009/diff/340001/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): https://codereview.chromium.org/412143009/diff/340001/android_webview/browser/net/aw_url_request_context_getter.cc#newcode228 android_webview/browser/net/aw_url_request_context_getter.cc:228: #if defined(SPDY_PROXY_AUTH_ORIGIN) do you still want to keep this?
6 years, 4 months ago (2014-08-07 00:48:11 UTC) #28
bengr
https://codereview.chromium.org/412143009/diff/340001/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): https://codereview.chromium.org/412143009/diff/340001/android_webview/browser/net/aw_url_request_context_getter.cc#newcode228 android_webview/browser/net/aw_url_request_context_getter.cc:228: #if defined(SPDY_PROXY_AUTH_ORIGIN) On 2014/08/07 00:48:11, sgurun wrote: > do ...
6 years, 4 months ago (2014-08-07 00:49:38 UTC) #29
sgurun-gerrit only
aw still lgtm
6 years, 4 months ago (2014-08-07 00:51:12 UTC) #30
bengr
The CQ bit was checked by bengr@chromium.org
6 years, 4 months ago (2014-08-07 01:52:35 UTC) #31
bengr
The CQ bit was unchecked by bengr@chromium.org
6 years, 4 months ago (2014-08-07 01:52:48 UTC) #32
nyquist
looks like the PrefMemberBase::VerifyValuePrefName DCHECK is failing on Android.
6 years, 4 months ago (2014-08-07 04:19:24 UTC) #33
nyquist
Sorry for being unclear in my previous comment. This is the check failure: Check failed: ...
6 years, 4 months ago (2014-08-07 17:01:52 UTC) #34
bengr
The CQ bit was checked by bengr@chromium.org
6 years, 4 months ago (2014-08-08 02:02:54 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bengr@chromium.org/412143009/460001
6 years, 4 months ago (2014-08-08 02:05:38 UTC) #36
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-08 06:55:31 UTC) #37
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 09:50:53 UTC) #38
Message was sent while issue was closed.
Change committed as 288288

Powered by Google App Engine
This is Rietveld 408576698