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

Side by Side Diff: chrome/browser/invalidation/fake_invalidation_service.cc

Issue 387733004: Move sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (GN) Comment out dependency on internal target Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/invalidation/fake_invalidation_service.h" 5 #include "chrome/browser/invalidation/fake_invalidation_service.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "components/invalidation/invalidation_service_util.h" 8 #include "components/invalidation/invalidation_service_util.h"
9 #include "sync/notifier/object_id_invalidation_map.h" 9 #include "components/invalidation/object_id_invalidation_map.h"
10 10
11 namespace invalidation { 11 namespace invalidation {
12 12
13 FakeInvalidationService::FakeInvalidationService() 13 FakeInvalidationService::FakeInvalidationService()
14 : client_id_(GenerateInvalidatorClientId()), 14 : client_id_(GenerateInvalidatorClientId()),
15 identity_provider_(&token_service_) { 15 identity_provider_(&token_service_) {
16 invalidator_registrar_.UpdateInvalidatorState(syncer::INVALIDATIONS_ENABLED); 16 invalidator_registrar_.UpdateInvalidatorState(syncer::INVALIDATIONS_ENABLED);
17 token_service_.set_auto_post_fetch_response_on_message_loop(true); 17 token_service_.set_auto_post_fetch_response_on_message_loop(true);
18 } 18 }
19 19
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 syncer::ObjectIdInvalidationMap invalidation_map; 83 syncer::ObjectIdInvalidationMap invalidation_map;
84 invalidation_map.Insert(invalidation_copy); 84 invalidation_map.Insert(invalidation_copy);
85 invalidator_registrar_.DispatchInvalidationsToHandlers(invalidation_map); 85 invalidator_registrar_.DispatchInvalidationsToHandlers(invalidation_map);
86 } 86 }
87 87
88 syncer::MockAckHandler* FakeInvalidationService::GetMockAckHandler() { 88 syncer::MockAckHandler* FakeInvalidationService::GetMockAckHandler() {
89 return &mock_ack_handler_; 89 return &mock_ack_handler_;
90 } 90 }
91 91
92 } // namespace invalidation 92 } // namespace invalidation
OLDNEW
« no previous file with comments | « chrome/browser/invalidation/fake_invalidation_service.h ('k') | chrome/browser/invalidation/invalidation_controller_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698