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

Unified Diff: chrome/browser/sync/syncable/syncable.cc

Issue 4683003: Sending the proto files for review to unblcok the server team Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/syncable/syncable.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/syncable/syncable.cc
diff --git a/chrome/browser/sync/syncable/syncable.cc b/chrome/browser/sync/syncable/syncable.cc
index 99cc2ba2a77c73461f6efe789dfc6464d13ba8ab..ae6d2b21c6f5c23af732b214063c7851b9f94e07 100644
--- a/chrome/browser/sync/syncable/syncable.cc
+++ b/chrome/browser/sync/syncable/syncable.cc
@@ -1004,6 +1004,15 @@ BaseTransaction::BaseTransaction(Directory* directory, const char* name,
Lock();
}
+BaseTransaction::BaseTransaction(Directory* directory) :
+ source_file_(NULL),
+ name_(NULL),
+ line_(NULL),
+ writer_(INVALID),
+ dirkernel_(NULL),
+ directory_(directory) {
+}
+
BaseTransaction::~BaseTransaction() {}
void BaseTransaction::UnlockAndLog(OriginalEntries* originals_arg) {
@@ -1098,6 +1107,11 @@ WriteTransaction::WriteTransaction(const ScopedDirLookup& scoped_dir,
originals_(new OriginalEntries) {
}
+WriteTransaction::WriteTransaction(Directory *directory) :
+ BaseTransaction(directory),
+ originals_(new OriginalEntries) {
+}
+
void WriteTransaction::SaveOriginal(EntryKernel* entry) {
if (NULL == entry)
return;
« no previous file with comments | « chrome/browser/sync/syncable/syncable.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698