| 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 350 |
| 351 user_agent += version_info.Version(); | 351 user_agent += version_info.Version(); |
| 352 user_agent += " (" + version_info.LastChange() + ")"; | 352 user_agent += " (" + version_info.LastChange() + ")"; |
| 353 if (!version_info.IsOfficialBuild()) | 353 if (!version_info.IsOfficialBuild()) |
| 354 user_agent += "-devel"; | 354 user_agent += "-devel"; |
| 355 return user_agent; | 355 return user_agent; |
| 356 } | 356 } |
| 357 | 357 |
| 358 syncer::HttpPostProviderFactory* MakeHttpBridgeFactory( | 358 syncer::HttpPostProviderFactory* MakeHttpBridgeFactory( |
| 359 const scoped_refptr<net::URLRequestContextGetter>& getter) { | 359 const scoped_refptr<net::URLRequestContextGetter>& getter) { |
| 360 return new HttpBridgeFactory(getter, MakeUserAgentForSyncApi()); | 360 return new syncer::HttpBridgeFactory(getter, MakeUserAgentForSyncApi()); |
| 361 } | 361 } |
| 362 | 362 |
| 363 } // namespace | 363 } // namespace |
| 364 | 364 |
| 365 void SyncBackendHost::Initialize( | 365 void SyncBackendHost::Initialize( |
| 366 SyncFrontend* frontend, | 366 SyncFrontend* frontend, |
| 367 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, | 367 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, |
| 368 const GURL& sync_service_url, | 368 const GURL& sync_service_url, |
| 369 syncable::ModelTypeSet initial_types, | 369 syncable::ModelTypeSet initial_types, |
| 370 const SyncCredentials& credentials, | 370 const SyncCredentials& credentials, |
| (...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1425 FROM_HERE, | 1425 FROM_HERE, |
| 1426 base::Bind(&SyncBackendHost::Core::DoRefreshNigori, | 1426 base::Bind(&SyncBackendHost::Core::DoRefreshNigori, |
| 1427 core_.get(), sync_thread_done_callback)); | 1427 core_.get(), sync_thread_done_callback)); |
| 1428 } | 1428 } |
| 1429 | 1429 |
| 1430 #undef SDVLOG | 1430 #undef SDVLOG |
| 1431 | 1431 |
| 1432 #undef SLOG | 1432 #undef SLOG |
| 1433 | 1433 |
| 1434 } // namespace browser_sync | 1434 } // namespace browser_sync |
| OLD | NEW |