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

Side by Side Diff: chrome/browser/sync/syncable/syncable.cc

Issue 414072: sync: get rid of path_helpers (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: delete path_helpers_unittest from gyp Created 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/syncable/syncable.h" 5 #include "chrome/browser/sync/syncable/syncable.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <sys/stat.h> 9 #include <sys/stat.h>
10 #if defined(OS_POSIX) 10 #if defined(OS_POSIX)
(...skipping 26 matching lines...) Expand all
37 #include "chrome/browser/sync/engine/syncer_util.h" 37 #include "chrome/browser/sync/engine/syncer_util.h"
38 #include "chrome/browser/sync/protocol/service_constants.h" 38 #include "chrome/browser/sync/protocol/service_constants.h"
39 #include "chrome/browser/sync/syncable/directory_backing_store.h" 39 #include "chrome/browser/sync/syncable/directory_backing_store.h"
40 #include "chrome/browser/sync/syncable/directory_manager.h" 40 #include "chrome/browser/sync/syncable/directory_manager.h"
41 #include "chrome/browser/sync/syncable/syncable-inl.h" 41 #include "chrome/browser/sync/syncable/syncable-inl.h"
42 #include "chrome/browser/sync/syncable/syncable_changes_version.h" 42 #include "chrome/browser/sync/syncable/syncable_changes_version.h"
43 #include "chrome/browser/sync/syncable/syncable_columns.h" 43 #include "chrome/browser/sync/syncable/syncable_columns.h"
44 #include "chrome/browser/sync/util/crypto_helpers.h" 44 #include "chrome/browser/sync/util/crypto_helpers.h"
45 #include "chrome/browser/sync/util/event_sys-inl.h" 45 #include "chrome/browser/sync/util/event_sys-inl.h"
46 #include "chrome/browser/sync/util/fast_dump.h" 46 #include "chrome/browser/sync/util/fast_dump.h"
47 #include "chrome/browser/sync/util/path_helpers.h"
48 47
49 namespace { 48 namespace {
50 enum InvariantCheckLevel { 49 enum InvariantCheckLevel {
51 OFF = 0, 50 OFF = 0,
52 VERIFY_IN_MEMORY = 1, 51 VERIFY_IN_MEMORY = 1,
53 FULL_DB_VERIFICATION = 2 52 FULL_DB_VERIFICATION = 2
54 }; 53 };
55 54
56 static const InvariantCheckLevel kInvariantCheckLevel = VERIFY_IN_MEMORY; 55 static const InvariantCheckLevel kInvariantCheckLevel = VERIFY_IN_MEMORY;
57 56
(...skipping 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1441 return s << std::dec; 1440 return s << std::dec;
1442 } 1441 }
1443 1442
1444 FastDump& operator<<(FastDump& dump, const syncable::Blob& blob) { 1443 FastDump& operator<<(FastDump& dump, const syncable::Blob& blob) {
1445 if (blob.empty()) 1444 if (blob.empty())
1446 return dump; 1445 return dump;
1447 string buffer(HexEncode(&blob[0], blob.size())); 1446 string buffer(HexEncode(&blob[0], blob.size()));
1448 dump.out_->sputn(buffer.c_str(), buffer.size()); 1447 dump.out_->sputn(buffer.c_str(), buffer.size());
1449 return dump; 1448 return dump;
1450 } 1449 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/syncable/syncable.h ('k') | chrome/browser/sync/syncable/syncable_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698