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

Side by Side Diff: sync/syncable/directory_backing_store.cc

Issue 10917246: [Sync] Add keystore encryption info to about:sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + address comments Created 8 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 | Annotate | Revision Log
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 #include "sync/syncable/directory_backing_store.h" 5 #include "sync/syncable/directory_backing_store.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <limits> 9 #include <limits>
10 10
11 #include "base/base64.h" 11 #include "base/base64.h"
12 #include "base/debug/trace_event.h" 12 #include "base/debug/trace_event.h"
13 #include "base/file_util.h" 13 #include "base/file_util.h"
14 #include "base/hash_tables.h" 14 #include "base/hash_tables.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/metrics/histogram.h" 16 #include "base/metrics/histogram.h"
17 #include "base/rand_util.h" 17 #include "base/rand_util.h"
18 #include "base/stl_util.h" 18 #include "base/stl_util.h"
19 #include "base/string_number_conversions.h" 19 #include "base/string_number_conversions.h"
20 #include "base/stringprintf.h" 20 #include "base/stringprintf.h"
21 #include "base/time.h" 21 #include "base/time.h"
22 #include "sql/connection.h" 22 #include "sql/connection.h"
23 #include "sql/statement.h" 23 #include "sql/statement.h"
24 #include "sql/transaction.h" 24 #include "sql/transaction.h"
25 #include "sync/internal_api/public/util/time.h"
25 #include "sync/protocol/bookmark_specifics.pb.h" 26 #include "sync/protocol/bookmark_specifics.pb.h"
26 #include "sync/protocol/sync.pb.h" 27 #include "sync/protocol/sync.pb.h"
27 #include "sync/syncable/syncable-inl.h" 28 #include "sync/syncable/syncable-inl.h"
28 #include "sync/syncable/syncable_columns.h" 29 #include "sync/syncable/syncable_columns.h"
29 #include "sync/util/time.h"
30 30
31 using std::string; 31 using std::string;
32 32
33 namespace syncer { 33 namespace syncer {
34 namespace syncable { 34 namespace syncable {
35 35
36 // This just has to be big enough to hold an UPDATE or INSERT statement that 36 // This just has to be big enough to hold an UPDATE or INSERT statement that
37 // modifies all the columns in the entry table. 37 // modifies all the columns in the entry table.
38 static const string::size_type kUpdateStatementBufferSize = 2048; 38 static const string::size_type kUpdateStatementBufferSize = 2048;
39 39
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 bool prev_exists = (ids_set.find(entry->ref(PREV_ID).value()) != end); 1153 bool prev_exists = (ids_set.find(entry->ref(PREV_ID).value()) != end);
1154 bool parent_exists = (ids_set.find(entry->ref(PARENT_ID).value()) != end); 1154 bool parent_exists = (ids_set.find(entry->ref(PARENT_ID).value()) != end);
1155 bool next_exists = (ids_set.find(entry->ref(NEXT_ID).value()) != end); 1155 bool next_exists = (ids_set.find(entry->ref(NEXT_ID).value()) != end);
1156 is_ok = is_ok && prev_exists && parent_exists && next_exists; 1156 is_ok = is_ok && prev_exists && parent_exists && next_exists;
1157 } 1157 }
1158 return is_ok; 1158 return is_ok;
1159 } 1159 }
1160 1160
1161 } // namespace syncable 1161 } // namespace syncable
1162 } // namespace syncer 1162 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698