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

Side by Side Diff: chrome/browser/sync/profile_sync_components_factory_impl.h

Issue 535683002: Fix use-after-free in HDDDTC shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual ~ProfileSyncComponentsFactoryImpl(); 43 virtual ~ProfileSyncComponentsFactoryImpl();
44 44
45 virtual void RegisterDataTypes(ProfileSyncService* pss) OVERRIDE; 45 virtual void RegisterDataTypes(ProfileSyncService* pss) OVERRIDE;
46 46
47 virtual sync_driver::DataTypeManager* CreateDataTypeManager( 47 virtual sync_driver::DataTypeManager* CreateDataTypeManager(
48 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& 48 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&
49 debug_info_listener, 49 debug_info_listener,
50 const sync_driver::DataTypeController::TypeMap* controllers, 50 const sync_driver::DataTypeController::TypeMap* controllers,
51 const sync_driver::DataTypeEncryptionHandler* encryption_handler, 51 const sync_driver::DataTypeEncryptionHandler* encryption_handler,
52 browser_sync::SyncBackendHost* backend, 52 browser_sync::SyncBackendHost* backend,
53 sync_driver::DataTypeManagerObserver* observer, 53 sync_driver::DataTypeManagerObserver* observer)
54 sync_driver::DataTypeStatusTable* data_type_status_table)
55 OVERRIDE; 54 OVERRIDE;
56 55
57 virtual browser_sync::SyncBackendHost* CreateSyncBackendHost( 56 virtual browser_sync::SyncBackendHost* CreateSyncBackendHost(
58 const std::string& name, 57 const std::string& name,
59 Profile* profile, 58 Profile* profile,
60 invalidation::InvalidationService* invalidator, 59 invalidation::InvalidationService* invalidator,
61 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, 60 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs,
62 const base::FilePath& sync_folder) OVERRIDE; 61 const base::FilePath& sync_folder) OVERRIDE;
63 62
64 virtual scoped_ptr<browser_sync::LocalDeviceInfoProvider> 63 virtual scoped_ptr<browser_sync::LocalDeviceInfoProvider>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 const GURL sync_service_url_; 106 const GURL sync_service_url_;
108 OAuth2TokenService* const token_service_; 107 OAuth2TokenService* const token_service_;
109 net::URLRequestContextGetter* const url_request_context_getter_; 108 net::URLRequestContextGetter* const url_request_context_getter_;
110 109
111 base::WeakPtrFactory<ProfileSyncComponentsFactoryImpl> weak_factory_; 110 base::WeakPtrFactory<ProfileSyncComponentsFactoryImpl> weak_factory_;
112 111
113 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); 112 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl);
114 }; 113 };
115 114
116 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 115 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_components_factory.h ('k') | chrome/browser/sync/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698