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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 2873383002: Remove unused instant support for chrome://large-icon and chrome://fallback-icon (Closed)
Patch Set: 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/search/instant_service.cc ('k') | chrome/renderer/searchbox/searchbox.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/renderer/chrome_content_renderer_client.h" 5 #include "chrome/renderer/chrome_content_renderer_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 return false; 1208 return false;
1209 1209
1210 SearchBox* search_box = 1210 SearchBox* search_box =
1211 SearchBox::Get(content::RenderFrame::FromWebFrame(frame->LocalRoot())); 1211 SearchBox::Get(content::RenderFrame::FromWebFrame(frame->LocalRoot()));
1212 if (search_box) { 1212 if (search_box) {
1213 // Note: this GURL copy could be avoided if host() were added to WebURL. 1213 // Note: this GURL copy could be avoided if host() were added to WebURL.
1214 GURL gurl(url); 1214 GURL gurl(url);
1215 SearchBox::ImageSourceType type = SearchBox::NONE; 1215 SearchBox::ImageSourceType type = SearchBox::NONE;
1216 if (gurl.host_piece() == chrome::kChromeUIFaviconHost) 1216 if (gurl.host_piece() == chrome::kChromeUIFaviconHost)
1217 type = SearchBox::FAVICON; 1217 type = SearchBox::FAVICON;
1218 else if (gurl.host_piece() == chrome::kChromeUILargeIconHost)
1219 type = SearchBox::LARGE_ICON;
1220 else if (gurl.host_piece() == chrome::kChromeUIFallbackIconHost)
1221 type = SearchBox::FALLBACK_ICON;
1222 else if (gurl.host_piece() == chrome::kChromeUIThumbnailHost) 1218 else if (gurl.host_piece() == chrome::kChromeUIThumbnailHost)
1223 type = SearchBox::THUMB; 1219 type = SearchBox::THUMB;
1224 1220
1225 if (type != SearchBox::NONE) 1221 if (type != SearchBox::NONE)
1226 return search_box->GenerateImageURLFromTransientURL(url, type, new_url); 1222 return search_box->GenerateImageURLFromTransientURL(url, type, new_url);
1227 } 1223 }
1228 1224
1229 return false; 1225 return false;
1230 } 1226 }
1231 1227
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1575 1571
1576 RecordYouTubeRewriteUMA(result); 1572 RecordYouTubeRewriteUMA(result);
1577 return corrected_url.ReplaceComponents(r); 1573 return corrected_url.ReplaceComponents(r);
1578 } 1574 }
1579 1575
1580 std::unique_ptr<base::TaskScheduler::InitParams> 1576 std::unique_ptr<base::TaskScheduler::InitParams>
1581 ChromeContentRendererClient::GetTaskSchedulerInitParams() { 1577 ChromeContentRendererClient::GetTaskSchedulerInitParams() {
1582 return task_scheduler_util:: 1578 return task_scheduler_util::
1583 GetRendererTaskSchedulerInitParamsFromCommandLine(); 1579 GetRendererTaskSchedulerInitParamsFromCommandLine();
1584 } 1580 }
OLDNEW
« no previous file with comments | « chrome/browser/search/instant_service.cc ('k') | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698