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

Unified Diff: chrome/browser/web_applications/update_shortcut_worker_win.cc

Issue 335233003: Convert ui::ScaleFactor -> float in favicon/history code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/web_applications/update_shortcut_worker_win.cc
diff --git a/chrome/browser/web_applications/update_shortcut_worker_win.cc b/chrome/browser/web_applications/update_shortcut_worker_win.cc
index 5c6f814b836b1f9f568eb8be20691b381ace16ab..a2bb6e9874b7d998a829e792a5f6ba2f846a5019 100644
--- a/chrome/browser/web_applications/update_shortcut_worker_win.cc
+++ b/chrome/browser/web_applications/update_shortcut_worker_win.cc
@@ -102,12 +102,12 @@ void UpdateShortcutWorker::DidDownloadFavicon(
const GURL& image_url,
const std::vector<SkBitmap>& bitmaps,
const std::vector<gfx::Size>& original_sizes) {
- std::vector<ui::ScaleFactor> scale_factors;
- scale_factors.push_back(ui::SCALE_FACTOR_100P);
+ std::vector<float> favicon_scales;
+ favicon_scales.push_back(1.0f);
std::vector<size_t> closest_indices;
SelectFaviconFrameIndices(original_sizes,
- scale_factors,
+ favicon_scales,
requested_size,
&closest_indices,
NULL);

Powered by Google App Engine
This is Rietveld 408576698