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

Unified Diff: chrome/browser/ui/webui/fileicon_source.h

Issue 291733004: Reduce the use of ui::ScaleFactor in webui/favicon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/fileicon_source.h
diff --git a/chrome/browser/ui/webui/fileicon_source.h b/chrome/browser/ui/webui/fileicon_source.h
index 54b15fe72e941db8c6a82b62ded2bdebb525ec90..d021e6edd079737f8d20aedcb7a9ac8e4d72bb98 100644
--- a/chrome/browser/ui/webui/fileicon_source.h
+++ b/chrome/browser/ui/webui/fileicon_source.h
@@ -11,7 +11,6 @@
#include "base/task/cancelable_task_tracker.h"
#include "chrome/browser/icon_manager.h"
#include "content/public/browser/url_data_source.h"
-#include "ui/base/layout.h"
namespace gfx {
class Image;
@@ -40,7 +39,7 @@ class FileIconSource : public content::URLDataSource {
// testing.
virtual void FetchFileIcon(
const base::FilePath& path,
- ui::ScaleFactor scale_factor,
+ float scale_factor,
IconLoader::IconSize icon_size,
const content::URLDataSource::GotDataCallback& callback);
@@ -54,7 +53,7 @@ class FileIconSource : public content::URLDataSource {
content::URLDataSource::GotDataCallback callback;
// The requested scale factor to respond with.
- ui::ScaleFactor scale_factor;
+ float scale_factor;
};
// Called when favicon data is available from the history backend.

Powered by Google App Engine
This is Rietveld 408576698