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

Unified Diff: chrome/browser/sync/util/cryptographer.h

Issue 8851006: [Sync] Replace all instances of ModelTypeSet with ModelEnumSet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup pass #2 Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/util/cryptographer.h
diff --git a/chrome/browser/sync/util/cryptographer.h b/chrome/browser/sync/util/cryptographer.h
index 992c443900b17b1236bf4813cadac76cd9511fa3..b37029655c1fdbf6a4d9e6dcc96ec23f59ccd80f 100644
--- a/chrome/browser/sync/util/cryptographer.h
+++ b/chrome/browser/sync/util/cryptographer.h
@@ -62,7 +62,7 @@ class Cryptographer {
// set of encrypted types is SensitiveTypes() and that the encrypt
// everything flag is false.
virtual void OnEncryptedTypesChanged(
- const syncable::ModelTypeSet& encrypted_types,
+ syncable::ModelEnumSet encrypted_types,
bool encrypt_everything) = 0;
protected:
@@ -163,7 +163,7 @@ class Cryptographer {
UpdateResult Update(const sync_pb::NigoriSpecifics& nigori);
// The set of types that are always encrypted.
- static syncable::ModelTypeSet SensitiveTypes();
+ static syncable::ModelEnumSet SensitiveTypes();
// Reset our set of encrypted types based on the contents of the nigori
// specifics.
@@ -180,11 +180,11 @@ class Cryptographer {
bool encrypt_everything() const;
// Return the set of encrypted types.
- syncable::ModelTypeSet GetEncryptedTypes() const;
+ syncable::ModelEnumSet GetEncryptedTypes() const;
// Forwards to MergeEncryptedTypes.
void MergeEncryptedTypesForTest(
- const syncable::ModelTypeSet& encrypted_types);
+ syncable::ModelEnumSet encrypted_types);
private:
FRIEND_TEST_ALL_PREFIXES(CryptographerTest, PackUnpack);
@@ -192,7 +192,7 @@ class Cryptographer {
// Merges the given set of encrypted types with the existing set and emits a
// notification if necessary.
- void MergeEncryptedTypes(const syncable::ModelTypeSet& encrypted_types);
+ void MergeEncryptedTypes(syncable::ModelEnumSet encrypted_types);
void EmitEncryptedTypesChangedNotification();
@@ -216,7 +216,7 @@ class Cryptographer {
scoped_ptr<sync_pb::EncryptedData> pending_keys_;
- syncable::ModelTypeSet encrypted_types_;
+ syncable::ModelEnumSet encrypted_types_;
bool encrypt_everything_;
DISALLOW_COPY_AND_ASSIGN(Cryptographer);
« no previous file with comments | « chrome/browser/sync/test/integration/migration_errors_test.cc ('k') | chrome/browser/sync/util/cryptographer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698