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

Issue 8184001: The AutofillProfileSyncableService's lifetime should be managed by the WebDataService (Closed)

Created:
9 years, 2 months ago by Ilya Sherman
Modified:
9 years, 2 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, Timur Iskhodzhanov, Alexander Potapenko, pam+watch_chromium.org, dyu1, Paweł Hajdan Jr., stuartmorgan+watch_chromium.org, tim (not reviewing), dhollowa
Visibility:
Public.

Description

The AutofillProfileSyncableService's lifetime should be managed by the WebDataService BUG=96922, 96363 TEST=sh tools/valgrind/chrome_tests.sh -t unit_tests --gtest_filter=ProfileSyncServiceAutofillTest.HasProfileEmptySync Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105199

Patch Set 1 #

Patch Set 2 : Ensure that destruction occurs on the DB thread #

Total comments: 6

Patch Set 3 : Revert indentation-only changes #

Patch Set 4 : Have the WebDataService own the lifetime #

Patch Set 5 : Rebase #

Total comments: 6

Patch Set 6 : De-nitting #

Patch Set 7 : Whitespace #

Total comments: 4

Patch Set 8 : Test code expectations #

Patch Set 9 : Additional DCHECK #

Patch Set 10 : Rebase #

Patch Set 11 : Rebase... #

