Index: components/sync_driver/generic_change_processor.cc |
diff --git a/components/sync_driver/generic_change_processor.cc b/components/sync_driver/generic_change_processor.cc |
index 60d9977b4dbdc060eb75e48c038c9745b04798e1..8f3eff195ecc74aa57e401bd7be78ec8af7c36ec 100644 |
--- a/components/sync_driver/generic_change_processor.cc |
+++ b/components/sync_driver/generic_change_processor.cc |
@@ -94,7 +94,7 @@ GenericChangeProcessor::GenericChangeProcessor( |
const base::WeakPtr<syncer::SyncMergeResult>& merge_result, |
syncer::UserShare* user_share, |
SyncApiComponentFactory* sync_factory, |
- const scoped_refptr<syncer::AttachmentStore>& attachment_store) |
+ scoped_ptr<syncer::AttachmentStore> attachment_store) |
: ChangeProcessor(error_handler), |
type_(type), |
local_service_(local_service), |
@@ -103,14 +103,14 @@ GenericChangeProcessor::GenericChangeProcessor( |
weak_ptr_factory_(this) { |
DCHECK(CalledOnValidThread()); |
DCHECK_NE(type_, syncer::UNSPECIFIED); |
- if (attachment_store.get()) { |
+ if (attachment_store) { |
std::string store_birthday; |
{ |
syncer::ReadTransaction trans(FROM_HERE, share_handle()); |
store_birthday = trans.GetStoreBirthday(); |
} |
attachment_service_ = sync_factory->CreateAttachmentService( |
- attachment_store, *user_share, store_birthday, type, this); |
+ attachment_store.Pass(), *user_share, store_birthday, type, this); |
attachment_service_weak_ptr_factory_.reset( |
new base::WeakPtrFactory<syncer::AttachmentService>( |
attachment_service_.get())); |