summaryrefslogtreecommitdiffstats
path: root/extensions/browser/app_window
diff options
context:
space:
mode:
authorpkotwicz <pkotwicz@chromium.org>2015-03-15 17:29:14 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-16 00:30:07 +0000
commitfd7735542c3d296871959cb425093c8a6f0d29d3 (patch)
treec6d7898cc9a2024fb882572c107cf7283bf3a1ba /extensions/browser/app_window
parent00150c1b3233c1d634deec284906653a4b7a2a92 (diff)
downloadchromium_src-fd7735542c3d296871959cb425093c8a6f0d29d3.zip
chromium_src-fd7735542c3d296871959cb425093c8a6f0d29d3.tar.gz
chromium_src-fd7735542c3d296871959cb425093c8a6f0d29d3.tar.bz2
Reload favicon from HTTP cache on Ctrl+Refresh
This CL adds a new parameter to WebContents::DownloadImage() to indicate whether the request should bypass the cache. BUG=455383 TEST=FaviconTabHelperTest.ReloadIgnoringCache Review URL: https://codereview.chromium.org/934693002 Cr-Commit-Position: refs/heads/master@{#320691}
Diffstat (limited to 'extensions/browser/app_window')
-rw-r--r--extensions/browser/app_window/app_window.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/extensions/browser/app_window/app_window.cc b/extensions/browser/app_window/app_window.cc
index 7d0e7c3..0689b13 100644
--- a/extensions/browser/app_window/app_window.cc
+++ b/extensions/browser/app_window/app_window.cc
@@ -525,8 +525,9 @@ void AppWindow::SetAppIconUrl(const GURL& url) {
app_icon_url_ = url;
web_contents()->DownloadImage(
url,
- true, // is a favicon
- 0, // no maximum size
+ true, // is a favicon
+ 0, // no maximum size
+ false, // normal cache policy
base::Bind(&AppWindow::DidDownloadFavicon,
image_loader_ptr_factory_.GetWeakPtr()));
}
@@ -541,8 +542,9 @@ void AppWindow::SetBadgeIconUrl(const GURL& url) {
badge_icon_url_ = url;
web_contents()->DownloadImage(
url,
- true, // is a favicon
- 0, // no maximum size
+ true, // is a favicon
+ 0, // no maximum size
+ false, // normal cache policy
base::Bind(&AppWindow::DidDownloadFavicon,
image_loader_ptr_factory_.GetWeakPtr()));
}