|
Revert of Simplify BrowserContext by removing redundant methods. (patchset #12 id:220001 of https://codereview.chromium.org/1864583006/ )
Reason for revert:
Makes PrecacheManagerTest.StartAndCancelPrecachingBeforeTopHostsCompleted in components_unittests crash on multiple platforms with an error like this:
[ RUN ] PrecacheManagerTest.StartAndCancelPrecachingBeforeTopHostsCompleted
[31991:31991:0411/180643:26046834882:ERROR:memory_mapped_file.cc(40)] Couldn't open /tmp/runZr5HpJ/out/Debug/content_shell.pak
[31991:31991:0411/180643:26046834926:ERROR:data_pack.cc(80)] Failed to mmap datapack
[31991:31991:0411/180643:26046836597:ERROR:connection.cc(1921)] Precache sqlite error 14, errno -2: unable to open database file, sql: -- sqlite3_open()
[31991:31991:0411/180643:26046836627:FATAL:connection.cc(1936)] unable to open database file
#0 0x7ff0fa5c8fde base::debug::StackTrace::StackTrace()
#1 0x7ff0fa62984f logging::LogMessage::~LogMessage()
#2 0x7ff0f6446114 sql::Connection::OnSqliteError()
#3 0x7ff0f64403e0 sql::Connection::OpenInternal()
#4 0x7ff0f643ff7d sql::Connection::Open()
#5 0x0000033857a6 precache::PrecacheDatabase::Init()
#6 0x00000232eaf1 _ZN4base8internal15RunnableAdapterIMN8autofill23AutofillDownloadManagerEFbRKNS3_15FormRequestDataEEE3RunIJS6_EEEbPS3_DpOT_
#7 0x000003382e71 _ZN4base8internal12InvokeHelperILb0EvNS0_15RunnableAdapterIMN8precache16PrecacheDatabaseEFbRKNS_8FilePathEEEEE8MakeItSoIJPS4_S7_EEEvSA_DpOT_
#8 0x000003382e28 _ZN4base8internal7InvokerINS_13IndexSequenceIJLm0ELm1EEEENS0_9BindStateINS0_15RunnableAdapterIMN8precache16PrecacheDatabaseEFbRKNS_8FilePathEEEEFvPS7_SA_EJNS0_17UnretainedWrapperIS7_EERS8_EEENS0_12InvokeHelperILb0EvSD_EEFvvEE3RunEPNS0_13BindStateBaseE
#9 0x7ff0fa5a93be base::Callback<>::Run()
#10 0x7ff0fa5ce9ce base::debug::TaskAnnotator::RunTask()
#11 0x7ff0fa64668c base::MessageLoop::RunTask()
#12 0x7ff0fa646928 base::MessageLoop::DeferOrRunPendingTask()
#13 0x7ff0fa646af2 base::MessageLoop::DoWork()
#14 0x7ff0fa658f9c base::MessagePumpGlib::HandleDispatch()
#15 0x7ff0fa659761 base::(anonymous namespace)::WorkSourceDispatch()
#16 0x7ff0e7fddd13 g_main_context_dispatch
#17 0x7ff0e7fde060 <unknown>
#18 0x7ff0e7fde124 g_main_context_iteration
#19 0x7ff0fa65909f base::MessagePumpGlib::Run()
#20 0x7ff0fa64609f base::MessageLoop::RunHandler()
#21 0x7ff0fa6e6404 base::RunLoop::Run()
#22 0x7ff0fa6e6669 base::RunLoop::RunUntilIdle()
#23 0x0000019ffd7f content::TestBrowserThreadBundle::~TestBrowserThreadBundle()
#24 0x00000151001b precache::(anonymous namespace)::PrecacheManagerTest::~PrecacheManagerTest()
#25 0x0000015115c5 precache::(anonymous namespace)::PrecacheManagerTest_StartAndCancelPrecachingBeforeTopHostsCompleted_Test::~PrecacheManagerTest_StartAndCancelPrecachingBeforeTopHostsCompleted_Test()
#26 0x0000015115e9 precache::(anonymous namespace)::PrecacheManagerTest_StartAndCancelPrecachingBeforeTopHostsCompleted_Test::~PrecacheManagerTest_StartAndCancelPrecachingBeforeTopHostsCompleted_Test()
#27 0x0000008d7c0b base::RefCountedThreadSafe<>::DeleteInternal()
#28 0x00000266960a _ZN7testing8internal12InvokeHelperIjNSt3tr15tupleIJEEEE12InvokeMethodIN3gfx13GPUTimingFakeEMS8_FjvEEEjPT_T0_RKS4_
#29 0x000003852bde testing::internal::HandleExceptionsInMethodIfSupported<>()
#30 0x000003848190 testing::TestInfo::Run()
#31 0x0000038486ea testing::TestCase::Run()
#32 0x00000384da3c testing::internal::UnitTestImpl::RunAllTests()
#33 0x000003865a2a testing::internal::HandleSehExceptionsInMethodIfSupported<>()
#34 0x00000385425e testing::internal::HandleExceptionsInMethodIfSupported<>()
#35 0x00000384d6df testing::UnitTest::Run()
#36 0x00000079c6c1 RUN_ALL_TESTS()
#37 0x00000079b6f8 base::TestSuite::Run()
#38 0x000000760dd9 _ZN4base8internal15RunnableAdapterIMNS_9TestSuiteEFivEE3RunIJEEEiPS2_DpOT_
#39 0x0000007602dc _ZN4base8internal12InvokeHelperILb0EiNS0_15RunnableAdapterIMNS_9TestSuiteEFivEEEE8MakeItSoIJPN12_GLOBAL__N_119ComponentsTestSuiteEEEEiS6_DpOT_
#40 0x00000076029d _ZN4base8internal7InvokerINS_13IndexSequenceIJLm0EEEENS0_9BindStateINS0_15RunnableAdapterIMNS_9TestSuiteEFivEEEFiPS6_EJNS0_17UnretainedWrapperIN12_GLOBAL__N_119ComponentsTestSuiteEEEEEENS0_12InvokeHelperILb0EiS9_EEFivEE3RunEPNS0_13BindStateBaseE
#41 0x000000782c6e base::Callback<>::Run()
#42 0x0000007e7586 base::(anonymous namespace)::LaunchUnitTestsInternal()
#43 0x0000007e73ec base::LaunchUnitTests()
#44 0x00000075fa54 main
#45 0x7ff0e4a2176d __libc_start_main
#46 0x00000075f885 <unknown>
I compared the blamelists of the following builds:
https://build.chromium.org/p/chromium.linux/builders/Android%20Tests%20%28dbg%29/builds/33837
https://build.chromium.org/p/chromium.linux/builders/Linux%20Tests%20%28dbg%29%281%29/builds/53467
https://build.chromium.org/p/chromium.mac/builders/Mac10.9%20Tests%20%28dbg%29/builds/22462
https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%28dbg%29%281%29/builds/47677
It gives me this range:
https://chromium.googlesource.com/chromium/src/+log/1007a4af51fee305fd95933d9bdcd83c89f9df29%5E..3315cc8506cfffc3cad3c62d18eff4d4fd89293c
The other two CLs just change scoped_ptr -> unique_ptr and static initializers, which makes me think the breakage (even if it's strange it didn't fail in CQ), must be this CL.
Original issue's description:
> Simplify BrowserContext by removing redundant methods.
>
> GetRequestContext duplicates BrowserContext::GetDefaultStoragePartition(browser_context)->GetURLRequestContext().
>
> BUG= 159193
>
> Committed: https://crrev.com/f26bfb5f167883133d755704bfab8ab8215959c9
> Cr-Commit-Position: refs/heads/master@{#386512}
TBR=avi@chromium.org,jam@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG= 159193
Committed: https://crrev.com/78254e40461626f470a548a98fee0ce8ae3f7636
Cr-Commit-Position: refs/heads/master@{#386593}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+223 lines, -342 lines) |
Patch |
 |
M |
android_webview/browser/aw_browser_context.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/aw_browser_context.cc
|
View
|
|
2 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/net/token_binding_manager.cc
|
View
|
|
4 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/aw_contents_statics.cc
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
blimp/engine/common/blimp_browser_context.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
blimp/engine/common/blimp_browser_context.cc
|
View
|
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/browsing_data/browsing_data_remover.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/browsing_data/browsing_data_remover.cc
|
View
|
|
2 chunks |
+12 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/login/profile_auth_data_unittest.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/login/session/user_session_manager.cc
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/dom_distiller/dom_distiller_service_factory.cc
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/copresence/copresence_api.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/dashboard_private/dashboard_private_api.cc
|
View
|
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/gcd_private/gcd_private_api.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/image_writer_private/operation_manager.cc
|
View
|
|
2 chunks |
+7 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
|
View
|
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_reenabler.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/external_install_error.cc
|
View
|
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/install_verifier.cc
|
View
|
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/updater/chrome_update_client_config.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/printing/cloud_print/privet_notifications.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profile_resetter/reset_report_uploader.cc
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/off_the_record_profile_impl.h
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/off_the_record_profile_impl.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_impl.h
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_impl.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/search_engines/template_url_fetcher_factory.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/spellchecker/spellcheck_service.cc
|
View
|
|
3 chunks |
+2 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/spellchecker/spelling_service_client.cc
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync_file_system/drive_backend/sync_engine.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/test/base/testing_profile.h
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/test/base/testing_profile.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chromecast/browser/cast_browser_context.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chromecast/browser/cast_browser_context.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromecast/browser/cast_browser_main_parts.cc
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
chromecast/browser/geolocation/cast_access_token_store.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
components/autofill/content/browser/content_autofill_driver.cc
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/autofill/content/browser/content_autofill_driver_unittest.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
components/dom_distiller/standalone/content_extractor_browsertest.cc
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
components/feedback/feedback_uploader_chrome.cc
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
components/feedback/feedback_uploader_chrome_unittest.cc
|
View
|
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/precache/content/precache_manager.cc
|
View
|
|
2 chunks |
+7 lines, -10 lines |
0 comments
|
Download
|
 |
M |
components/precache/content/precache_manager_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/browser_context.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.cc
|
View
|
|
3 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/cache_storage/cache_storage_cache_unittest.cc
|
View
|
|
4 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/cache_storage/cache_storage_manager_unittest.cc
|
View
|
|
4 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/devtools/shared_worker_devtools_manager_unittest.cc
|
View
|
|
3 chunks |
+13 lines, -15 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_manager_impl_unittest.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/fileapi/fileapi_message_filter_unittest.cc
|
View
|
|
10 chunks |
+16 lines, -21 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/android/media_resource_getter_impl.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/android/provision_fetcher_impl.cc
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/cdm/browser_cdm_manager.cc
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_view_host_unittest.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/shared_worker/shared_worker_instance_unittest.cc
|
View
|
|
2 chunks |
+9 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/browser/shared_worker/shared_worker_service_impl_unittest.cc
|
View
|
|
2 chunks |
+9 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/browser/tracing/tracing_ui.cc
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_impl_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/public/browser/browser_context.h
|
View
|
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/test/browser_test_utils.cc
|
View
|
|
3 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/public/test/test_browser_context.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/public/test/test_browser_context.cc
|
View
|
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/shell/browser/shell_access_token_store.cc
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
content/shell/browser/shell_browser_context.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/shell/browser/shell_browser_context.cc
|
View
|
|
2 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/shell/browser/shell_devtools_frontend.cc
|
View
|
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/socket/socket_api.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/sockets_tcp/sockets_tcp_api.cc
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api_unittest.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
extensions/browser/api_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/content_hash_fetcher.cc
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/extensions_test.cc
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/guest_view/web_view/web_ui/web_ui_url_fetcher.cc
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
extensions/shell/browser/api/identity/identity_api.cc
|
View
|
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
extensions/shell/browser/shell_oauth2_token_service_delegate.cc
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
headless/lib/browser/headless_browser_context.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
headless/lib/browser/headless_browser_context.cc
|
View
|
|
1 chunk |
+7 lines, -6 lines |
0 comments
|
Download
|
Total messages: 6 (2 generated)
|