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

Side by Side Diff: ios/chrome/browser/suggestions/suggestions_service_factory.mm

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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/suggestions/suggestions_service_factory.h" 5 #include "ios/chrome/browser/suggestions/suggestions_service_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
11 #include "base/sequenced_task_runner.h" 11 #include "base/sequenced_task_runner.h"
12 #include "base/threading/sequenced_worker_pool.h" 12 #include "base/threading/sequenced_worker_pool.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/leveldb_proto/proto_database_impl.h" 14 #include "components/leveldb_proto/proto_database_impl.h"
15 #include "components/signin/core/browser/profile_oauth2_token_service.h" 15 #include "components/signin/core/browser/profile_oauth2_token_service.h"
16 #include "components/signin/core/browser/signin_manager.h" 16 #include "components/signin/core/browser/signin_manager.h"
17 #include "components/suggestions/blacklist_store.h" 17 #include "components/suggestions/blacklist_store.h"
18 #include "components/suggestions/image_fetcher.h" 18 #include "components/suggestions/image_fetcher.h"
19 #include "components/suggestions/image_manager.h" 19 #include "components/suggestions/image_manager.h"
20 #include "components/suggestions/suggestions_service.h" 20 #include "components/suggestions/suggestions_service.h"
21 #include "components/suggestions/suggestions_store.h" 21 #include "components/suggestions/suggestions_store.h"
22 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
22 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" 23 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h"
23 #include "ios/chrome/browser/signin/signin_manager_factory.h" 24 #include "ios/chrome/browser/signin/signin_manager_factory.h"
24 #include "ios/chrome/browser/suggestions/image_fetcher_impl.h" 25 #include "ios/chrome/browser/suggestions/image_fetcher_impl.h"
25 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state. h"
26 #include "ios/web/public/browser_state.h" 26 #include "ios/web/public/browser_state.h"
27 #include "ios/web/public/web_thread.h" 27 #include "ios/web/public/web_thread.h"
28 28
29 namespace suggestions { 29 namespace suggestions {
30 namespace { 30 namespace {
31 const base::FilePath::CharType kThumbnailDirectory[] = 31 const base::FilePath::CharType kThumbnailDirectory[] =
32 FILE_PATH_LITERAL("Thumbnail"); 32 FILE_PATH_LITERAL("Thumbnail");
33 } 33 }
34 34
35 // static 35 // static
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 std::move(suggestions_store), std::move(thumbnail_manager), 87 std::move(suggestions_store), std::move(thumbnail_manager),
88 std::move(blacklist_store))); 88 std::move(blacklist_store)));
89 } 89 }
90 90
91 void SuggestionsServiceFactory::RegisterBrowserStatePrefs( 91 void SuggestionsServiceFactory::RegisterBrowserStatePrefs(
92 user_prefs::PrefRegistrySyncable* registry) { 92 user_prefs::PrefRegistrySyncable* registry) {
93 SuggestionsService::RegisterProfilePrefs(registry); 93 SuggestionsService::RegisterProfilePrefs(registry);
94 } 94 }
95 95
96 } // namespace suggestions 96 } // namespace suggestions
OLDNEW
« no previous file with comments | « ios/chrome/browser/ssl/ios_ssl_blocking_page.cc ('k') | ios/chrome/browser/sync/fake_sync_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698