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

Issue 9419033: Move creation of BrowserContext objects that live in content to content, instead of depending on th… (Closed)

Created:
8 years, 10 months ago by jam
Modified:
8 years, 10 months ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, akalin, Raghu Simha, ncarter (slow), achuith+watch_chromium.org, ajwong+watch_chromium.org, mihaip+watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, rginda+watch_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, brettw-cc_chromium.org, kinuko+watch, tim (not reviewing)
Visibility:
Public.

Description

Move creation of BrowserContext objects that live in content to content, instead of depending on the embedder. Apart from allowing us to hide more of content from embedders, it simplifies the work that every embedder has to do (see the change the shell_browser_context.cc as an example). BUG=98716 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=122521 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=122768

Patch Set 1 #

Patch Set 2 : Add missing file and fix clang #

Patch Set 3 : sync and fix mac/linux build #

Patch Set 4 : fix cros build and mac unittest #

Patch Set 5 : fix cros build and mac unittest #

Patch Set 6 : #

Total comments: 8

Patch Set 7 : Reupload after revert #

Patch Set 8 : Fix memory leaks in tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+570 lines, -805 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/browsing_data_appcache_helper.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/browsing_data_database_helper.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/browsing_data_database_helper_browsertest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/browsing_data_file_system_helper.cc View 1 2 3 4 5 6 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data_file_system_helper_unittest.cc View 1 2 3 4 5 6 7 4 chunks +21 lines, -7 lines 0 comments Download
M chrome/browser/browsing_data_indexed_db_helper.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/browsing_data_local_storage_helper.cc View 1 2 3 4 5 6 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data_quota_helper_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browsing_data_remover.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data_remover.cc View 1 2 3 4 5 6 5 chunks +17 lines, -11 lines 0 comments Download
M chrome/browser/browsing_data_remover_unittest.cc View 1 2 3 4 5 6 5 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/offline/offline_load_page_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/cookies_tree_model_unittest.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/diagnostics/sqlite_diagnostics.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/download/download_request_limiter_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_data_deleter.cc View 1 2 3 4 5 6 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_file_browser_private_api.cc View 1 2 3 4 5 6 7 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_file_browser_private_apitest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_local_filesystem_apitest.cc View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 9 chunks +10 lines, -37 lines 0 comments Download
M chrome/browser/extensions/file_manager_util.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/memory_purger.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/net/view_blob_internals_job_factory.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 5 6 5 chunks +16 lines, -37 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 6 9 chunks +5 lines, -94 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 4 5 6 2 chunks +0 lines, -23 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 5 chunks +2 lines, -22 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 11 chunks +12 lines, -109 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 3 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host_unittest.cc View 1 2 3 4 5 6 7 5 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 3 4 5 6 3 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_password_unittest.cc View 1 2 3 4 5 6 3 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 3 4 5 6 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/sync/profile_sync_test_util.h View 1 2 3 4 5 6 1 chunk +0 lines, -20 lines 0 comments Download
M chrome/browser/sync/profile_sync_test_util.cc View 1 2 3 4 5 6 1 chunk +0 lines, -33 lines 0 comments Download
M chrome/browser/ui/cocoa/cocoa_profile_test.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/cocoa_profile_test.mm View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/balloon_controller_unittest.mm View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/quota_internals_handler.cc View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M chrome/common/chrome_constants.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_constants.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/base/browser_with_test_window_test.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/browser_with_test_window_test.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 6 10 chunks +23 lines, -50 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 6 chunks +0 lines, -64 lines 0 comments Download
M content/browser/appcache/chrome_appcache_service.h View 1 2 3 4 5 6 7 4 chunks +12 lines, -7 lines 0 comments Download
M content/browser/appcache/chrome_appcache_service.cc View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
D content/browser/browser_context.h View 1 2 3 4 5 6 1 chunk +0 lines, -13 lines 0 comments Download
A content/browser/browser_context.cc View 1 2 3 4 5 6 7 1 chunk +168 lines, -0 lines 0 comments Download
M content/browser/file_system/file_system_browsertest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/in_process_webkit/dom_storage_browsertest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/in_process_webkit/dom_storage_context.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/in_process_webkit/dom_storage_unittest.cc View 1 2 3 4 5 6 6 chunks +17 lines, -11 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_browsertest.cc View 1 2 3 4 5 6 7 chunks +18 lines, -9 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_quota_client_unittest.cc View 1 2 3 4 5 6 3 chunks +5 lines, -1 line 0 comments Download
M content/browser/in_process_webkit/webkit_context.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 4 chunks +10 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_view_host.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/tab_contents/navigation_controller_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/browser_context.h View 1 2 3 4 5 6 3 chunks +16 lines, -9 lines 0 comments Download
D content/public/browser/browser_context.cc View 1 2 3 4 5 6 1 chunk +0 lines, -10 lines 0 comments Download
M content/public/common/content_constants.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/common/content_constants.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M content/shell/shell_browser_context.h View 1 2 3 4 5 6 2 chunks +1 line, -13 lines 0 comments Download
M content/shell/shell_browser_context.cc View 1 2 3 4 5 6 4 chunks +3 lines, -73 lines 0 comments Download
M content/test/test_browser_context.h View 1 2 3 4 5 6 2 chunks +5 lines, -9 lines 0 comments Download
M content/test/test_browser_context.cc View 1 2 3 4 5 6 2 chunks +5 lines, -26 lines 0 comments Download
M content/test/test_browser_thread.cc View 1 2 3 4 5 6 7 3 chunks +17 lines, -2 lines 0 comments Download
M webkit/appcache/appcache_storage_impl.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -7 lines 0 comments Download
M webkit/fileapi/file_system_context.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -2 lines 0 comments Download
M webkit/quota/quota_manager.cc View 1 2 3 4 5 6 7 4 chunks +6 lines, -8 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jam
Sorry this seems so large; I had to move all these 5 objects together because ...
8 years, 10 months ago (2012-02-17 01:01:45 UTC) #1
jam
erg->Avi
8 years, 10 months ago (2012-02-17 16:09:25 UTC) #2
jam
Avi->main reviewer Miranda->chrome/browser/profiles
8 years, 10 months ago (2012-02-17 16:16:58 UTC) #3
Avi (use Gerrit)
lgtm http://codereview.chromium.org/9419033/diff/5157/chrome/browser/profiles/profile.h File chrome/browser/profiles/profile.h (right): http://codereview.chromium.org/9419033/diff/5157/chrome/browser/profiles/profile.h#newcode184 chrome/browser/profiles/profile.h:184: // content::BrowserContext implementation ------------------------------------ This comment marks the ...
8 years, 10 months ago (2012-02-17 16:25:08 UTC) #4
jam
http://codereview.chromium.org/9419033/diff/5157/chrome/browser/profiles/profile.h File chrome/browser/profiles/profile.h (right): http://codereview.chromium.org/9419033/diff/5157/chrome/browser/profiles/profile.h#newcode184 chrome/browser/profiles/profile.h:184: // content::BrowserContext implementation ------------------------------------ On 2012/02/17 16:25:09, Avi wrote: ...
8 years, 10 months ago (2012-02-17 16:29:25 UTC) #5
Miranda Callahan
On 2012/02/17 16:29:25, John Abd-El-Malek wrote: > http://codereview.chromium.org/9419033/diff/5157/chrome/browser/profiles/profile.h > File chrome/browser/profiles/profile.h (right): > > http://codereview.chromium.org/9419033/diff/5157/chrome/browser/profiles/profile.h#newcode184 ...
8 years, 10 months ago (2012-02-17 16:39:36 UTC) #6
jam
Avi: I'm relanding this with fixes for heapcheck/valgrind. you can see the changes between patchset ...
8 years, 10 months ago (2012-02-20 17:33:35 UTC) #7
jam
On 2012/02/20 17:33:35, John Abd-El-Malek wrote: > Avi: I'm relanding this with fixes for heapcheck/valgrind. ...
8 years, 10 months ago (2012-02-20 17:34:55 UTC) #8
Avi (use Gerrit)
8 years, 10 months ago (2012-02-20 18:26:40 UTC) #9
slgtm

Powered by Google App Engine
This is Rietveld 408576698