| OLD | NEW |
| 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 "ios/chrome/browser/sync/ios_chrome_sync_client.h" | 5 #include "ios/chrome/browser/sync/ios_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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 syncer::SyncService* IOSChromeSyncClient::GetSyncService() { | 179 syncer::SyncService* IOSChromeSyncClient::GetSyncService() { |
| 180 DCHECK_CURRENTLY_ON(web::WebThread::UI); | 180 DCHECK_CURRENTLY_ON(web::WebThread::UI); |
| 181 return IOSChromeProfileSyncServiceFactory::GetForBrowserState(browser_state_); | 181 return IOSChromeProfileSyncServiceFactory::GetForBrowserState(browser_state_); |
| 182 } | 182 } |
| 183 | 183 |
| 184 PrefService* IOSChromeSyncClient::GetPrefService() { | 184 PrefService* IOSChromeSyncClient::GetPrefService() { |
| 185 DCHECK_CURRENTLY_ON(web::WebThread::UI); | 185 DCHECK_CURRENTLY_ON(web::WebThread::UI); |
| 186 return browser_state_->GetPrefs(); | 186 return browser_state_->GetPrefs(); |
| 187 } | 187 } |
| 188 | 188 |
| 189 base::FilePath IOSChromeSyncClient::GetLocalSyncBackendFolder() { |
| 190 return base::FilePath(); |
| 191 } |
| 192 |
| 189 bookmarks::BookmarkModel* IOSChromeSyncClient::GetBookmarkModel() { | 193 bookmarks::BookmarkModel* IOSChromeSyncClient::GetBookmarkModel() { |
| 190 DCHECK_CURRENTLY_ON(web::WebThread::UI); | 194 DCHECK_CURRENTLY_ON(web::WebThread::UI); |
| 191 return ios::BookmarkModelFactory::GetForBrowserState(browser_state_); | 195 return ios::BookmarkModelFactory::GetForBrowserState(browser_state_); |
| 192 } | 196 } |
| 193 | 197 |
| 194 favicon::FaviconService* IOSChromeSyncClient::GetFaviconService() { | 198 favicon::FaviconService* IOSChromeSyncClient::GetFaviconService() { |
| 195 DCHECK_CURRENTLY_ON(web::WebThread::UI); | 199 DCHECK_CURRENTLY_ON(web::WebThread::UI); |
| 196 return ios::FaviconServiceFactory::GetForBrowserState( | 200 return ios::FaviconServiceFactory::GetForBrowserState( |
| 197 browser_state_, ServiceAccessType::EXPLICIT_ACCESS); | 201 browser_state_, ServiceAccessType::EXPLICIT_ACCESS); |
| 198 } | 202 } |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 IOSChromeProfileSyncServiceFactory::GetForBrowserState(browser_state); | 421 IOSChromeProfileSyncServiceFactory::GetForBrowserState(browser_state); |
| 418 if (profile_sync_service != nullptr) { | 422 if (profile_sync_service != nullptr) { |
| 419 const syncer::DeviceInfoTracker* tracker = | 423 const syncer::DeviceInfoTracker* tracker = |
| 420 profile_sync_service->GetDeviceInfoTracker(); | 424 profile_sync_service->GetDeviceInfoTracker(); |
| 421 if (tracker != nullptr) { | 425 if (tracker != nullptr) { |
| 422 trackers->push_back(tracker); | 426 trackers->push_back(tracker); |
| 423 } | 427 } |
| 424 } | 428 } |
| 425 } | 429 } |
| 426 } | 430 } |
| OLD | NEW |