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

Unified Diff: sync/engine/directory_commit_contributor.cc

Issue 260613002: sync: Expose DirectoryDebugInfoEmitters in engine (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comment Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/engine/directory_commit_contributor.h ('k') | sync/engine/directory_update_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/directory_commit_contributor.cc
diff --git a/sync/engine/directory_commit_contributor.cc b/sync/engine/directory_commit_contributor.cc
index 41d1e123707ef3e62821300a2987d919a1011ae8..d3e00439e138f663852db2944304f65af280d8a7 100644
--- a/sync/engine/directory_commit_contributor.cc
+++ b/sync/engine/directory_commit_contributor.cc
@@ -5,21 +5,27 @@
#include "sync/engine/directory_commit_contributor.h"
#include "sync/engine/directory_commit_contribution.h"
+#include "sync/sessions/directory_type_debug_info_emitter.h"
namespace syncer {
DirectoryCommitContributor::DirectoryCommitContributor(
syncable::Directory* dir,
- ModelType type)
+ ModelType type,
+ DirectoryTypeDebugInfoEmitter* debug_info_emitter)
: dir_(dir),
- type_(type) {}
+ type_(type),
+ debug_info_emitter_(debug_info_emitter) {}
DirectoryCommitContributor::~DirectoryCommitContributor() {}
scoped_ptr<CommitContribution>
DirectoryCommitContributor::GetContribution(size_t max_entries) {
- return DirectoryCommitContribution::Build(dir_, type_, max_entries)
- .PassAs<CommitContribution>();
+ return DirectoryCommitContribution::Build(
+ dir_,
+ type_,
+ max_entries,
+ debug_info_emitter_).PassAs<CommitContribution>();
}
} // namespace syncer
« no previous file with comments | « sync/engine/directory_commit_contributor.h ('k') | sync/engine/directory_update_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698