Chromium Code Reviews| Index: chrome/browser/sync/test/integration/fake_server_invalidation_service.h |
| diff --git a/chrome/browser/sync/test/integration/fake_server_invalidation_service.h b/chrome/browser/sync/test/integration/fake_server_invalidation_service.h |
| index d164c14d87f60541f93780d0060c5d6ebc6814d2..dd51877302866c63ffbe027f525d76f06125e365 100644 |
| --- a/chrome/browser/sync/test/integration/fake_server_invalidation_service.h |
| +++ b/chrome/browser/sync/test/integration/fake_server_invalidation_service.h |
| @@ -50,11 +50,19 @@ class FakeServerInvalidationService : public invalidation::InvalidationService, |
| base::Callback<void(const base::DictionaryValue&)> caller) const OVERRIDE; |
| virtual IdentityProvider* GetIdentityProvider() OVERRIDE; |
| + // When true, this flag enables the sending of notifications to all clients, |
| + // including the one responsible for the commit. |
| + void SetSelfNotificationsEnabled(bool enabled); |
|
pval...(no longer on Chromium)
2014/05/21 17:37:03
How about two methods: EnableSelfNotifications() a
rlarocque
2014/05/21 17:50:36
Yes, I was mainly concerned about the call site wh
pval...(no longer on Chromium)
2014/05/21 19:46:58
separate methods sgtm
|
| + |
| // FakeServer::Observer: |
| - virtual void OnCommit(syncer::ModelTypeSet committed_model_types) OVERRIDE; |
| + virtual void OnCommit( |
| + const std::string& committer_id, |
| + syncer::ModelTypeSet committed_model_types) OVERRIDE; |
| private: |
| std::string client_id_; |
| + bool self_notify_; |
| + |
| syncer::InvalidatorRegistrar invalidator_registrar_; |
| FakeProfileOAuth2TokenService token_service_; |
| FakeIdentityProvider identity_provider_; |