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

Unified Diff: chrome/browser/sync/syncable/syncable.h

Issue 8785015: Revert 112815 - [Sync] Make syncer commands avoid posting tasks on threads with no work to do (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « chrome/browser/sync/sessions/sync_session_unittest.cc ('k') | chrome/browser/sync/syncable/syncable.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/syncable/syncable.h
===================================================================
--- chrome/browser/sync/syncable/syncable.h (revision 112854)
+++ chrome/browser/sync/syncable/syncable.h (working copy)
@@ -371,8 +371,6 @@
return id_fields[field - ID_FIELDS_BEGIN];
}
- syncable::ModelType GetServerModelType() const;
-
// Does a case in-sensitive search for a given string, which must be
// lower case.
bool ContainsString(const std::string& lowercase_query) const;
@@ -489,6 +487,9 @@
EntryKernel* kernel_;
private:
+ // Like GetServerModelType() but without the DCHECKs.
+ ModelType GetServerModelTypeHelper() const;
+
DISALLOW_COPY_AND_ASSIGN(Entry);
};
@@ -968,17 +969,9 @@
void GetUnsyncedMetaHandles(BaseTransaction* trans,
UnsyncedMetaHandles* result);
- // Returns all server types with unapplied updates. A subset of
- // those types can then be passed into
- // GetUnappliedUpdateMetaHandles() below.
- syncable::ModelTypeBitSet GetServerTypesWithUnappliedUpdates(
- BaseTransaction* trans) const;
-
- // Get all the metahandles for unapplied updates for a given set of
- // server types.
+ // Get all the metahandles for unapplied updates
typedef std::vector<int64> UnappliedUpdateMetaHandles;
void GetUnappliedUpdateMetaHandles(BaseTransaction* trans,
- syncable::ModelTypeBitSet server_types,
UnappliedUpdateMetaHandles* result);
// Checks tree metadata consistency.
@@ -1110,8 +1103,7 @@
EntryKernel needle;
// 3 in-memory indices on bits used extremely frequently by the syncer.
- // |unapplied_update_metahandles| is keyed by the server model type.
- MetahandleSet unapplied_update_metahandles[MODEL_TYPE_COUNT];
+ MetahandleSet* const unapplied_update_metahandles;
MetahandleSet* const unsynced_metahandles;
// Contains metahandles that are most likely dirty (though not
// necessarily). Dirtyness is confirmed in TakeSnapshotForSaveChanges().
« no previous file with comments | « chrome/browser/sync/sessions/sync_session_unittest.cc ('k') | chrome/browser/sync/syncable/syncable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698