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

Side by Side Diff: chrome/browser/search/instant_service.cc

Issue 2883053003: Delete unused chrome://fallback-icon/ handling (Closed)
Patch Set: Merge branch 'master' into searchbox3 Created 3 years, 7 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 | « chrome/browser/favicon/fallback_icon_service_factory.cc ('k') | chrome/browser/ui/BUILD.gn » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/search/instant_service.h" 5 #include "chrome/browser/search/instant_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
(...skipping 11 matching lines...) Expand all
22 #include "chrome/browser/search/suggestions/suggestions_service_factory.h" 22 #include "chrome/browser/search/suggestions/suggestions_service_factory.h"
23 #include "chrome/browser/search/thumbnail_source.h" 23 #include "chrome/browser/search/thumbnail_source.h"
24 #include "chrome/browser/search_engines/template_url_service_factory.h" 24 #include "chrome/browser/search_engines/template_url_service_factory.h"
25 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h" 25 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h"
26 #include "chrome/browser/thumbnails/thumbnail_list_source.h" 26 #include "chrome/browser/thumbnails/thumbnail_list_source.h"
27 #include "chrome/browser/ui/search/instant_search_prerenderer.h" 27 #include "chrome/browser/ui/search/instant_search_prerenderer.h"
28 #include "chrome/browser/ui/webui/favicon_source.h" 28 #include "chrome/browser/ui/webui/favicon_source.h"
29 #include "chrome/browser/ui/webui/theme_source.h" 29 #include "chrome/browser/ui/webui/theme_source.h"
30 #include "chrome/common/render_messages.h" 30 #include "chrome/common/render_messages.h"
31 #include "chrome/grit/theme_resources.h" 31 #include "chrome/grit/theme_resources.h"
32 #include "components/favicon/core/fallback_icon_service.h"
33 #include "components/history/core/browser/top_sites.h" 32 #include "components/history/core/browser/top_sites.h"
34 #include "components/image_fetcher/core/image_fetcher_impl.h" 33 #include "components/image_fetcher/core/image_fetcher_impl.h"
35 #include "components/keyed_service/core/service_access_type.h" 34 #include "components/keyed_service/core/service_access_type.h"
36 #include "components/ntp_tiles/icon_cacher.h" 35 #include "components/ntp_tiles/icon_cacher.h"
37 #include "components/search/search.h" 36 #include "components/search/search.h"
38 #include "content/public/browser/browser_thread.h" 37 #include "content/public/browser/browser_thread.h"
39 #include "content/public/browser/notification_service.h" 38 #include "content/public/browser/notification_service.h"
40 #include "content/public/browser/notification_types.h" 39 #include "content/public/browser/notification_types.h"
41 #include "content/public/browser/render_process_host.h" 40 #include "content/public/browser/render_process_host.h"
42 #include "content/public/browser/url_data_source.h" 41 #include "content/public/browser/url_data_source.h"
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 void InstantService::ResetInstantSearchPrerendererIfNecessary() { 460 void InstantService::ResetInstantSearchPrerendererIfNecessary() {
462 if (!search::IsInstantExtendedAPIEnabled()) 461 if (!search::IsInstantExtendedAPIEnabled())
463 return; 462 return;
464 463
465 GURL url(search::GetSearchResultPrefetchBaseURL(profile_)); 464 GURL url(search::GetSearchResultPrefetchBaseURL(profile_));
466 if (!instant_prerenderer_ || instant_prerenderer_->prerender_url() != url) { 465 if (!instant_prerenderer_ || instant_prerenderer_->prerender_url() != url) {
467 instant_prerenderer_.reset( 466 instant_prerenderer_.reset(
468 url.is_valid() ? new InstantSearchPrerenderer(profile_, url) : nullptr); 467 url.is_valid() ? new InstantSearchPrerenderer(profile_, url) : nullptr);
469 } 468 }
470 } 469 }
OLDNEW
« no previous file with comments | « chrome/browser/favicon/fallback_icon_service_factory.cc ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698