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

Side by Side Diff: ios/chrome/browser/web_data_service_factory.cc

Issue 1667733002: Move chrome_browser_state.{cc,h} to ios/chrome/browser/browser_state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test_support_ios
Patch Set: 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/undo/bookmark_undo_service_factory.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/web_data_service_factory.h" 5 #include "ios/chrome/browser/web_data_service_factory.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/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
11 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 11 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
12 #include "components/keyed_service/core/service_access_type.h" 12 #include "components/keyed_service/core/service_access_type.h"
13 #include "components/keyed_service/ios/browser_state_dependency_manager.h" 13 #include "components/keyed_service/ios/browser_state_dependency_manager.h"
14 #include "components/search_engines/keyword_web_data_service.h" 14 #include "components/search_engines/keyword_web_data_service.h"
15 #include "components/signin/core/browser/webdata/token_web_data.h" 15 #include "components/signin/core/browser/webdata/token_web_data.h"
16 #include "components/webdata_services/web_data_service_wrapper.h" 16 #include "components/webdata_services/web_data_service_wrapper.h"
17 #include "ios/chrome/browser/application_context.h" 17 #include "ios/chrome/browser/application_context.h"
18 #include "ios/chrome/browser/browser_state/browser_state_otr_helper.h" 18 #include "ios/chrome/browser/browser_state/browser_state_otr_helper.h"
19 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
19 #include "ios/chrome/browser/sync/glue/sync_start_util.h" 20 #include "ios/chrome/browser/sync/glue/sync_start_util.h"
20 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state. h"
21 #include "ios/web/public/web_thread.h" 21 #include "ios/web/public/web_thread.h"
22 22
23 namespace ios { 23 namespace ios {
24 namespace { 24 namespace {
25 25
26 void DoNothingOnErrorCallback(WebDataServiceWrapper::ErrorType error_type, 26 void DoNothingOnErrorCallback(WebDataServiceWrapper::ErrorType error_type,
27 sql::InitStatus status) { 27 sql::InitStatus status) {
28 } 28 }
29 29
30 } // namespace 30 } // namespace
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 web::BrowserState* WebDataServiceFactory::GetBrowserStateToUse( 107 web::BrowserState* WebDataServiceFactory::GetBrowserStateToUse(
108 web::BrowserState* context) const { 108 web::BrowserState* context) const {
109 return GetBrowserStateRedirectedInIncognito(context); 109 return GetBrowserStateRedirectedInIncognito(context);
110 } 110 }
111 111
112 bool WebDataServiceFactory::ServiceIsNULLWhileTesting() const { 112 bool WebDataServiceFactory::ServiceIsNULLWhileTesting() const {
113 return true; 113 return true;
114 } 114 }
115 115
116 } // namespace ios 116 } // namespace ios
OLDNEW
« no previous file with comments | « ios/chrome/browser/undo/bookmark_undo_service_factory.cc ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698