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

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

Issue 2612323003: [Sync] Filter out types that can't be synced at configure time. (Closed)
Patch Set: Fix bots. Created 3 years, 11 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
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 <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 return FaviconServiceFactory::GetForProfile( 243 return FaviconServiceFactory::GetForProfile(
244 profile_, ServiceAccessType::IMPLICIT_ACCESS); 244 profile_, ServiceAccessType::IMPLICIT_ACCESS);
245 } 245 }
246 246
247 history::HistoryService* ChromeSyncClient::GetHistoryService() { 247 history::HistoryService* ChromeSyncClient::GetHistoryService() {
248 DCHECK_CURRENTLY_ON(BrowserThread::UI); 248 DCHECK_CURRENTLY_ON(BrowserThread::UI);
249 return HistoryServiceFactory::GetForProfile( 249 return HistoryServiceFactory::GetForProfile(
250 profile_, ServiceAccessType::EXPLICIT_ACCESS); 250 profile_, ServiceAccessType::EXPLICIT_ACCESS);
251 } 251 }
252 252
253 bool ChromeSyncClient::HasPasswordStore() {
254 return password_store_ != nullptr;
255 }
256
253 autofill::PersonalDataManager* ChromeSyncClient::GetPersonalDataManager() { 257 autofill::PersonalDataManager* ChromeSyncClient::GetPersonalDataManager() {
254 DCHECK_CURRENTLY_ON(BrowserThread::UI); 258 DCHECK_CURRENTLY_ON(BrowserThread::UI);
255 return autofill::PersonalDataManagerFactory::GetForProfile(profile_); 259 return autofill::PersonalDataManagerFactory::GetForProfile(profile_);
256 } 260 }
257 261
258 base::Closure ChromeSyncClient::GetPasswordStateChangedCallback() { 262 base::Closure ChromeSyncClient::GetPasswordStateChangedCallback() {
259 return base::Bind( 263 return base::Bind(
260 &PasswordStoreFactory::OnPasswordsSyncedStatePotentiallyChanged, 264 &PasswordStoreFactory::OnPasswordsSyncedStatePotentiallyChanged,
261 base::Unretained(profile_)); 265 base::Unretained(profile_));
262 } 266 }
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 sync_service->RegisterDataTypeController( 644 sync_service->RegisterDataTypeController(
641 base::MakeUnique<SupervisedUserSyncDataTypeController>( 645 base::MakeUnique<SupervisedUserSyncDataTypeController>(
642 syncer::SUPERVISED_USER_SETTINGS, error_callback, this, profile_)); 646 syncer::SUPERVISED_USER_SETTINGS, error_callback, this, profile_));
643 sync_service->RegisterDataTypeController( 647 sync_service->RegisterDataTypeController(
644 base::MakeUnique<SupervisedUserSyncDataTypeController>( 648 base::MakeUnique<SupervisedUserSyncDataTypeController>(
645 syncer::SUPERVISED_USER_WHITELISTS, error_callback, this, profile_)); 649 syncer::SUPERVISED_USER_WHITELISTS, error_callback, this, profile_));
646 #endif 650 #endif
647 } 651 }
648 652
649 } // namespace browser_sync 653 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/chrome_sync_client.h ('k') | components/browser_sync/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698