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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host.h

Issue 1851004: Adding sync support for Passwords (Closed)
Patch Set: Ready for checkin Created 10 years, 7 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 bool delete_sync_data_folder, 181 bool delete_sync_data_folder,
182 NotificationMethod notification_method) { 182 NotificationMethod notification_method) {
183 if (!core_thread_.Start()) 183 if (!core_thread_.Start())
184 return; 184 return;
185 registrar_.workers[GROUP_UI] = new UIModelWorker(frontend_loop_); 185 registrar_.workers[GROUP_UI] = new UIModelWorker(frontend_loop_);
186 registrar_.routing_info[syncable::BOOKMARKS] = GROUP_PASSIVE; 186 registrar_.routing_info[syncable::BOOKMARKS] = GROUP_PASSIVE;
187 registrar_.routing_info[syncable::PREFERENCES] = GROUP_PASSIVE; 187 registrar_.routing_info[syncable::PREFERENCES] = GROUP_PASSIVE;
188 registrar_.routing_info[syncable::AUTOFILL] = GROUP_PASSIVE; 188 registrar_.routing_info[syncable::AUTOFILL] = GROUP_PASSIVE;
189 registrar_.routing_info[syncable::THEMES] = GROUP_PASSIVE; 189 registrar_.routing_info[syncable::THEMES] = GROUP_PASSIVE;
190 registrar_.routing_info[syncable::TYPED_URLS] = GROUP_PASSIVE; 190 registrar_.routing_info[syncable::TYPED_URLS] = GROUP_PASSIVE;
191 registrar_.routing_info[syncable::PASSWORD] = GROUP_PASSIVE;
191 192
192 core_thread_.message_loop()->PostTask(FROM_HERE, 193 core_thread_.message_loop()->PostTask(FROM_HERE,
193 NewRunnableMethod(core_.get(), 194 NewRunnableMethod(core_.get(),
194 &SyncBackendHost::Core::DoInitializeForTest, 195 &SyncBackendHost::Core::DoInitializeForTest,
195 test_user, 196 test_user,
196 network_change_notifier_thread, 197 network_change_notifier_thread,
197 factory, 198 factory,
198 auth_factory, 199 auth_factory,
199 delete_sync_data_folder, 200 delete_sync_data_folder,
200 notification_method)); 201 notification_method));
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 444
444 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. 445 // UI-thread cache of the last SyncSessionSnapshot received from syncapi.
445 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; 446 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_;
446 447
447 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 448 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
448 }; 449 };
449 450
450 } // namespace browser_sync 451 } // namespace browser_sync
451 452
452 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 453 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/password_model_worker.cc ('k') | chrome/browser/sync/glue/sync_backend_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698