| Index: chrome/browser/sync/engine/process_commit_response_command.cc
|
| ===================================================================
|
| --- chrome/browser/sync/engine/process_commit_response_command.cc (revision 30121)
|
| +++ chrome/browser/sync/engine/process_commit_response_command.cc (working copy)
|
| @@ -52,11 +52,19 @@
|
| status.zero_consecutive_errors();
|
| }
|
|
|
| -ProcessCommitResponseCommand::ProcessCommitResponseCommand() {}
|
| +ProcessCommitResponseCommand::ProcessCommitResponseCommand(
|
| + ExtensionsActivityMonitor* monitor) : extensions_monitor_(monitor) {}
|
| ProcessCommitResponseCommand::~ProcessCommitResponseCommand() {}
|
|
|
| void ProcessCommitResponseCommand::ModelChangingExecuteImpl(
|
| SyncerSession* session) {
|
| + ProcessCommitResponse(session);
|
| + if (!session->HadSuccessfulCommits())
|
| + extensions_monitor_->PutRecords(session->extensions_activity());
|
| +}
|
| +
|
| +void ProcessCommitResponseCommand::ProcessCommitResponse(
|
| + SyncerSession* session) {
|
| // TODO(sync): This function returns if it sees problems. We probably want
|
| // to flag the need for an update or similar.
|
| ScopedDirLookup dir(session->dirman(), session->account_name());
|
|
|