| OLD | NEW |
| 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/sync_backend_host.h" | 5 #include "chrome/browser/sync/glue/sync_backend_host.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 | 8 |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 profile_.get(), | 149 profile_.get(), |
| 150 sync_prefs_->AsWeakPtr(), | 150 sync_prefs_->AsWeakPtr(), |
| 151 invalidator_storage_->AsWeakPtr())); | 151 invalidator_storage_->AsWeakPtr())); |
| 152 credentials_.email = "user@example.com"; | 152 credentials_.email = "user@example.com"; |
| 153 credentials_.sync_token = "sync_token"; | 153 credentials_.sync_token = "sync_token"; |
| 154 | 154 |
| 155 // NOTE: We can't include Passwords or Typed URLs due to the Sync Backend | 155 // NOTE: We can't include Passwords or Typed URLs due to the Sync Backend |
| 156 // Registrar removing them if it can't find their model workers. | 156 // Registrar removing them if it can't find their model workers. |
| 157 enabled_types_.Put(syncer::BOOKMARKS); | 157 enabled_types_.Put(syncer::BOOKMARKS); |
| 158 enabled_types_.Put(syncer::NIGORI); | 158 enabled_types_.Put(syncer::NIGORI); |
| 159 enabled_types_.Put(syncer::DEVICE_INFO); |
| 159 enabled_types_.Put(syncer::PREFERENCES); | 160 enabled_types_.Put(syncer::PREFERENCES); |
| 160 enabled_types_.Put(syncer::SESSIONS); | 161 enabled_types_.Put(syncer::SESSIONS); |
| 161 enabled_types_.Put(syncer::SEARCH_ENGINES); | 162 enabled_types_.Put(syncer::SEARCH_ENGINES); |
| 162 enabled_types_.Put(syncer::AUTOFILL); | 163 enabled_types_.Put(syncer::AUTOFILL); |
| 163 } | 164 } |
| 164 | 165 |
| 165 virtual void TearDown() OVERRIDE { | 166 virtual void TearDown() OVERRIDE { |
| 166 if (backend_.get()) { | 167 if (backend_.get()) { |
| 167 backend_->StopSyncingForShutdown(); | 168 backend_->StopSyncingForShutdown(); |
| 168 backend_->Shutdown(false); | 169 backend_->Shutdown(false); |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 backend_->Shutdown(false); | 647 backend_->Shutdown(false); |
| 647 backend_.reset(); | 648 backend_.reset(); |
| 648 | 649 |
| 649 TearDown(); | 650 TearDown(); |
| 650 SetUp(); | 651 SetUp(); |
| 651 } | 652 } |
| 652 | 653 |
| 653 } // namespace | 654 } // namespace |
| 654 | 655 |
| 655 } // namespace browser_sync | 656 } // namespace browser_sync |
| OLD | NEW |