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

Side by Side Diff: sync/internal_api/public/simple_metadata_change_list.h

Issue 1866243002: Convert //sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 SYNC_INTERNAL_API_PUBLIC_SIMPLE_METADATA_CHANGE_LIST_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SIMPLE_METADATA_CHANGE_LIST_H_
6 #define SYNC_INTERNAL_API_PUBLIC_SIMPLE_METADATA_CHANGE_LIST_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_SIMPLE_METADATA_CHANGE_LIST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const DataTypeStateChange& GetDataTypeStateChange() const; 51 const DataTypeStateChange& GetDataTypeStateChange() const;
52 52
53 // Moves all currently accumulated changes into the write batch, clear out 53 // Moves all currently accumulated changes into the write batch, clear out
54 // local copies. Calling this multiple times will work, but should not be 54 // local copies. Calling this multiple times will work, but should not be
55 // necessary. 55 // necessary.
56 void TransferChanges(ModelTypeStore* store, 56 void TransferChanges(ModelTypeStore* store,
57 ModelTypeStore::WriteBatch* write_batch); 57 ModelTypeStore::WriteBatch* write_batch);
58 58
59 private: 59 private:
60 MetadataChanges metadata_changes_; 60 MetadataChanges metadata_changes_;
61 scoped_ptr<DataTypeStateChange> state_change_; 61 std::unique_ptr<DataTypeStateChange> state_change_;
62 }; 62 };
63 63
64 } // namespace syncer_v2 64 } // namespace syncer_v2
65 65
66 #endif // SYNC_INTERNAL_API_PUBLIC_SIMPLE_METADATA_CHANGE_LIST_H_ 66 #endif // SYNC_INTERNAL_API_PUBLIC_SIMPLE_METADATA_CHANGE_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698