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

Side by Side Diff: chrome/browser/favicon/favicon_handler.cc

Issue 56143002: Make FaviconService() use Porfile as parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test but break the DEPS Created 7 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 (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/browser/favicon/favicon_handler.h" 5 #include "chrome/browser/favicon/favicon_handler.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <vector> 10 #include <vector>
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 GetFaviconService()->GetFavicon( 466 GetFaviconService()->GetFavicon(
467 icon_url, icon_type, preferred_icon_size(), callback, tracker); 467 icon_url, icon_type, preferred_icon_size(), callback, tracker);
468 } 468 }
469 469
470 void FaviconHandler::GetFaviconForURL( 470 void FaviconHandler::GetFaviconForURL(
471 const GURL& page_url, 471 const GURL& page_url,
472 int icon_types, 472 int icon_types,
473 const FaviconService::FaviconResultsCallback& callback, 473 const FaviconService::FaviconResultsCallback& callback,
474 CancelableTaskTracker* tracker) { 474 CancelableTaskTracker* tracker) {
475 GetFaviconService()->GetFaviconForURL( 475 GetFaviconService()->GetFaviconForURL(
476 FaviconService::FaviconForURLParams( 476 FaviconService::FaviconForURLParams(page_url, icon_types,
477 profile_, page_url, icon_types, preferred_icon_size()), 477 preferred_icon_size()),
478 callback, 478 callback,
479 tracker); 479 tracker);
480 } 480 }
481 481
482 void FaviconHandler::SetHistoryFavicons(const GURL& page_url, 482 void FaviconHandler::SetHistoryFavicons(const GURL& page_url,
483 const GURL& icon_url, 483 const GURL& icon_url,
484 chrome::IconType icon_type, 484 chrome::IconType icon_type,
485 const gfx::Image& image) { 485 const gfx::Image& image) {
486 GetFaviconService()->SetFavicons(page_url, icon_url, icon_type, image); 486 GetFaviconService()->SetFavicons(page_url, icon_url, icon_type, image);
487 } 487 }
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 GetMaximalIconSize(icon_type)); 627 GetMaximalIconSize(icon_type));
628 if (download_id) { 628 if (download_id) {
629 // Download ids should be unique. 629 // Download ids should be unique.
630 DCHECK(download_requests_.find(download_id) == download_requests_.end()); 630 DCHECK(download_requests_.find(download_id) == download_requests_.end());
631 download_requests_[download_id] = 631 download_requests_[download_id] =
632 DownloadRequest(url, image_url, icon_type); 632 DownloadRequest(url, image_url, icon_type);
633 } 633 }
634 634
635 return download_id; 635 return download_id;
636 } 636 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model.cc ('k') | chrome/browser/favicon/favicon_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698