diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-16 04:32:31 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-16 04:32:31 +0000 |
commit | abc77243c735ff8b44deac96a5fc81fd9788b2c9 (patch) | |
tree | 108d9a16f4c49161bafe4758db3359aebdd832f6 /tools | |
parent | 85059c375bfd167ba24b51f59fe0b5ed70a53d9b (diff) | |
download | chromium_src-abc77243c735ff8b44deac96a5fc81fd9788b2c9.zip chromium_src-abc77243c735ff8b44deac96a5fc81fd9788b2c9.tar.gz chromium_src-abc77243c735ff8b44deac96a5fc81fd9788b2c9.tar.bz2 |
Profiles: Really fix refcounted services.
Previous attempts to share code between ProfileKeyedServiceFactory and RefcountedProfileKeyedServiceFactory were ill advised. The core logic code must maintain refcounted data in a scoped_refptr<> for the entire lifecycle, across interface and implementation, preventing any real abstraction here.
This removes the common ProfileKeyedBase and splits the two worlds entirely in two. This has quite a bit of exact code with different types now.
Fallout from this is far reaching:
- Since there isn't one common heiarchy, now the testing methods either return ProfileKeyedServices or scoped_refptr<RefcountedProfileKeyedService>s. This is a lot of change.
- Many consumers handled the refcounted ptrs as raw pointers, which probably isn't a good idea.
- There is now a bunch of code duplication.
BUG=118196,77155
R=mirandac,tim
TBR=jhawkins,sky,scottbyer
Review URL: http://codereview.chromium.org/9703038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r-- | tools/valgrind/memcheck/suppressions.txt | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tools/valgrind/memcheck/suppressions.txt b/tools/valgrind/memcheck/suppressions.txt index ffaa68b..6e372a9 100644 --- a/tools/valgrind/memcheck/suppressions.txt +++ b/tools/valgrind/memcheck/suppressions.txt @@ -5778,26 +5778,6 @@ fun:_ZN3net16HostResolverImpl3Job18OnProcTaskCompleteEiRKNS_11AddressListE } { - bug_118196_a - Memcheck:Leak - fun:_Znw* - ... - fun:_ZN3sql10Connection18GetCachedStatementERKNS_11StatementIDEPKc - ... - fun:_ZN*13LoginDatabase* - ... - fun:_ZN*PasswordStore* -} -{ - bug_118196_b - Memcheck:Leak - fun:_Znw* - ... - fun:_ZNK20PasswordStoreFactory23BuildServiceInstanceForEP7Profile - fun:_ZN23ProfileKeyedBaseFactory17GetBaseForProfileEP7Profileb - fun:_ZN20PasswordStoreFactory13GetForProfileEP7ProfileNS0_17ServiceAccessTypeE -} -{ bug_118203 Memcheck:Leak fun:_Znw* |