Index: chrome/browser/sync/engine/get_commit_ids_command.h |
=================================================================== |
--- chrome/browser/sync/engine/get_commit_ids_command.h (revision 98834) |
+++ chrome/browser/sync/engine/get_commit_ids_command.h (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -29,6 +29,13 @@ |
// SyncerCommand implementation. |
virtual void ExecuteImpl(sessions::SyncSession* session); |
+ // Filter |unsynced_handles| to exclude all handles to entries that require |
+ // encryption but are in plaintext. |
+ static void FilterEntriesNeedingEncryption( |
+ const syncable::ModelTypeSet& encrypted_types, |
+ syncable::BaseTransaction* trans, |
+ syncable::Directory::UnsyncedMetaHandles* unsynced_handles); |
+ |
// Builds a vector of IDs that should be committed. |
void BuildCommitIds(const vector<int64>& unsynced_handles, |
syncable::WriteTransaction* write_transaction, |