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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #include "chrome/browser/sync/glue/sync_backend_host.h" | 7 #include "chrome/browser/sync/glue/sync_backend_host.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <map> | 10 #include <map> |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 sync_thread_("Chrome_SyncThread"), | 305 sync_thread_("Chrome_SyncThread"), |
306 frontend_loop_(MessageLoop::current()), | 306 frontend_loop_(MessageLoop::current()), |
307 profile_(profile), | 307 profile_(profile), |
308 name_("Unknown"), | 308 name_("Unknown"), |
309 initialization_state_(NOT_ATTEMPTED), | 309 initialization_state_(NOT_ATTEMPTED), |
310 chrome_sync_notification_bridge_(profile_), | 310 chrome_sync_notification_bridge_(profile_), |
311 sync_notifier_factory_( | 311 sync_notifier_factory_( |
312 ParseNotifierOptions(*CommandLine::ForCurrentProcess(), | 312 ParseNotifierOptions(*CommandLine::ForCurrentProcess(), |
313 profile_->GetRequestContext()), | 313 profile_->GetRequestContext()), |
314 content::GetUserAgent(GURL()), | 314 content::GetUserAgent(GURL()), |
315 base::WeakPtr<sync_notifier::InvalidationVersionTracker>()), | 315 base::WeakPtr<sync_notifier::InvalidationStateTracker>()), |
316 frontend_(NULL) { | 316 frontend_(NULL) { |
317 } | 317 } |
318 | 318 |
319 SyncBackendHost::~SyncBackendHost() { | 319 SyncBackendHost::~SyncBackendHost() { |
320 DCHECK(!core_ && !frontend_) << "Must call Shutdown before destructor."; | 320 DCHECK(!core_ && !frontend_) << "Must call Shutdown before destructor."; |
321 DCHECK(!registrar_.get()); | 321 DCHECK(!registrar_.get()); |
322 } | 322 } |
323 | 323 |
324 namespace { | 324 namespace { |
325 | 325 |
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1438 FROM_HERE, | 1438 FROM_HERE, |
1439 base::Bind(&SyncBackendHost::Core::DoRefreshNigori, | 1439 base::Bind(&SyncBackendHost::Core::DoRefreshNigori, |
1440 core_.get(), sync_thread_done_callback)); | 1440 core_.get(), sync_thread_done_callback)); |
1441 } | 1441 } |
1442 | 1442 |
1443 #undef SDVLOG | 1443 #undef SDVLOG |
1444 | 1444 |
1445 #undef SLOG | 1445 #undef SLOG |
1446 | 1446 |
1447 } // namespace browser_sync | 1447 } // namespace browser_sync |
OLD | NEW |