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

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

Issue 17911005: Merge 208347 "Revert 208315 "Make use of InvalidationService"" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1547/src/
Patch Set: Created 7 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/invalidation_frontend_test_template.h" 5 #include "chrome/browser/invalidation/invalidation_frontend_test_template.h"
6 6
7 namespace internal { 7 namespace internal {
8 8
9 BoundFakeInvalidationHandler::BoundFakeInvalidationHandler( 9 BoundFakeInvalidationHandler::BoundFakeInvalidationHandler(
10 const invalidation::InvalidationFrontend& invalidator) 10 const invalidation::InvalidationFrontend& invalidator)
11 : invalidator_(invalidator), 11 : invalidator_(invalidator),
12 last_retrieved_state_(syncer::DEFAULT_INVALIDATION_ERROR) {} 12 last_retrieved_state_(syncer::DEFAULT_INVALIDATION_ERROR) {}
13 13
14 BoundFakeInvalidationHandler::~BoundFakeInvalidationHandler() {} 14 BoundFakeInvalidationHandler::~BoundFakeInvalidationHandler() {}
15 15
16 syncer::InvalidatorState 16 syncer::InvalidatorState
17 BoundFakeInvalidationHandler::GetLastRetrievedState() const { 17 BoundFakeInvalidationHandler::GetLastRetrievedState() const {
18 return last_retrieved_state_; 18 return last_retrieved_state_;
19 } 19 }
20 20
21 void BoundFakeInvalidationHandler::OnInvalidatorStateChange( 21 void BoundFakeInvalidationHandler::OnInvalidatorStateChange(
22 syncer::InvalidatorState state) { 22 syncer::InvalidatorState state) {
23 FakeInvalidationHandler::OnInvalidatorStateChange(state); 23 FakeInvalidationHandler::OnInvalidatorStateChange(state);
24 last_retrieved_state_ = invalidator_.GetInvalidatorState(); 24 last_retrieved_state_ = invalidator_.GetInvalidatorState();
25 } 25 }
26 26
27 } 27 }
OLDNEW
« no previous file with comments | « chrome/browser/invalidation/invalidation_frontend_test_template.h ('k') | chrome/browser/invalidation/invalidation_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698