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

Issue 7282054: Remove more unnecessary ChromeURLRequestContext members. (Closed)

Created:
9 years, 5 months ago by willchan no longer on Chromium
Modified:
9 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Remove more unnecessary ChromeURLRequestContext members. ProfileIOData is now always deleted on the IO thread. Replaces a use of ChromeURLRequestContextGetter with a ChromeURLDataManagerBackend getter callback. Also gets rid of ExtensionInfoMap from ChromeURLRequestContext by directly passing it into the places that need it. Gets rid of the HTML5 storage objects from ChromeURLRequestContext too. Adds a workaround for TranslateManager's Profile::GetDefaultRequestContext() use, since after this refactoring (by not requiring ChromeURLRequestContextGetter for ChromeURLDataManagerBackend), it prevents having to initialize the ChromeURLRequestContextGetter in most tests since they don't actually use it. This means |default_request_context_| doesn't always get initialized in BrowserMain(), which causes TranslateManager to crash on startup since it requires |default_request_context_| to be initialized. So we forcibly initialize |default_request_context_| until TranslateManager stops depending on this. BUG=89396 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92668 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92690 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92804

Patch Set 1 #

Patch Set 2 : Clean up ExtensionInfoMap too. #

Patch Set 3 : Merge #

Patch Set 4 : Merge. #

Patch Set 5 : Fix unit_tests build. #

Patch Set 6 : Copy, don't store a member reference. #

Patch Set 7 : Make sure to lazily initialize. #

Patch Set 8 : Always destroy ProfileIOData on IO thread. #

Patch Set 9 : Add new valgrind sigs #

Total comments: 1

Patch Set 10 : Merge #

Patch Set 11 : Merge again #

Total comments: 1

Patch Set 12 : Add comments. #

Patch Set 13 : Merge again! #

Patch Set 14 : Fix build. #

Patch Set 15 : Fix leak. #

Patch Set 16 : Merge again! #

Patch Set 17 : Fix test leak. #

Patch Set 18 : Oops #

Patch Set 19 : Fix a few more test leaks. #

Patch Set 20 : Force initialize default_request_context_ #

Patch Set 21 : Fix lame tests. #

Patch Set 22 : git fail #

Patch Set 23 : Fxi ChromeOS #

Patch Set 24 : Fix up ChromeOS stuff. #

Patch Set 25 : Forward declare. #

Patch Set 26 : FIx build. #

Patch Set 27 : Fix copyright and chormeos tests. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -156 lines) Patch
M chrome/browser/browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +7 lines, -1 line 3 comments Download
M chrome/browser/browsing_data_appcache_helper.h View 21 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/browsing_data_appcache_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 5 chunks +6 lines, -15 lines 0 comments Download
M chrome/browser/download/download_file_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 21 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_protocols.cc View 1 21 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 4 chunks +2 lines, -49 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +3 lines, -12 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_service_unittest.cc View 1 2 3 4 21 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/net/view_blob_internals_job_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/net/view_blob_internals_job_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 21 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.h View 1 2 3 4 5 6 7 8 9 10 21 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 21 3 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 1 2 3 4 5 6 7 8 9 10 21 3 chunks +4 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 14 21 4 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 21 3 chunks +4 lines, -2 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 16 17 18 19 20 21 22 23 24 25 26 9 chunks +22 lines, -16 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 4 chunks +15 lines, -5 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 21 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 21 5 chunks +6 lines, -13 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/offline_resource_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/offline_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 4 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/chrome_url_data_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 21 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chrome_url_data_manager.cc View 1 21 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/chrome_url_data_manager_backend.h View 21 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chrome_url_data_manager_backend.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 21 5 chunks +17 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/devtools_ui.cc View 1 21 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/cookies_view_handler.cc View 21 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/testing_browser_process.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/testing_browser_process.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/test/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 21 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
willchan no longer on Chromium
+arv,+estade: for webui/ +mkwst: chrome/browser/browsing_data_*
9 years, 5 months ago (2011-07-02 18:01:52 UTC) #1
willchan no longer on Chromium
+mpcomplete for ExtensionInfoMap changes in chrome/browser/extensions/ and chrome_render_message_filter.*
9 years, 5 months ago (2011-07-03 10:50:13 UTC) #2
Matt Perry
extension bits LGTM
9 years, 5 months ago (2011-07-06 18:24:34 UTC) #3
Evan Stade
I don't really know what's going on here. http://codereview.chromium.org/7282054/diff/6002/chrome/browser/ui/webui/chrome_url_data_manager.h File chrome/browser/ui/webui/chrome_url_data_manager.h (right): http://codereview.chromium.org/7282054/diff/6002/chrome/browser/ui/webui/chrome_url_data_manager.h#newcode172 chrome/browser/ui/webui/chrome_url_data_manager.h:172: const ...
9 years, 5 months ago (2011-07-06 20:27:54 UTC) #4
willchan no longer on Chromium
+sky Sorry Evan, Scott usually reviews those changes and arv rubberstamps them. I've added Scott ...
9 years, 5 months ago (2011-07-12 13:55:34 UTC) #5
sky
LGTM (I reviewed patchset 11, patchset 12 didn't look like it made it up correctly). ...
9 years, 5 months ago (2011-07-12 15:40:51 UTC) #6
Evan Stade
the diffs aren't showing. Just says error: chunk mismatch (?)
9 years, 5 months ago (2011-07-12 16:16:05 UTC) #7
Evan Stade
well, rubber stamp lgtm since it seems Scott's reviewed it
9 years, 5 months ago (2011-07-12 16:17:36 UTC) #8
commit-bot: I haz the power
Change committed as 92668
9 years, 5 months ago (2011-07-15 09:52:06 UTC) #9
commit-bot: I haz the power
Change committed as 92690
9 years, 5 months ago (2011-07-15 14:34:52 UTC) #10
Dmitry Polukhin
http://codereview.chromium.org/7282054/diff/36001/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/7282054/diff/36001/chrome/browser/browser_main.cc#newcode2016 chrome/browser/browser_main.cc:2016: profile->GetRequestContext(); It looks like removing this line broke Chrome ...
9 years, 5 months ago (2011-07-18 08:47:23 UTC) #11
Dmitry Polukhin
http://codereview.chromium.org/7282054/diff/36001/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/7282054/diff/36001/chrome/browser/browser_main.cc#newcode2016 chrome/browser/browser_main.cc:2016: profile->GetRequestContext(); On 2011/07/18 08:47:23, Dmitry Polukhin wrote: > It ...
9 years, 5 months ago (2011-07-18 09:06:12 UTC) #12
willchan no longer on Chromium
http://codereview.chromium.org/7282054/diff/36001/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/7282054/diff/36001/chrome/browser/browser_main.cc#newcode2016 chrome/browser/browser_main.cc:2016: profile->GetRequestContext(); On 2011/07/18 09:06:12, Dmitry Polukhin wrote: > On ...
9 years, 5 months ago (2011-07-18 10:20:32 UTC) #13
Dmitry Polukhin
9 years, 5 months ago (2011-07-18 11:21:27 UTC) #14
Yes, I'm using TOT Chrome synced on 92834. I have to revert this CL to avoid
crash. You can reproduce it on Linux by building Chrome for Chrome OS and run it
on Linux. 'GYP_DEFINES="chromeos=1 target_arch=ia32" gclient runhooks' and run
'out/Debug/chrome --login-manager'

Powered by Google App Engine
This is Rietveld 408576698