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

Issue 9834056: Moved WebDataService to ProfileKeyedService (Closed)

Created:
8 years, 9 months ago by GeorgeY
Modified:
8 years, 7 months ago
CC:
chromium-reviews, ncarter (slow), akalin, Raghu Simha, dhollowa+watch_chromium.org, dyu1, tfarina, Ilya Sherman, tim (not reviewing)
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

Patch Set 1 #

Patch Set 2 : Added missing files #

Patch Set 3 : Almost done. SearchProviderTest still broken, but does not look like it's related -investigating #

Patch Set 4 : Fixed the last test #

Patch Set 5 : removed extra line #

Patch Set 6 : removed unchanged file #

Total comments: 33

Patch Set 7 : Addressed comments, fixed bug #

Total comments: 6

Patch Set 8 : addressed comments #

Patch Set 9 : Found and fixed dependency #

Patch Set 10 : Changed return NULL; to NOTREACHED() #

Total comments: 4

Patch Set 11 : addressed last comment #

Patch Set 12 : fix logic bug in DCHECK:) #

Patch Set 13 : rebased the patch #

Patch Set 14 : rebased #

Patch Set 15 : fix rebase break #

Patch Set 16 : rebased #

Patch Set 17 : re-uploading rebase #

Patch Set 18 : upload rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+407 lines, -310 lines) Patch
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 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/autofill/autofill_metrics_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/autofill/personal_data_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 chunks +48 lines, -38 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 2 3 4 5 6 7 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 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/importer/profile_writer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/intents/register_intent_handler_infobar_delegate_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/intents/web_intents_registry_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/intents/web_intents_registry_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/memory_purger.cc View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/password_manager/password_store_default_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_factory.cc View 1 2 3 4 5 6 7 8 5 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/password_manager/password_store_win_unittest.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/password_manager/password_store_x_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -13 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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 12 13 14 15 16 17 3 chunks +1 line, -23 lines 0 comments Download
M chrome/browser/search_engines/search_provider_install_data.cc View 1 2 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 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 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_test_util.cc View 1 2 3 4 5 6 3 chunks +4 lines, -2 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 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/signin/token_service.cc View 1 2 3 4 5 6 7 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 1 chunk +0 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 7 chunks +18 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 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +14 lines, -8 lines 0 comments Download
chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +21 lines, -9 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_factory.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/test/integration/autofill_helper.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/test/integration/autofill_helper.cc View 1 2 3 4 5 5 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/intents/web_intents_model_unittest.cc View 1 chunk +1 line, -2 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 4 chunks +76 lines, -58 lines 0 comments Download
chrome/browser/webdata/autocomplete_syncable_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
chrome/browser/webdata/web_data_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 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 14 15 2 chunks +15 lines, -14 lines 0 comments Download
A chrome/browser/webdata/web_data_service_factory.h View 1 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/webdata/web_data_service_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +57 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_data_service_unittest.cc View 1 chunk +1 line, -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 17 1 chunk +2 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 11 12 13 14 4 chunks +0 lines, -15 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +0 lines, -31 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
GeorgeY
8 years, 9 months ago (2012-03-27 00:39:33 UTC) #1
GeorgeY
8 years, 9 months ago (2012-03-27 00:39:34 UTC) #2
Ilya Sherman
Drive-by with nits; otherwise, LG. Thanks, George! https://chromiumcodereview.appspot.com/9834056/diff/10001/chrome/browser/autocomplete/search_provider_unittest.cc File chrome/browser/autocomplete/search_provider_unittest.cc (right): https://chromiumcodereview.appspot.com/9834056/diff/10001/chrome/browser/autocomplete/search_provider_unittest.cc#newcode32 chrome/browser/autocomplete/search_provider_unittest.cc:32: static scoped_refptr<RefcountedProfileKeyedService> ...
8 years, 9 months ago (2012-03-27 01:01:17 UTC) #3
rpetterson
George, thanks so much for taking care of this! You'll also need to add the ...
8 years, 9 months ago (2012-03-27 01:15:06 UTC) #4
Peter Kasting
When you name multiple reviewers, please list what you want each reviewer to review.
8 years, 9 months ago (2012-03-27 01:34:44 UTC) #5
GeorgeY
On 2012/03/27 01:34:44, Peter Kasting wrote: > When you name multiple reviewers, please list what ...
8 years, 9 months ago (2012-03-27 17:26:21 UTC) #6
Peter Kasting
LGTM. Is there any way to reduce the usage of BuildNull() functions by either defining ...
8 years, 9 months ago (2012-03-27 18:18:25 UTC) #7
rpetterson
On 2012/03/27 18:18:25, Peter Kasting wrote: > LGTM. Is there any way to reduce the ...
8 years, 9 months ago (2012-03-27 18:26:28 UTC) #8
Peter Kasting
On 2012/03/27 18:26:28, rpetterson wrote: > https://chromiumcodereview.appspot.com/9834056/diff/10001/chrome/browser/search_engines/template_url_service_sync_unittest.cc#newcode304 > > chrome/browser/search_engines/template_url_service_sync_unittest.cc:304: > static > > scoped_refptr<RefcountedProfileKeyedService> ...
8 years, 9 months ago (2012-03-27 18:28:35 UTC) #9
rpetterson
On 2012/03/27 18:28:35, Peter Kasting wrote: > On 2012/03/27 18:26:28, rpetterson wrote: > > > ...
8 years, 9 months ago (2012-03-27 18:50:10 UTC) #10
Nicolas Zea
nice, sync LGTM http://codereview.chromium.org/9834056/diff/10001/chrome/browser/sync/profile_sync_service_autofill_unittest.cc File chrome/browser/sync/profile_sync_service_autofill_unittest.cc (right): http://codereview.chromium.org/9834056/diff/10001/chrome/browser/sync/profile_sync_service_autofill_unittest.cc#newcode356 chrome/browser/sync/profile_sync_service_autofill_unittest.cc:356: ~ProfileSyncServiceAutofillTest() { virtual
8 years, 9 months ago (2012-03-27 21:35:47 UTC) #11
GeorgeY
https://chromiumcodereview.appspot.com/9834056/diff/10001/chrome/browser/autocomplete/search_provider_unittest.cc File chrome/browser/autocomplete/search_provider_unittest.cc (right): https://chromiumcodereview.appspot.com/9834056/diff/10001/chrome/browser/autocomplete/search_provider_unittest.cc#newcode32 chrome/browser/autocomplete/search_provider_unittest.cc:32: static scoped_refptr<RefcountedProfileKeyedService> BuildNull( On 2012/03/27 01:01:17, Ilya Sherman wrote: ...
8 years, 8 months ago (2012-03-30 19:20:12 UTC) #12
Peter Kasting
Still LGTM https://chromiumcodereview.appspot.com/9834056/diff/20001/chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc File chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc (right): https://chromiumcodereview.appspot.com/9834056/diff/20001/chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc#newcode34 chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc:34: KeywordEditorControllerTest() {} Nit: It would be nice ...
8 years, 8 months ago (2012-03-30 20:31:13 UTC) #13
Ilya Sherman
(Still LGTM) https://chromiumcodereview.appspot.com/9834056/diff/10001/chrome/browser/password_manager/password_store_default.h File chrome/browser/password_manager/password_store_default.h (right): https://chromiumcodereview.appspot.com/9834056/diff/10001/chrome/browser/password_manager/password_store_default.h#newcode15 chrome/browser/password_manager/password_store_default.h:15: #include "chrome/browser/webdata/web_data_service.h" On 2012/03/30 19:20:12, GeorgeY wrote: ...
8 years, 8 months ago (2012-03-30 20:50:05 UTC) #14
Peter Kasting
https://chromiumcodereview.appspot.com/9834056/diff/10001/chrome/browser/password_manager/password_store_default.h File chrome/browser/password_manager/password_store_default.h (right): https://chromiumcodereview.appspot.com/9834056/diff/10001/chrome/browser/password_manager/password_store_default.h#newcode15 chrome/browser/password_manager/password_store_default.h:15: #include "chrome/browser/webdata/web_data_service.h" On 2012/03/30 20:50:05, Ilya Sherman wrote: > ...
8 years, 8 months ago (2012-03-30 20:53:53 UTC) #15
tfarina
On Fri, Mar 30, 2012 at 5:50 PM, <isherman@chromium.org> wrote: > (Still LGTM) > > ...
8 years, 8 months ago (2012-03-30 20:54:02 UTC) #16
GeorgeY
https://chromiumcodereview.appspot.com/9834056/diff/10001/chrome/browser/password_manager/password_store_default.h File chrome/browser/password_manager/password_store_default.h (right): https://chromiumcodereview.appspot.com/9834056/diff/10001/chrome/browser/password_manager/password_store_default.h#newcode15 chrome/browser/password_manager/password_store_default.h:15: #include "chrome/browser/webdata/web_data_service.h" On 2012/03/30 20:53:53, Peter Kasting wrote: > ...
8 years, 8 months ago (2012-04-02 21:57:43 UTC) #17
James Hawkins
intents LGTM
8 years, 8 months ago (2012-04-02 21:58:48 UTC) #18
rpetterson
profiles (and whatever else I could find) LGTM
8 years, 8 months ago (2012-04-02 21:59:59 UTC) #19
Peter Kasting
https://chromiumcodereview.appspot.com/9834056/diff/10001/chrome/browser/password_manager/password_store_default.h File chrome/browser/password_manager/password_store_default.h (right): https://chromiumcodereview.appspot.com/9834056/diff/10001/chrome/browser/password_manager/password_store_default.h#newcode15 chrome/browser/password_manager/password_store_default.h:15: #include "chrome/browser/webdata/web_data_service.h" On 2012/04/02 21:57:43, GeorgeY wrote: > There ...
8 years, 8 months ago (2012-04-02 22:09:05 UTC) #20
GeorgeY
Found and fixed dependency https://chromiumcodereview.appspot.com/9834056/diff/10001/chrome/browser/password_manager/password_store_default.h File chrome/browser/password_manager/password_store_default.h (right): https://chromiumcodereview.appspot.com/9834056/diff/10001/chrome/browser/password_manager/password_store_default.h#newcode15 chrome/browser/password_manager/password_store_default.h:15: #include "chrome/browser/webdata/web_data_service.h" On 2012/04/02 22:09:05, ...
8 years, 8 months ago (2012-04-02 22:49:02 UTC) #21
GeorgeY
Changed return NULL; to NOTREACHED()
8 years, 8 months ago (2012-04-02 23:06:20 UTC) #22
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/9834056/diff/25008/chrome/browser/webdata/web_data_service_factory.cc File chrome/browser/webdata/web_data_service_factory.cc (right): https://chromiumcodereview.appspot.com/9834056/diff/25008/chrome/browser/webdata/web_data_service_factory.cc#newcode24 chrome/browser/webdata/web_data_service_factory.cc:24: if (access_type == Profile::IMPLICIT_ACCESS && profile->IsOffTheRecord()) { Nit: ...
8 years, 8 months ago (2012-04-02 23:21:13 UTC) #23
GeorgeY
done https://chromiumcodereview.appspot.com/9834056/diff/25008/chrome/browser/webdata/web_data_service_factory.cc File chrome/browser/webdata/web_data_service_factory.cc (right): https://chromiumcodereview.appspot.com/9834056/diff/25008/chrome/browser/webdata/web_data_service_factory.cc#newcode24 chrome/browser/webdata/web_data_service_factory.cc:24: if (access_type == Profile::IMPLICIT_ACCESS && profile->IsOffTheRecord()) { On ...
8 years, 8 months ago (2012-04-03 20:13:28 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/9834056/25014
8 years, 8 months ago (2012-04-03 20:20:23 UTC) #25
commit-bot: I haz the power
Can't apply patch for file chrome/browser/search_engines/template_url_service_sync_unittest.cc. While running patch -p1 --forward --force; patching file chrome/browser/search_engines/template_url_service_sync_unittest.cc ...
8 years, 8 months ago (2012-04-03 20:20:38 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/9834056/26062
8 years, 8 months ago (2012-04-03 21:37:53 UTC) #27
commit-bot: I haz the power
Can't apply patch for file chrome/browser/sync/profile_sync_components_factory_impl.cc. While running patch -p1 --forward --force; patching file chrome/browser/sync/profile_sync_components_factory_impl.cc ...
8 years, 8 months ago (2012-04-03 21:52:21 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/9834056/20009
8 years, 8 months ago (2012-04-04 00:24:24 UTC) #29
commit-bot: I haz the power
Try job failure for 9834056-20009 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-04 00:53:19 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/9834056/28001
8 years, 8 months ago (2012-04-04 20:37:48 UTC) #31
commit-bot: I haz the power
Try job failure for 9834056-28001 (retry) on mac_rel for step "unit_tests". It's a second try, ...
8 years, 8 months ago (2012-04-04 23:16:26 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/9834056/28001
8 years, 8 months ago (2012-04-05 00:13:08 UTC) #33
commit-bot: I haz the power
Can't apply patch for file chrome/browser/sync/profile_sync_components_factory_impl.cc. While running patch -p1 --forward --force; patching file chrome/browser/sync/profile_sync_components_factory_impl.cc ...
8 years, 8 months ago (2012-04-05 01:08:26 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/9834056/43001
8 years, 8 months ago (2012-04-05 18:02:55 UTC) #35
commit-bot: I haz the power
8 years, 8 months ago (2012-04-05 18:03:09 UTC) #36
Can't process patch for file
chrome/browser/sync/profile_sync_service_autofill_unittest.cc.
File's status is None, patchset upload is incomplete.

Powered by Google App Engine
This is Rietveld 408576698