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

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

Issue 10699044: [Sync] Move sync/{internal_api,syncable} into syncer namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 years, 5 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 "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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/session_model_associator.cc ('k') | chrome/browser/sync/glue/typed_url_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698