Patch Set 12 : Fix compile after http://crrev.com/104990 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -136 lines) Patch
M chrome/browser/sync/profile_sync_factory_impl.cc View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 14 chunks +64 lines, -14 lines 0 comments Download
M chrome/browser/webdata/autofill_profile_syncable_service.h View 1 2 3 4 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/webdata/autofill_profile_syncable_service.cc View 1 2 3 4 3 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/webdata/autofill_profile_syncable_service_unittest.cc View 1 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/webdata/web_data_service.h View 1 2 3 4 5 6 4 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/webdata/web_data_service.cc View 1 2 3 4 5 6 7 8 7 chunks +26 lines, -0 lines 0 comments Download
M tools/heapcheck/suppressions.txt View 1 1 chunk +0 lines, -87 lines 0 comments Download
M tools/valgrind/memcheck/suppressions.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -18 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
GeorgeY
lgtm BTW, are the memory leaks fixed?
9 years, 2 months ago (2011-10-06 22:48:09 UTC) #1
Ilya Sherman
On 2011/10/06 22:48:09, GeorgeY wrote: > lgtm > BTW, are the memory leaks fixed? Yes, ...
9 years, 2 months ago (2011-10-06 22:49:38 UTC) #2
Ilya Sherman
Fred, could you take a look at this from the Sync side?
9 years, 2 months ago (2011-10-08 05:14:10 UTC) #3
akalin
http://codereview.chromium.org/8184001/diff/4001/chrome/browser/sync/abstract_profile_sync_service_test.cc File chrome/browser/sync/abstract_profile_sync_service_test.cc (right): http://codereview.chromium.org/8184001/diff/4001/chrome/browser/sync/abstract_profile_sync_service_test.cc#newcode42 chrome/browser/sync/abstract_profile_sync_service_test.cc:42: bool ProfileSyncServiceTestHelper::CreateRoot(ModelType model_type, revert these diffs please (as far ...
9 years, 2 months ago (2011-10-10 21:58:57 UTC) #4
Ilya Sherman
http://codereview.chromium.org/8184001/diff/4001/chrome/browser/sync/abstract_profile_sync_service_test.cc File chrome/browser/sync/abstract_profile_sync_service_test.cc (right): http://codereview.chromium.org/8184001/diff/4001/chrome/browser/sync/abstract_profile_sync_service_test.cc#newcode42 chrome/browser/sync/abstract_profile_sync_service_test.cc:42: bool ProfileSyncServiceTestHelper::CreateRoot(ModelType model_type, On 2011/10/10 21:58:57, akalin wrote: > ...
9 years, 2 months ago (2011-10-10 22:33:13 UTC) #5
akalin
> This would still be "needed" even if the WebDatabase were the owner -- it ...
9 years, 2 months ago (2011-10-10 22:41:36 UTC) #6
Ilya Sherman
+David, to sanity-check the WebDataService changes On 2011/10/10 22:41:36, akalin wrote: > If the WebDataService ...
9 years, 2 months ago (2011-10-11 04:08:44 UTC) #7
akalin
two nits, one question http://codereview.chromium.org/8184001/diff/8003/chrome/browser/webdata/web_data_service.cc File chrome/browser/webdata/web_data_service.cc (right): http://codereview.chromium.org/8184001/diff/8003/chrome/browser/webdata/web_data_service.cc#newcode659 chrome/browser/webdata/web_data_service.cc:659: if (autofill_profile_syncable_service_) { delete NULL ...
9 years, 2 months ago (2011-10-11 21:24:38 UTC) #8
Ilya Sherman
http://codereview.chromium.org/8184001/diff/8003/chrome/browser/webdata/web_data_service.cc File chrome/browser/webdata/web_data_service.cc (right): http://codereview.chromium.org/8184001/diff/8003/chrome/browser/webdata/web_data_service.cc#newcode659 chrome/browser/webdata/web_data_service.cc:659: if (autofill_profile_syncable_service_) { On 2011/10/11 21:24:38, akalin wrote: > ...
9 years, 2 months ago (2011-10-11 22:17:34 UTC) #9
akalin
LGTM Make sure to update the CL description and subject (AutofillTable -> WebDataService) http://codereview.chromium.org/8184001/diff/16002/chrome/browser/sync/profile_sync_service_autofill_unittest.cc File ...
9 years, 2 months ago (2011-10-11 22:20:11 UTC) #10
Ilya Sherman
http://codereview.chromium.org/8184001/diff/16002/chrome/browser/sync/profile_sync_service_autofill_unittest.cc File chrome/browser/sync/profile_sync_service_autofill_unittest.cc (right): http://codereview.chromium.org/8184001/diff/16002/chrome/browser/sync/profile_sync_service_autofill_unittest.cc#newcode188 chrome/browser/sync/profile_sync_service_autofill_unittest.cc:188: return autofill_profile_syncable_service_; On 2011/10/11 22:20:12, akalin wrote: > add ...
9 years, 2 months ago (2011-10-11 22:35:29 UTC) #11
dhollowa
WDS LGTM. w/ nit. http://codereview.chromium.org/8184001/diff/16002/chrome/browser/webdata/web_data_service.cc File chrome/browser/webdata/web_data_service.cc (right): http://codereview.chromium.org/8184001/diff/16002/chrome/browser/webdata/web_data_service.cc#newcode637 chrome/browser/webdata/web_data_service.cc:637: autofill_profile_syncable_service_ = new AutofillProfileSyncableService(this); A ...
9 years, 2 months ago (2011-10-11 22:48:34 UTC) #12
Ilya Sherman
http://codereview.chromium.org/8184001/diff/16002/chrome/browser/webdata/web_data_service.cc File chrome/browser/webdata/web_data_service.cc (right): http://codereview.chromium.org/8184001/diff/16002/chrome/browser/webdata/web_data_service.cc#newcode637 chrome/browser/webdata/web_data_service.cc:637: autofill_profile_syncable_service_ = new AutofillProfileSyncableService(this); On 2011/10/11 22:48:34, dhollowa wrote: ...
9 years, 2 months ago (2011-10-11 23:07:11 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/8184001/15009
9 years, 2 months ago (2011-10-12 00:07:02 UTC) #14
commit-bot: I haz the power
Can't apply patch for file tools/valgrind/memcheck/suppressions.txt. While running patch -p1 --forward --force; patching file tools/valgrind/memcheck/suppressions.txt ...
9 years, 2 months ago (2011-10-12 00:07:06 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/8184001/14008
9 years, 2 months ago (2011-10-12 00:41:06 UTC) #16
commit-bot: I haz the power
Change committed as 105016
9 years, 2 months ago (2011-10-12 04:55:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/8184001/21001
9 years, 2 months ago (2011-10-12 18:26:18 UTC) #18
commit-bot: I haz the power
Try job failure for 8184001-21001 (retry) on linux_rel for step "compile" (clobber build). It's a ...
9 years, 2 months ago (2011-10-12 19:27:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/8184001/21011
9 years, 2 months ago (2011-10-12 19:46:07 UTC) #20
commit-bot: I haz the power
9 years, 2 months ago (2011-10-12 23:42:00 UTC) #21
Change committed as 105199

Powered by Google App Engine
This is Rietveld 408576698