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

Issue 10006037: Moved WebDataService to ProfileKeyedService (Closed)

Created:
8 years, 8 months ago by GeorgeY
Modified:
8 years, 7 months ago
Reviewers:
Ilya Sherman, sky
CC:
chromium-reviews, GeorgeY, ncarter (slow), akalin, Raghu Simha, dhollowa+watch_chromium.org, dyu1, James Su, Ilya Sherman, tim (not reviewing), rpetterson
Visibility:
Public.

Description

Moved WebDataService to ProfileKeyedService James: chrome\browser\ui\intents Peter: chrome\browser\ui\search_engines chrome\browser\search_engines Nicolas: chrome\browser\sync Rachel: chrome\browser\profiles and the whole cl BUG=112234 TEST=unit-tests TBR=jhawkins@chromium.org,pkasting@chromium.org,zea@chromium.org,rlp@chromium.org,isherman@chromium.org

Patch Set 1 #

Patch Set 2 : YAR (yet another rebase :)) #

Patch Set 3 : Fix threading issue in Mac tests #

Patch Set 4 : YAR-rrr (Yet *Another* R-r-rebase :)) #

Patch Set 5 : rebased #

Patch Set 6 : fixed some tests #

Patch Set 7 : and another rebase #

Patch Set 8 : Fixed threading issues in ~50 tests. another 50 to go :( #

Patch Set 9 : Fixed unit-tests #

Total comments: 2

Patch Set 10 : reverted one unneeded change #

Total comments: 14

Patch Set 11 : Fixed another 50 unit-tests #

Patch Set 12 : Fix comments, add assert for incorrectly destroyed WebDataService #

Patch Set 13 : #

Patch Set 14 : Fixed tests, added comment #

Patch Set 15 : Fixed another couple of tests #

Patch Set 16 : fixed compile, rebased #

Patch Set 17 : fixed some tests #

Patch Set 18 : Fixed compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+614 lines, -332 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_unittest.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete_history_manager.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/autocomplete_history_manager_unittest.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/autofill/autofill_metrics_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/autofill/personal_data_manager.cc View 17 chunks +53 lines, -42 lines 0 comments Download
M chrome/browser/autofill/personal_data_manager_factory.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autofill/personal_data_manager_unittest.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/browsing_data_remover.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/extensions/app_notify_channel_setup_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_unittest.cc View 1 2 3 4 5 6 7 5 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/importer/profile_writer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/intents/register_intent_handler_infobar_delegate_unittest.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/intents/web_intents_registry_factory.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/intents/web_intents_registry_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/managed_mode_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/memory_purger.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/password_manager/password_store_default_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_factory.cc View 5 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/password_manager/password_store_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/password_manager/password_store_x_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 3 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -28 lines 0 comments Download
M chrome/browser/search_engines/search_provider_install_data.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_factory.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_service_sync_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +29 lines, -6 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/signin/token_service.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/signin/token_service_factory.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/signin/token_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc View 1 2 3 4 5 6 7 7 chunks +20 lines, -8 lines 0 comments Download
M chrome/browser/sync/glue/autofill_profile_data_type_controller.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.h View 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 4 3 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc View 1 2 3 4 5 6 7 4 chunks +22 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 6 chunks +21 lines, -9 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_factory.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_password_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_startup_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_global_error_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/autofill_helper.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/test/integration/autofill_helper.cc View 5 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller_browsertest.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/intents/web_intents_model_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +72 lines, -54 lines 0 comments Download
M chrome/browser/ui/views/first_run_bubble_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/webdata/autocomplete_syncable_service.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/webdata/web_data_service.h View 2 3 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/webdata/web_data_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +26 lines, -15 lines 0 comments Download
A chrome/browser/webdata/web_data_service_factory.h View 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/webdata/web_data_service_factory.cc View 1 chunk +57 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_data_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/browser_with_test_window_test.h View 1 2 3 4 5 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 7 8 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/test/base/chrome_render_view_host_test_harness.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/test/base/profile_mock.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +0 lines, -18 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +0 lines, -32 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/10006037/1
8 years, 8 months ago (2012-04-06 17:51:57 UTC) #1
commit-bot: I haz the power
Try job failure for 10006037-1 (retry) on mac_rel for step "unit_tests". It's a second try, ...
8 years, 8 months ago (2012-04-06 19:23:15 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/10006037/8001
8 years, 8 months ago (2012-04-06 21:18:28 UTC) #3
commit-bot: I haz the power
Try job failure for 10006037-8001 (retry) on mac_rel for step "unit_tests". It's a second try, ...
8 years, 8 months ago (2012-04-06 22:49:19 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/10006037/8001
8 years, 8 months ago (2012-04-06 22:54:41 UTC) #5
commit-bot: I haz the power
Try job failure for 10006037-8001 (retry) on mac_rel for step "unit_tests". It's a second try, ...
8 years, 8 months ago (2012-04-07 00:25:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/10006037/8001
8 years, 8 months ago (2012-04-07 01:35:56 UTC) #7
commit-bot: I haz the power
Try job failure for 10006037-8001 (retry) (retry) on mac_rel for step "unit_tests". It's a second ...
8 years, 8 months ago (2012-04-07 03:29:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/10006037/8001
8 years, 8 months ago (2012-04-07 07:14:18 UTC) #9
commit-bot: I haz the power
Try job failure for 10006037-8001 (retry) (retry) on mac_rel for step "unit_tests". It's a second ...
8 years, 8 months ago (2012-04-07 10:23:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/10006037/8001
8 years, 8 months ago (2012-04-09 17:02:16 UTC) #11
commit-bot: I haz the power
Try job failure for 10006037-8001 (retry) on mac_rel for step "unit_tests". It's a second try, ...
8 years, 8 months ago (2012-04-09 18:24:52 UTC) #12
GeorgeY
Added Scott for chrome/browser/tabs/tab_strip_model_unittest.cc review
8 years, 8 months ago (2012-04-17 20:41:41 UTC) #13
GeorgeY
8 years, 8 months ago (2012-04-17 20:41:54 UTC) #14
sky
https://chromiumcodereview.appspot.com/10006037/diff/34001/chrome/browser/tabs/tab_strip_model_unittest.cc File chrome/browser/tabs/tab_strip_model_unittest.cc (right): https://chromiumcodereview.appspot.com/10006037/diff/34001/chrome/browser/tabs/tab_strip_model_unittest.cc#newcode136 chrome/browser/tabs/tab_strip_model_unittest.cc:136: : browser_thread_(BrowserThread::UI, &message_loop_), Promote this code to either ChromeRenderViewHostTestHarness ...
8 years, 8 months ago (2012-04-17 20:45:50 UTC) #15
GeorgeY
https://chromiumcodereview.appspot.com/10006037/diff/34001/chrome/browser/tabs/tab_strip_model_unittest.cc File chrome/browser/tabs/tab_strip_model_unittest.cc (right): https://chromiumcodereview.appspot.com/10006037/diff/34001/chrome/browser/tabs/tab_strip_model_unittest.cc#newcode136 chrome/browser/tabs/tab_strip_model_unittest.cc:136: : browser_thread_(BrowserThread::UI, &message_loop_), On 2012/04/17 20:45:51, sky wrote: > ...
8 years, 8 months ago (2012-04-17 20:52:24 UTC) #16
sky
https://chromiumcodereview.appspot.com/10006037/diff/39002/chrome/test/base/chrome_render_view_host_test_harness.cc File chrome/test/base/chrome_render_view_host_test_harness.cc (right): https://chromiumcodereview.appspot.com/10006037/diff/39002/chrome/test/base/chrome_render_view_host_test_harness.cc#newcode46 chrome/test/base/chrome_render_view_host_test_harness.cc:46: WebDataServiceFactory::GetInstance()->SetTestingFactory( Does this prevent anyone from creating a ChromeRenderViewHostTest ...
8 years, 8 months ago (2012-04-17 20:59:20 UTC) #17
GeorgeY
In any case creating db thread and creating/closing database slows it down, and this is ...
8 years, 8 months ago (2012-04-17 21:05:18 UTC) #18
sky
LGTM
8 years, 8 months ago (2012-04-17 21:29:15 UTC) #19
Ilya Sherman
Thanks for going through all of these tests, George. https://chromiumcodereview.appspot.com/10006037/diff/39002/chrome/browser/autofill/autofill_external_delegate_unittest.cc File chrome/browser/autofill/autofill_external_delegate_unittest.cc (right): https://chromiumcodereview.appspot.com/10006037/diff/39002/chrome/browser/autofill/autofill_external_delegate_unittest.cc#newcode10 chrome/browser/autofill/autofill_external_delegate_unittest.cc:10: ...
8 years, 8 months ago (2012-04-17 21:32:15 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/10006037/15018
8 years, 8 months ago (2012-04-18 17:19:36 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/10006037/39007
8 years, 8 months ago (2012-04-18 18:14:42 UTC) #22
GeorgeY
https://chromiumcodereview.appspot.com/10006037/diff/39002/chrome/browser/autofill/autofill_external_delegate_unittest.cc File chrome/browser/autofill/autofill_external_delegate_unittest.cc (right): https://chromiumcodereview.appspot.com/10006037/diff/39002/chrome/browser/autofill/autofill_external_delegate_unittest.cc#newcode10 chrome/browser/autofill/autofill_external_delegate_unittest.cc:10: #include "base/synchronization/waitable_event.h" On 2012/04/17 21:32:15, Ilya Sherman wrote: > ...
8 years, 8 months ago (2012-04-18 18:14:46 UTC) #23
Ilya Sherman
https://chromiumcodereview.appspot.com/10006037/diff/39002/chrome/browser/extensions/app_notify_channel_setup_unittest.cc File chrome/browser/extensions/app_notify_channel_setup_unittest.cc (right): https://chromiumcodereview.appspot.com/10006037/diff/39002/chrome/browser/extensions/app_notify_channel_setup_unittest.cc#newcode248 chrome/browser/extensions/app_notify_channel_setup_unittest.cc:248: done.Wait(); On 2012/04/18 18:14:46, GeorgeY wrote: > On 2012/04/17 ...
8 years, 8 months ago (2012-04-18 18:22:25 UTC) #24
Ilya Sherman
https://chromiumcodereview.appspot.com/10006037/diff/39002/chrome/browser/ui/views/first_run_bubble_unittest.cc File chrome/browser/ui/views/first_run_bubble_unittest.cc (right): https://chromiumcodereview.appspot.com/10006037/diff/39002/chrome/browser/ui/views/first_run_bubble_unittest.cc#newcode42 chrome/browser/ui/views/first_run_bubble_unittest.cc:42: WebDataServiceFactory::GetInstance()->SetTestingFactory(&profile_, NULL); On 2012/04/18 18:14:46, GeorgeY wrote: > On ...
8 years, 8 months ago (2012-04-18 18:25:05 UTC) #25
commit-bot: I haz the power
Try job failure for 10006037-39007 (retry) on linux_rel for step "unit_tests". It's a second try, ...
8 years, 8 months ago (2012-04-18 19:32:17 UTC) #26
GeorgeY
https://chromiumcodereview.appspot.com/10006037/diff/39002/chrome/browser/extensions/app_notify_channel_setup_unittest.cc File chrome/browser/extensions/app_notify_channel_setup_unittest.cc (right): https://chromiumcodereview.appspot.com/10006037/diff/39002/chrome/browser/extensions/app_notify_channel_setup_unittest.cc#newcode248 chrome/browser/extensions/app_notify_channel_setup_unittest.cc:248: done.Wait(); On 2012/04/18 18:22:26, Ilya Sherman wrote: > On ...
8 years, 8 months ago (2012-04-19 00:58:40 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/10006037/45001
8 years, 8 months ago (2012-04-19 00:58:58 UTC) #28
commit-bot: I haz the power
Try job failure for 10006037-45001 (retry) on linux_rel for step "unit_tests". It's a second try, ...
8 years, 8 months ago (2012-04-19 02:03:27 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/10006037/54001
8 years, 8 months ago (2012-04-19 18:34:16 UTC) #30
commit-bot: I haz the power
Try job failure for 10006037-54001 (retry) on linux_rel for step "unit_tests". It's a second try, ...
8 years, 8 months ago (2012-04-19 20:44:21 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/10006037/65001
8 years, 8 months ago (2012-04-19 22:56:01 UTC) #32
commit-bot: I haz the power
8 years, 8 months ago (2012-04-19 23:55:10 UTC) #33
Try job failure for 10006037-65001 (retry) on linux_rel for step "unit_tests".
It's a second try, previously, step "unit_tests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&...

Powered by Google App Engine
This is Rietveld 408576698