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

Issue 665703002: Activate data reduction proxy after profile initialization is complete. (Closed)

Created:
6 years, 2 months ago by Not at Google. Contact bengr
Modified:
6 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, yoshiki+watch_chromium.org, rginda+watch_chromium.org, marq (ping after 24h)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Activate data reduction proxy after profile initialization is complete. When we activate data reduction proxy, a request is made to the prober URL. If this request is made before ProfileManager::DoFinalInitForServices() completes, it causes a crash because HostContentSettingsMap is not yet initialized. BUG=424260 Committed: https://crrev.com/8d8aeb6b0d6b5bc33b4ff957177ce28904e57a1e Cr-Commit-Position: refs/heads/master@{#300995}

Patch Set 1 #

Patch Set 2 : Fix webview and tests. #

Patch Set 3 : Fix tests. #

Total comments: 8

Patch Set 4 : Addressed bengr's comments #

Total comments: 8

Patch Set 5 : Move MaybeActivateDataReductionProxy to DoFinalInitForServices. #

Patch Set 6 : Sync to head #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -13 lines) Patch
M android_webview/browser/aw_browser_context.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 2 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc View 1 2 chunks +0 lines, -6 lines 0 comments Download

Messages

Total messages: 28 (5 generated)
Not at Google. Contact bengr
sgurun: android_webview/browser/aw_browser_context.cc bengr: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc mmenke: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h chrome/browser/profiles/profile_manager.cc
6 years, 2 months ago (2014-10-21 17:30:31 UTC) #2
bengr
https://codereview.chromium.org/665703002/diff/40001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/665703002/diff/40001/chrome/browser/profiles/profile_manager.cc#newcode986 chrome/browser/profiles/profile_manager.cc:986: DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile)-> What happens in incognito? https://codereview.chromium.org/665703002/diff/40001/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc (right): ...
6 years, 2 months ago (2014-10-22 00:46:43 UTC) #3
Not at Google. Contact bengr
https://codereview.chromium.org/665703002/diff/40001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/665703002/diff/40001/chrome/browser/profiles/profile_manager.cc#newcode986 chrome/browser/profiles/profile_manager.cc:986: DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile)-> On 2014/10/22 00:46:43, bengr wrote: > What happens ...
6 years, 2 months ago (2014-10-22 20:03:42 UTC) #4
bengr
lgtm
6 years, 2 months ago (2014-10-22 20:15:27 UTC) #5
sgurun-gerrit only
https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc#newcode987 chrome/browser/profiles/profile_manager.cc:987: MaybeActivateDataReductionProxy(true); I am not the owner of this code, ...
6 years, 2 months ago (2014-10-22 20:25:59 UTC) #6
Not at Google. Contact bengr
https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc#newcode987 chrome/browser/profiles/profile_manager.cc:987: MaybeActivateDataReductionProxy(true); On 2014/10/22 20:25:59, sgurun wrote: > I am ...
6 years, 2 months ago (2014-10-22 20:55:29 UTC) #7
mmenke
https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc#newcode987 chrome/browser/profiles/profile_manager.cc:987: MaybeActivateDataReductionProxy(true); On 2014/10/22 20:55:29, kundaji wrote: > On 2014/10/22 ...
6 years, 2 months ago (2014-10-23 17:17:26 UTC) #8
Not at Google. Contact bengr
https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc#newcode987 chrome/browser/profiles/profile_manager.cc:987: MaybeActivateDataReductionProxy(true); On 2014/10/23 17:17:26, mmenke wrote: > On 2014/10/22 ...
6 years, 2 months ago (2014-10-23 17:29:33 UTC) #9
mmenke
https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc#newcode987 chrome/browser/profiles/profile_manager.cc:987: MaybeActivateDataReductionProxy(true); On 2014/10/23 17:29:33, kundaji wrote: > On 2014/10/23 ...
6 years, 2 months ago (2014-10-23 17:36:59 UTC) #10
Not at Google. Contact bengr
https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc#newcode987 chrome/browser/profiles/profile_manager.cc:987: MaybeActivateDataReductionProxy(true); On 2014/10/23 17:36:59, mmenke wrote: > On 2014/10/23 ...
6 years, 2 months ago (2014-10-23 17:39:43 UTC) #11
Not at Google. Contact bengr
https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc#newcode987 chrome/browser/profiles/profile_manager.cc:987: MaybeActivateDataReductionProxy(true); On 2014/10/23 17:36:59, mmenke wrote: > On 2014/10/23 ...
6 years, 2 months ago (2014-10-23 17:40:54 UTC) #12
mmenke
https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/665703002/diff/60001/chrome/browser/profiles/profile_manager.cc#newcode987 chrome/browser/profiles/profile_manager.cc:987: MaybeActivateDataReductionProxy(true); On 2014/10/23 17:40:53, kundaji wrote: > On 2014/10/23 ...
6 years, 2 months ago (2014-10-23 17:43:32 UTC) #13
Not at Google. Contact bengr
Discussed in person. Moved MaybeActivateDataReductionProxy to DoFinalInitForServices.
6 years, 2 months ago (2014-10-23 19:54:07 UTC) #14
Not at Google. Contact bengr
sgurun: android_webview/browser/aw_browser_context.cc bengr: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc mmenke: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h rpetterson: chrome/browser/profiles/profile_manager.cc
6 years, 2 months ago (2014-10-23 19:55:23 UTC) #16
rpetterson
https://codereview.chromium.org/665703002/diff/100001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/665703002/diff/100001/chrome/browser/profiles/profile_manager.cc#newcode1017 chrome/browser/profiles/profile_manager.cc:1017: DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile)-> Is there any risk of this call slowing ...
6 years, 2 months ago (2014-10-23 19:57:04 UTC) #17
Not at Google. Contact bengr
https://codereview.chromium.org/665703002/diff/100001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/665703002/diff/100001/chrome/browser/profiles/profile_manager.cc#newcode1017 chrome/browser/profiles/profile_manager.cc:1017: DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile)-> On 2014/10/23 19:57:04, rpetterson wrote: > Is there ...
6 years, 2 months ago (2014-10-23 20:08:51 UTC) #18
rpetterson
On 2014/10/23 20:08:51, kundaji wrote: > https://codereview.chromium.org/665703002/diff/100001/chrome/browser/profiles/profile_manager.cc > File chrome/browser/profiles/profile_manager.cc (right): > > https://codereview.chromium.org/665703002/diff/100001/chrome/browser/profiles/profile_manager.cc#newcode1017 > ...
6 years, 2 months ago (2014-10-23 21:28:45 UTC) #19
Not at Google. Contact bengr
On 2014/10/23 21:28:45, rpetterson wrote: > On 2014/10/23 20:08:51, kundaji wrote: > > > https://codereview.chromium.org/665703002/diff/100001/chrome/browser/profiles/profile_manager.cc ...
6 years, 2 months ago (2014-10-23 21:58:47 UTC) #20
rpetterson
On 2014/10/23 21:58:47, kundaji wrote: > On 2014/10/23 21:28:45, rpetterson wrote: > > On 2014/10/23 ...
6 years, 2 months ago (2014-10-23 22:05:27 UTC) #21
sgurun-gerrit only
On 2014/10/23 22:05:27, rpetterson wrote: > On 2014/10/23 21:58:47, kundaji wrote: > > On 2014/10/23 ...
6 years, 2 months ago (2014-10-23 22:13:38 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/665703002/100001
6 years, 2 months ago (2014-10-23 23:00:59 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years, 2 months ago (2014-10-24 00:07:01 UTC) #27
commit-bot: I haz the power
6 years, 2 months ago (2014-10-24 00:08:03 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/8d8aeb6b0d6b5bc33b4ff957177ce28904e57a1e
Cr-Commit-Position: refs/heads/master@{#300995}

Powered by Google App Engine
This is Rietveld 408576698