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

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

Issue 10451060: sync: migrate invalidation state from syncable::Directory to InvalidationStorage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include order Created 8 years, 6 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_sync_notifier.h" 5 #include "chrome/browser/sync/glue/bridged_sync_notifier.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 19 matching lines...) Expand all
30 bridge_->RemoveObserver(observer); 30 bridge_->RemoveObserver(observer);
31 if (delegate_.get()) 31 if (delegate_.get())
32 delegate_->RemoveObserver(observer); 32 delegate_->RemoveObserver(observer);
33 } 33 }
34 34
35 void BridgedSyncNotifier::SetUniqueId(const std::string& unique_id) { 35 void BridgedSyncNotifier::SetUniqueId(const std::string& unique_id) {
36 if (delegate_.get()) 36 if (delegate_.get())
37 delegate_->SetUniqueId(unique_id); 37 delegate_->SetUniqueId(unique_id);
38 } 38 }
39 39
40 void BridgedSyncNotifier::SetState(const std::string& state) { 40 void BridgedSyncNotifier::SetStateDeprecated(const std::string& state) {
41 if (delegate_.get()) 41 if (delegate_.get())
42 delegate_->SetState(state); 42 delegate_->SetStateDeprecated(state);
43 } 43 }
44 44
45 void BridgedSyncNotifier::UpdateCredentials( 45 void BridgedSyncNotifier::UpdateCredentials(
46 const std::string& email, const std::string& token) { 46 const std::string& email, const std::string& token) {
47 if (delegate_.get()) 47 if (delegate_.get())
48 delegate_->UpdateCredentials(email, token); 48 delegate_->UpdateCredentials(email, token);
49 } 49 }
50 50
51 void BridgedSyncNotifier::UpdateEnabledTypes( 51 void BridgedSyncNotifier::UpdateEnabledTypes(
52 syncable::ModelTypeSet enabled_types) { 52 syncable::ModelTypeSet enabled_types) {
53 if (delegate_.get()) 53 if (delegate_.get())
54 delegate_->UpdateEnabledTypes(enabled_types); 54 delegate_->UpdateEnabledTypes(enabled_types);
55 } 55 }
56 56
57 void BridgedSyncNotifier::SendNotification( 57 void BridgedSyncNotifier::SendNotification(
58 syncable::ModelTypeSet changed_types) { 58 syncable::ModelTypeSet changed_types) {
59 if (delegate_.get()) 59 if (delegate_.get())
60 delegate_->SendNotification(changed_types); 60 delegate_->SendNotification(changed_types);
61 } 61 }
62 62
63 } // namespace browser_sync 63 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/bridged_sync_notifier.h ('k') | chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698