Commit ed1230ad authored by anujk.sharma's avatar anujk.sharma Committed by Commit bot

Make it clear that WeakPtrFactory is the last data member

Move declaration of AttachmentServiceProxyForTest's destructor to make
it clear the WeakPtrFactory is the last data member.

BUG=303818

Review URL: https://codereview.chromium.org/575383002

Cr-Commit-Position: refs/heads/master@{#295652}
parent cd15c85b
...@@ -32,12 +32,12 @@ class SYNC_EXPORT AttachmentServiceProxyForTest ...@@ -32,12 +32,12 @@ class SYNC_EXPORT AttachmentServiceProxyForTest
scoped_ptr<base::WeakPtrFactory<AttachmentService> > weak_ptr_factory); scoped_ptr<base::WeakPtrFactory<AttachmentService> > weak_ptr_factory);
private: private:
virtual ~OwningCore();
scoped_ptr<AttachmentService> wrapped_; scoped_ptr<AttachmentService> wrapped_;
// WeakPtrFactory for wrapped_. See Create() for why this is a scoped_ptr. // WeakPtrFactory for wrapped_. See Create() for why this is a scoped_ptr.
scoped_ptr<base::WeakPtrFactory<AttachmentService> > weak_ptr_factory_; scoped_ptr<base::WeakPtrFactory<AttachmentService> > weak_ptr_factory_;
virtual ~OwningCore();
DISALLOW_COPY_AND_ASSIGN(OwningCore); DISALLOW_COPY_AND_ASSIGN(OwningCore);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment