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

Unified Diff: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc

Issue 330603004: Rename FaviconBitmapXxx to FaviconRawBitmapXxx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android Created 6 years, 6 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/webui/chrome_web_ui_controller_factory.cc
diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
index abda424018fd4f526340f709fca6f5cb1975096f..d9bd629f3da004599d961095cb0c743d2056b006 100644
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
@@ -526,7 +526,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
void RunFaviconCallbackAsync(
const favicon_base::FaviconResultsCallback& callback,
- const std::vector<favicon_base::FaviconBitmapResult>* results) {
+ const std::vector<favicon_base::FaviconRawBitmapResult>* results) {
base::MessageLoopProxy::current()->PostTask(
FROM_HERE,
base::Bind(&FaviconService::FaviconResultsCallbackRunner,
@@ -586,19 +586,19 @@ void ChromeWebUIControllerFactory::GetFaviconForURL(
ExtensionWebUI::GetFaviconForURL(profile, url, callback);
#else
RunFaviconCallbackAsync(
- callback, new std::vector<favicon_base::FaviconBitmapResult>());
+ callback, new std::vector<favicon_base::FaviconRawBitmapResult>());
#endif
return;
}
- std::vector<favicon_base::FaviconBitmapResult>* favicon_bitmap_results =
- new std::vector<favicon_base::FaviconBitmapResult>();
+ std::vector<favicon_base::FaviconRawBitmapResult>* favicon_bitmap_results =
+ new std::vector<favicon_base::FaviconRawBitmapResult>();
for (size_t i = 0; i < scale_factors.size(); ++i) {
scoped_refptr<base::RefCountedMemory> bitmap(GetFaviconResourceBytes(
url, scale_factors[i]));
if (bitmap.get() && bitmap->size()) {
- favicon_base::FaviconBitmapResult bitmap_result;
+ favicon_base::FaviconRawBitmapResult bitmap_result;
bitmap_result.bitmap_data = bitmap;
// Leave |bitmap_result|'s icon URL as the default of GURL().
bitmap_result.icon_type = favicon_base::FAVICON;
« no previous file with comments | « chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc ('k') | chrome/browser/ui/webui/extensions/extension_icon_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698