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

Side by Side Diff: chrome/browser/sync/chrome_sync_client.cc

Issue 2672493002: [Sync] Switch bots to run integ tests for autofill as USS. (Closed)
Patch Set: Updated for Gang's comment. Created 3 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/enable_disable_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/chrome_sync_client.h" 5 #include "chrome/browser/sync/chrome_sync_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 case syncer::DEVICE_INFO: 442 case syncer::DEVICE_INFO:
443 return ProfileSyncServiceFactory::GetForProfile(profile_) 443 return ProfileSyncServiceFactory::GetForProfile(profile_)
444 ->GetDeviceInfoSyncBridge() 444 ->GetDeviceInfoSyncBridge()
445 ->AsWeakPtr(); 445 ->AsWeakPtr();
446 case syncer::READING_LIST: 446 case syncer::READING_LIST:
447 // Reading List is only supported on iOS at the moment. 447 // Reading List is only supported on iOS at the moment.
448 NOTREACHED(); 448 NOTREACHED();
449 return base::WeakPtr<syncer::ModelTypeSyncBridge>(); 449 return base::WeakPtr<syncer::ModelTypeSyncBridge>();
450 case syncer::AUTOFILL: 450 case syncer::AUTOFILL:
451 return autofill::AutocompleteSyncBridge::FromWebDataService( 451 return autofill::AutocompleteSyncBridge::FromWebDataService(
452 web_data_service_.get()) 452 web_data_service_.get());
453 ->AsWeakPtr();
454 #if defined(OS_CHROMEOS) 453 #if defined(OS_CHROMEOS)
455 case syncer::PRINTERS: 454 case syncer::PRINTERS:
456 return chromeos::PrintersManagerFactory::GetForBrowserContext(profile_) 455 return chromeos::PrintersManagerFactory::GetForBrowserContext(profile_)
457 ->GetSyncBridge() 456 ->GetSyncBridge()
458 ->AsWeakPtr(); 457 ->AsWeakPtr();
459 #endif 458 #endif
460 default: 459 default:
461 NOTREACHED(); 460 NOTREACHED();
462 return base::WeakPtr<syncer::ModelTypeSyncBridge>(); 461 return base::WeakPtr<syncer::ModelTypeSyncBridge>();
463 } 462 }
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 sync_service->RegisterDataTypeController( 652 sync_service->RegisterDataTypeController(
654 base::MakeUnique<SupervisedUserSyncDataTypeController>( 653 base::MakeUnique<SupervisedUserSyncDataTypeController>(
655 syncer::SUPERVISED_USER_SETTINGS, error_callback, this, profile_)); 654 syncer::SUPERVISED_USER_SETTINGS, error_callback, this, profile_));
656 sync_service->RegisterDataTypeController( 655 sync_service->RegisterDataTypeController(
657 base::MakeUnique<SupervisedUserSyncDataTypeController>( 656 base::MakeUnique<SupervisedUserSyncDataTypeController>(
658 syncer::SUPERVISED_USER_WHITELISTS, error_callback, this, profile_)); 657 syncer::SUPERVISED_USER_WHITELISTS, error_callback, this, profile_));
659 #endif 658 #endif
660 } 659 }
661 660
662 } // namespace browser_sync 661 } // namespace browser_sync
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/enable_disable_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698