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

Side by Side Diff: chrome/browser/sync/glue/bridged_invalidator.cc

Issue 10874096: [Sync] Rework Invalidator-related unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/sync/glue/bridged_invalidator.h" 5 #include "chrome/browser/sync/glue/bridged_invalidator.h"
6 6
7 #include "chrome/browser/sync/glue/chrome_sync_notification_bridge.h" 7 #include "chrome/browser/sync/glue/chrome_sync_notification_bridge.h"
8 8
9 namespace browser_sync { 9 namespace browser_sync {
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 delegate_->SetStateDeprecated(state); 50 delegate_->SetStateDeprecated(state);
51 } 51 }
52 52
53 void BridgedInvalidator::UpdateCredentials( 53 void BridgedInvalidator::UpdateCredentials(
54 const std::string& email, const std::string& token) { 54 const std::string& email, const std::string& token) {
55 if (delegate_.get()) 55 if (delegate_.get())
56 delegate_->UpdateCredentials(email, token); 56 delegate_->UpdateCredentials(email, token);
57 } 57 }
58 58
59 void BridgedInvalidator::SendNotification( 59 void BridgedInvalidator::SendNotification(
60 syncer::ModelTypeSet changed_types) { 60 const syncer::ObjectIdStateMap& id_state_map) {
61 if (delegate_.get()) 61 if (delegate_.get())
62 delegate_->SendNotification(changed_types); 62 delegate_->SendNotification(id_state_map);
63 } 63 }
64 64
65 } // namespace browser_sync 65 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/bridged_invalidator.h ('k') | chrome/browser/sync/glue/bridged_invalidator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698