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

Unified Diff: chrome/browser/favicon/favicon_service.cc

Issue 8469018: Provide assumed favicon for intents if service provider page was never visited. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't use COUNT(*) for existence test Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/favicon/favicon_service.cc
diff --git a/chrome/browser/favicon/favicon_service.cc b/chrome/browser/favicon/favicon_service.cc
index 5efd0810db81cb1a2a8b3cb33aba16438dcf5cd3..52faaa3f6a03734469a32bf12c645dcb950e64f7 100644
--- a/chrome/browser/favicon/favicon_service.cc
+++ b/chrome/browser/favicon/favicon_service.cc
@@ -72,6 +72,13 @@ void FaviconService::SetFaviconOutOfDateForPage(const GURL& page_url) {
hs->SetFaviconOutOfDateForPage(page_url);
}
+void FaviconService::CloneFavicon(const GURL& old_page_url,
+ const GURL& new_page_url) {
+ HistoryService* hs = profile_->GetHistoryService(Profile::EXPLICIT_ACCESS);
+ if (hs)
+ hs->CloneFavicon(old_page_url, new_page_url);
+}
+
void FaviconService::SetImportedFavicons(
const std::vector<history::ImportedFaviconUsage>& favicon_usage) {
HistoryService* hs = profile_->GetHistoryService(Profile::EXPLICIT_ACCESS);

Powered by Google App Engine
This is Rietveld 408576698