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

Unified Diff: chrome/browser/ui/views/create_application_shortcut_view.cc

Issue 11011002: Switch FaviconTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/create_application_shortcut_view.cc
diff --git a/chrome/browser/ui/views/create_application_shortcut_view.cc b/chrome/browser/ui/views/create_application_shortcut_view.cc
index 9a73eb0d89f611fef4d3609e9914ac76f85e1903..4fe3cb5519ed1472e2651489188870dcb5f034d0 100644
--- a/chrome/browser/ui/views/create_application_shortcut_view.cc
+++ b/chrome/browser/ui/views/create_application_shortcut_view.cc
@@ -463,13 +463,13 @@ void CreateUrlApplicationShortcutView::FetchIcon() {
pending_download_ = new IconDownloadCallbackFunctor(this);
DCHECK(pending_download_);
- tab_contents_->favicon_tab_helper()->DownloadImage(
- unprocessed_icons_.back().url,
- std::max(unprocessed_icons_.back().width,
- unprocessed_icons_.back().height),
- history::FAVICON,
- base::Bind(&IconDownloadCallbackFunctor::Run,
- base::Unretained(pending_download_)));
+ FaviconTabHelper::FromWebContents(tab_contents_->web_contents())->
+ DownloadImage(unprocessed_icons_.back().url,
+ std::max(unprocessed_icons_.back().width,
+ unprocessed_icons_.back().height),
+ history::FAVICON,
+ base::Bind(&IconDownloadCallbackFunctor::Run,
+ base::Unretained(pending_download_)));
unprocessed_icons_.pop_back();
}
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents.cc ('k') | chrome/browser/ui/views/extensions/shell_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698