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

Side by Side Diff: chrome/browser/sync/engine/nigori_util.cc

Issue 8468023: Move encryption related files from util folder to encryption folder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/sync/engine/nigori_util.h" 5 #include "chrome/browser/sync/engine/nigori_util.h"
6 6
7 #include <queue> 7 #include <queue>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "chrome/browser/sync/engine/syncer_util.h" 11 #include "chrome/browser/sync/engine/syncer_util.h"
tim (not reviewing) 2011/11/16 17:58:49 should this file also move to /encryption?
Nicolas Zea 2011/11/16 23:35:48 agreed
12 #include "chrome/browser/sync/internal_api/write_node.h" 12 #include "chrome/browser/sync/internal_api/write_node.h"
13 #include "chrome/browser/sync/syncable/syncable.h" 13 #include "chrome/browser/sync/syncable/syncable.h"
14 #include "chrome/browser/sync/util/cryptographer.h" 14 #include "chrome/browser/sync/encryption/cryptographer.h"
15 15
16 namespace syncable { 16 namespace syncable {
17 17
18 bool ProcessUnsyncedChangesForEncryption( 18 bool ProcessUnsyncedChangesForEncryption(
19 WriteTransaction* const trans, 19 WriteTransaction* const trans,
20 browser_sync::Cryptographer* cryptographer) { 20 browser_sync::Cryptographer* cryptographer) {
21 DCHECK(cryptographer->is_ready()); 21 DCHECK(cryptographer->is_ready());
22 syncable::ModelTypeSet encrypted_types = cryptographer->GetEncryptedTypes(); 22 syncable::ModelTypeSet encrypted_types = cryptographer->GetEncryptedTypes();
23 23
24 // Get list of all datatypes with unsynced changes. It's possible that our 24 // Get list of all datatypes with unsynced changes. It's possible that our
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 return false; 140 return false;
141 } 141 }
142 } 142 }
143 // Push the successor. 143 // Push the successor.
144 to_visit.push(child.Get(NEXT_ID)); 144 to_visit.push(child.Get(NEXT_ID));
145 } 145 }
146 return true; 146 return true;
147 } 147 }
148 148
149 } // namespace syncable 149 } // namespace syncable
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698