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

Side by Side Diff: chrome/browser/android/logo_service.cc

Issue 316203003: Componentize GoogleURLTracker(InfoBarDelegate,MapEntry,NavHelper) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/android/tab_android.cc » ('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 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 "chrome/browser/android/logo_service.h" 5 #include "chrome/browser/android/logo_service.h"
6 6
7 #include "base/memory/weak_ptr.h" 7 #include "base/memory/weak_ptr.h"
8 #include "chrome/browser/google/google_profile_helper.h" 8 #include "chrome/browser/google/google_profile_helper.h"
9 #include "chrome/browser/google/google_url_tracker.h"
10 #include "chrome/browser/google/google_util.h" 9 #include "chrome/browser/google/google_util.h"
11 #include "chrome/browser/image_decoder.h" 10 #include "chrome/browser/image_decoder.h"
12 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/search_engines/template_url_service.h" 12 #include "chrome/browser/search_engines/template_url_service.h"
14 #include "chrome/browser/search_engines/template_url_service_factory.h" 13 #include "chrome/browser/search_engines/template_url_service_factory.h"
14 #include "components/google/core/browser/google_url_tracker.h"
15 #include "components/keyed_service/content/browser_context_dependency_manager.h" 15 #include "components/keyed_service/content/browser_context_dependency_manager.h"
16 #include "components/search_provider_logos/google_logo_api.h" 16 #include "components/search_provider_logos/google_logo_api.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "net/url_request/url_request_context_getter.h" 18 #include "net/url_request/url_request_context_getter.h"
19 19
20 using content::BrowserThread; 20 using content::BrowserThread;
21 using search_provider_logos::Logo; 21 using search_provider_logos::Logo;
22 using search_provider_logos::LogoDelegate; 22 using search_provider_logos::LogoDelegate;
23 using search_provider_logos::LogoTracker; 23 using search_provider_logos::LogoTracker;
24 24
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 } 167 }
168 168
169 LogoServiceFactory::~LogoServiceFactory() {} 169 LogoServiceFactory::~LogoServiceFactory() {}
170 170
171 KeyedService* LogoServiceFactory::BuildServiceInstanceFor( 171 KeyedService* LogoServiceFactory::BuildServiceInstanceFor(
172 content::BrowserContext* context) const { 172 content::BrowserContext* context) const {
173 Profile* profile = static_cast<Profile*>(context); 173 Profile* profile = static_cast<Profile*>(context);
174 DCHECK(!profile->IsOffTheRecord()); 174 DCHECK(!profile->IsOffTheRecord());
175 return new LogoService(profile); 175 return new LogoService(profile);
176 } 176 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/android/tab_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698