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

Side by Side Diff: ios/chrome/browser/google/google_logo_service.mm

Issue 2511043004: [ObjC ARC] Converts ios/chrome/browser/google:google_logo to ARC.Automatically generated ARCMigra… (Closed)
Patch Set: Created 4 years, 1 month 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/google/google_logo_service.h" 5 #include "ios/chrome/browser/google/google_logo_service.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
11 #include "base/threading/thread_task_runner_handle.h" 11 #include "base/threading/thread_task_runner_handle.h"
12 #include "components/search_engines/template_url_service.h" 12 #include "components/search_engines/template_url_service.h"
13 #include "components/search_provider_logos/google_logo_api.h" 13 #include "components/search_provider_logos/google_logo_api.h"
14 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 14 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
15 #include "ios/chrome/browser/search_engines/template_url_service_factory.h" 15 #include "ios/chrome/browser/search_engines/template_url_service_factory.h"
16 #include "ios/chrome/browser/search_engines/ui_thread_search_terms_data.h" 16 #include "ios/chrome/browser/search_engines/ui_thread_search_terms_data.h"
17 #include "ios/web/public/web_thread.h" 17 #include "ios/web/public/web_thread.h"
18 #include "net/url_request/url_request_context_getter.h" 18 #include "net/url_request/url_request_context_getter.h"
19 #include "ui/gfx/image/image.h" 19 #include "ui/gfx/image/image.h"
20 20
21 #if !defined(__has_feature) || !__has_feature(objc_arc)
22 #error "This file requires ARC support."
23 #endif
24
21 using search_provider_logos::Logo; 25 using search_provider_logos::Logo;
22 using search_provider_logos::LogoDelegate; 26 using search_provider_logos::LogoDelegate;
23 using search_provider_logos::LogoTracker; 27 using search_provider_logos::LogoTracker;
24 28
25 namespace { 29 namespace {
26 30
27 const char kGoogleDoodleURLPath[] = "async/newtab_mobile"; 31 const char kGoogleDoodleURLPath[] = "async/newtab_mobile";
28 static NSArray* const kDoodleCacheDirectory = @[ @"Chromium", @"Doodle" ]; 32 static NSArray* const kDoodleCacheDirectory = @[ @"Chromium", @"Doodle" ];
29 33
30 // Cache directory for doodle. 34 // Cache directory for doodle.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 cached_metadata_ = empty_metadata; 126 cached_metadata_ = empty_metadata;
123 } 127 }
124 } 128 }
125 129
126 search_provider_logos::Logo GoogleLogoService::GetCachedLogo() { 130 search_provider_logos::Logo GoogleLogoService::GetCachedLogo() {
127 search_provider_logos::Logo logo; 131 search_provider_logos::Logo logo;
128 logo.image = cached_image_; 132 logo.image = cached_image_;
129 logo.metadata = cached_metadata_; 133 logo.metadata = cached_metadata_;
130 return logo; 134 return logo;
131 } 135 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/google/BUILD.gn ('k') | ios/chrome/browser/google/google_logo_service_factory.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698