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

Unified Diff: chrome/browser/ui/webui/ntp/android/bookmarks_handler.cc

Issue 12209023: Home shortcut should use touch icons when possible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 10dp as per Roma. Created 7 years, 10 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/ntp/android/bookmarks_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/android/bookmarks_handler.cc b/chrome/browser/ui/webui/ntp/android/bookmarks_handler.cc
index ecc2879d2bb9ee5184fc95f4d02c38b9fcbf7a15..c29d4d85f79e3d3cb8b674287baa759d0c934e5e 100644
--- a/chrome/browser/ui/webui/ntp/android/bookmarks_handler.cc
+++ b/chrome/browser/ui/webui/ntp/android/bookmarks_handler.cc
@@ -389,9 +389,10 @@ void BookmarksHandler::HandleCreateHomeScreenBookmarkShortcut(
FaviconService::FaviconForURLParams(
profile,
node->url(),
- history::FAVICON | history::TOUCH_ICON,
- gfx::kFaviconSize),
- ui::GetMaxScaleFactor(),
+ history::TOUCH_PRECOMPOSED_ICON | history::TOUCH_ICON |
+ history::FAVICON,
+ 0), // request the largest icon.
+ ui::SCALE_FACTOR_100P, // density doesn't matter for the largest icon.
base::Bind(&BookmarksHandler::OnShortcutFaviconDataAvailable,
base::Unretained(this),
node),

Powered by Google App Engine
This is Rietveld 408576698