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

Issue 1862203005: Remove ContentBrowserClient::CreateRequestContext & CreateRequestContextForStoragePartition. (Closed)

Created:
4 years, 8 months ago by jam
Modified:
4 years, 8 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, sadrul, nasko+codewatch_chromium.org, nyquist+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, tapted, wjmaclean, maniscalco+watch-blimp_chromium.org, Matt Giuca, lcwu+watch_chromium.org, jam, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, darin-cc_chromium.org, halliwell+watch_chromium.org, kalyank, android-webview-reviews_chromium.org, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, extensions-reviews_chromium.org, Peter Beverloo, chromium-apps-reviews_chromium.org, mkwst+moarreviews-shell_chromium.org, jochen+watch_chromium.org, anandc+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, tfarina, dtrainor+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove ContentBrowserClient::CreateRequestContext & CreateRequestContextForStoragePartition. The various implementations just delegate to the BrowserContext to create the request context, so these should just be on BrowserContext directly. The main motivator is to remove BrowserContext::GetRequestContext, which depends on this change since in tests the default ContentBrowserClient doesn't know which BrowserContext implementation is used. GetRequestContext duplicates BrowserContext::GetDefaultStoragePartition(browser_context)->GetURLRequestContext(). BUG=159193 NOPRESUBMIT=true Committed: https://crrev.com/547f267cbb9baac850a63e01cdb063448538b6f4 Cr-Commit-Position: refs/heads/master@{#385855}

Patch Set 1 #

Patch Set 2 #

Patch Set 3 : merge #

Patch Set 4 #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -480 lines) Patch
M android_webview/browser/aw_browser_context.h View 2 chunks +8 lines, -9 lines 0 comments Download
M android_webview/browser/aw_browser_context.cc View 2 chunks +24 lines, -24 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.h View 1 chunk +0 lines, -10 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 chunk +0 lines, -24 lines 0 comments Download
M android_webview/browser/net/aw_url_request_context_getter.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/content/client/shell_content_browser_client.h View 1 chunk +0 lines, -6 lines 0 comments Download
M ash/shell/content/client/shell_content_browser_client.cc View 2 chunks +0 lines, -15 lines 0 comments Download
M blimp/engine/app/blimp_content_browser_client.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M blimp/engine/app/blimp_content_browser_client.cc View 1 2 2 chunks +0 lines, -12 lines 0 comments Download
M blimp/engine/app/blimp_url_request_context_getter.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M blimp/engine/common/blimp_browser_context.h View 1 2 3 4 5 1 chunk +7 lines, -5 lines 0 comments Download
M blimp/engine/common/blimp_browser_context.cc View 1 2 3 4 5 2 chunks +25 lines, -17 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 1 chunk +0 lines, -23 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 chunk +0 lines, -23 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 3 chunks +21 lines, -21 lines 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile.h View 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile.cc View 2 chunks +15 lines, -15 lines 0 comments Download
M chrome/test/base/testing_profile.h View 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 3 chunks +18 lines, -18 lines 0 comments Download
M chromecast/browser/cast_browser_context.h View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M chromecast/browser/cast_browser_context.cc View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.cc View 1 2 1 chunk +0 lines, -8 lines 0 comments Download
M chromecast/browser/url_request_context_factory.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl_map.cc View 1 chunk +5 lines, -6 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M content/public/browser/browser_context.h View 1 3 chunks +29 lines, -0 lines 2 comments Download
M content/public/browser/content_browser_client.h View 1 2 4 chunks +0 lines, -31 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 1 chunk +0 lines, -17 lines 0 comments Download
M content/public/test/test_browser_context.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M content/public/test/test_browser_context.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
M content/shell/browser/shell_browser_context.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.h View 1 2 chunks +0 lines, -12 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 2 chunks +0 lines, -33 lines 0 comments Download
M content/shell/browser/shell_url_request_context_getter.h View 1 1 chunk +1 line, -1 line 0 comments Download
M extensions/shell/browser/shell_browser_context.h View 1 chunk +4 lines, -4 lines 0 comments Download
M extensions/shell/browser/shell_browser_context.cc View 1 2 3 3 chunks +21 lines, -5 lines 1 comment Download
M extensions/shell/browser/shell_browser_main_parts.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M extensions/shell/browser/shell_content_browser_client.h View 1 chunk +0 lines, -4 lines 0 comments Download
M extensions/shell/browser/shell_content_browser_client.cc View 1 chunk +2 lines, -19 lines 0 comments Download
M headless/lib/browser/headless_browser_context.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -5 lines 0 comments Download
M headless/lib/browser/headless_browser_context.cc View 1 2 3 4 5 6 7 1 chunk +25 lines, -5 lines 0 comments Download
M headless/lib/browser/headless_content_browser_client.h View 2 chunks +0 lines, -7 lines 0 comments Download
M headless/lib/browser/headless_content_browser_client.cc View 2 chunks +0 lines, -24 lines 0 comments Download
M headless/lib/browser/headless_url_request_context_getter.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/views_content_client/views_content_browser_client.h View 2 chunks +0 lines, -8 lines 0 comments Download
M ui/views_content_client/views_content_browser_client.cc View 2 chunks +0 lines, -14 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
jam
4 years, 8 months ago (2016-04-07 18:57:16 UTC) #3
Avi (use Gerrit)
Overall, LGTM, but questions about modernizing it while we're in here. https://codereview.chromium.org/1862203005/diff/140001/content/public/browser/browser_context.h File content/public/browser/browser_context.h (right): ...
4 years, 8 months ago (2016-04-07 19:10:05 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1862203005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1862203005/140001
4 years, 8 months ago (2016-04-07 20:11:55 UTC) #6
jam
https://codereview.chromium.org/1862203005/diff/140001/content/public/browser/browser_context.h File content/public/browser/browser_context.h (right): https://codereview.chromium.org/1862203005/diff/140001/content/public/browser/browser_context.h#newcode64 content/public/browser/browser_context.h:64: ProtocolHandlerMap; On 2016/04/07 19:10:05, Avi wrote: > Is there ...
4 years, 8 months ago (2016-04-07 20:12:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1862203005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1862203005/140001
4 years, 8 months ago (2016-04-07 20:23:27 UTC) #11
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 8 months ago (2016-04-07 21:16:38 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 21:29:34 UTC) #15
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/547f267cbb9baac850a63e01cdb063448538b6f4
Cr-Commit-Position: refs/heads/master@{#385855}

Powered by Google App Engine
This is Rietveld 408576698