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

Side by Side Diff: chrome/browser/extensions/api/storage/setting_sync_data.h

Issue 2310683002: Remove most ScopedVector usage from c/b/extensions. (Closed)
Patch Set: remove scoped_vector includes Created 4 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_EXTENSIONS_API_STORAGE_SETTING_SYNC_DATA_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTING_SYNC_DATA_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTING_SYNC_DATA_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTING_SYNC_DATA_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/scoped_vector.h"
13 #include "base/values.h" 12 #include "base/values.h"
14 #include "components/sync/api/sync_change.h" 13 #include "components/sync/api/sync_change.h"
15 14
16 namespace syncer { 15 namespace syncer {
17 class SyncData; 16 class SyncData;
18 } 17 }
19 18
20 namespace sync_pb { 19 namespace sync_pb {
21 class ExtensionSettingSpecifics; 20 class ExtensionSettingSpecifics;
22 } 21 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void ExtractSyncData(const syncer::SyncData& sync_data); 60 void ExtractSyncData(const syncer::SyncData& sync_data);
62 61
63 syncer::SyncChange::SyncChangeType change_type_; 62 syncer::SyncChange::SyncChangeType change_type_;
64 std::string extension_id_; 63 std::string extension_id_;
65 std::string key_; 64 std::string key_;
66 std::unique_ptr<base::Value> value_; 65 std::unique_ptr<base::Value> value_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(SettingSyncData); 67 DISALLOW_COPY_AND_ASSIGN(SettingSyncData);
69 }; 68 };
70 69
71 typedef ScopedVector<SettingSyncData> SettingSyncDataList; 70 using SettingSyncDataList = std::vector<std::unique_ptr<SettingSyncData>>;
72 71
73 } // namespace extensions 72 } // namespace extensions
74 73
75 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTING_SYNC_DATA_H_ 74 #endif // CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTING_SYNC_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698