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

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

Issue 10699044: [Sync] Move sync/{internal_api,syncable} into syncer namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 years, 5 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
« no previous file with comments | « sync/syncable/write_transaction.h ('k') | sync/syncable/write_transaction_info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/write_transaction.h" 5 #include "sync/syncable/write_transaction.h"
6 6
7 #include "sync/syncable/directory.h" 7 #include "sync/syncable/directory.h"
8 #include "sync/syncable/directory_change_delegate.h" 8 #include "sync/syncable/directory_change_delegate.h"
9 #include "sync/syncable/transaction_observer.h" 9 #include "sync/syncable/transaction_observer.h"
10 #include "sync/syncable/write_transaction_info.h" 10 #include "sync/syncable/write_transaction_info.h"
11 11
12 namespace syncer {
12 namespace syncable { 13 namespace syncable {
13 14
14 WriteTransaction::WriteTransaction(const tracked_objects::Location& location, 15 WriteTransaction::WriteTransaction(const tracked_objects::Location& location,
15 WriterTag writer, Directory* directory) 16 WriterTag writer, Directory* directory)
16 : BaseTransaction(location, "WriteTransaction", writer, directory) { 17 : BaseTransaction(location, "WriteTransaction", writer, directory) {
17 Lock(); 18 Lock();
18 } 19 }
19 20
20 void WriteTransaction::SaveOriginal(const EntryKernel* entry) { 21 void WriteTransaction::SaveOriginal(const EntryKernel* entry) {
21 if (!entry) { 22 if (!entry) {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 ENUM_CASE(PURGE_ENTRIES); 133 ENUM_CASE(PURGE_ENTRIES);
133 ENUM_CASE(SYNCAPI); 134 ENUM_CASE(SYNCAPI);
134 }; 135 };
135 NOTREACHED(); 136 NOTREACHED();
136 return ""; 137 return "";
137 } 138 }
138 139
139 #undef ENUM_CASE 140 #undef ENUM_CASE
140 141
141 } // namespace syncable 142 } // namespace syncable
143 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/syncable/write_transaction.h ('k') | sync/syncable/write_transaction_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698