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

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

Issue 2642813002: [ObjC ARC] Converts ios/chrome/browser/suggestions:suggestions to ARC. (Closed)
Patch Set: revert translate_controller 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
« no previous file with comments | « ios/chrome/browser/suggestions/ios_image_decoder_impl.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 11 matching lines...) Expand all
22 #include "components/suggestions/suggestions_service_impl.h" 22 #include "components/suggestions/suggestions_service_impl.h"
23 #include "components/suggestions/suggestions_store.h" 23 #include "components/suggestions/suggestions_store.h"
24 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 24 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
25 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" 25 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h"
26 #include "ios/chrome/browser/signin/signin_manager_factory.h" 26 #include "ios/chrome/browser/signin/signin_manager_factory.h"
27 #include "ios/chrome/browser/suggestions/image_fetcher_impl.h" 27 #include "ios/chrome/browser/suggestions/image_fetcher_impl.h"
28 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" 28 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h"
29 #include "ios/web/public/browser_state.h" 29 #include "ios/web/public/browser_state.h"
30 #include "ios/web/public/web_thread.h" 30 #include "ios/web/public/web_thread.h"
31 31
32 #if !defined(__has_feature) || !__has_feature(objc_arc)
33 #error "This file requires ARC support."
34 #endif
35
32 namespace suggestions { 36 namespace suggestions {
33 namespace { 37 namespace {
34 const base::FilePath::CharType kThumbnailDirectory[] = 38 const base::FilePath::CharType kThumbnailDirectory[] =
35 FILE_PATH_LITERAL("Thumbnail"); 39 FILE_PATH_LITERAL("Thumbnail");
36 } 40 }
37 41
38 // static 42 // static
39 SuggestionsServiceFactory* SuggestionsServiceFactory::GetInstance() { 43 SuggestionsServiceFactory* SuggestionsServiceFactory::GetInstance() {
40 return base::Singleton<SuggestionsServiceFactory>::get(); 44 return base::Singleton<SuggestionsServiceFactory>::get();
41 } 45 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 browser_state->GetRequestContext(), std::move(suggestions_store), 99 browser_state->GetRequestContext(), std::move(suggestions_store),
96 std::move(thumbnail_manager), std::move(blacklist_store)); 100 std::move(thumbnail_manager), std::move(blacklist_store));
97 } 101 }
98 102
99 void SuggestionsServiceFactory::RegisterBrowserStatePrefs( 103 void SuggestionsServiceFactory::RegisterBrowserStatePrefs(
100 user_prefs::PrefRegistrySyncable* registry) { 104 user_prefs::PrefRegistrySyncable* registry) {
101 SuggestionsServiceImpl::RegisterProfilePrefs(registry); 105 SuggestionsServiceImpl::RegisterProfilePrefs(registry);
102 } 106 }
103 107
104 } // namespace suggestions 108 } // namespace suggestions
OLDNEW
« no previous file with comments | « ios/chrome/browser/suggestions/ios_image_decoder_impl.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698