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

Side by Side Diff: ios/chrome/browser/sync/glue/sync_start_util.cc

Issue 1664193002: Upstream ChromeBrowserStateManagerImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@upstream-chrome-browser-state-impl
Patch Set: Address comments Created 4 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 | « ios/chrome/browser/signin/signin_client_impl.cc ('k') | ios/chrome/ios_chrome.gyp » ('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 "ios/chrome/browser/sync/glue/sync_start_util.h" 5 #include "ios/chrome/browser/sync/glue/sync_start_util.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "components/browser_sync/browser/profile_sync_service.h" 10 #include "components/browser_sync/browser/profile_sync_service.h"
11 #include "components/sync_driver/sync_service.h" 11 #include "components/sync_driver/sync_service.h"
12 #include "ios/chrome/browser/application_context.h" 12 #include "ios/chrome/browser/application_context.h"
13 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 13 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
14 #include "ios/chrome/browser/browser_state/chrome_browser_state_manager.h"
14 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" 15 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h"
15 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state_ manager.h"
16 #include "ios/web/public/web_thread.h" 16 #include "ios/web/public/web_thread.h"
17 17
18 namespace ios { 18 namespace ios {
19 namespace { 19 namespace {
20 20
21 void StartSyncOnUIThread(const base::FilePath& browser_state_path, 21 void StartSyncOnUIThread(const base::FilePath& browser_state_path,
22 syncer::ModelType type) { 22 syncer::ModelType type) {
23 ios::ChromeBrowserStateManager* browser_state_manager = 23 ios::ChromeBrowserStateManager* browser_state_manager =
24 GetApplicationContext()->GetChromeBrowserStateManager(); 24 GetApplicationContext()->GetChromeBrowserStateManager();
25 if (!browser_state_manager) { 25 if (!browser_state_manager) {
(...skipping 29 matching lines...) Expand all
55 55
56 namespace sync_start_util { 56 namespace sync_start_util {
57 57
58 syncer::SyncableService::StartSyncFlare GetFlareForSyncableService( 58 syncer::SyncableService::StartSyncFlare GetFlareForSyncableService(
59 const base::FilePath& browser_state_path) { 59 const base::FilePath& browser_state_path) {
60 return base::Bind(&StartSyncProxy, browser_state_path); 60 return base::Bind(&StartSyncProxy, browser_state_path);
61 } 61 }
62 62
63 } // namespace sync_start_util 63 } // namespace sync_start_util
64 } // namespace ios 64 } // namespace ios
OLDNEW
« no previous file with comments | « ios/chrome/browser/signin/signin_client_impl.cc ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698