webui: Pass the desired scale factor to individual webui components
ChromeWebUIControllerFactory still always requests the 100P favicon,
so no functionality change.
BUG=145228
Review URL: https://chromiumcodereview.appspot.com/10917081
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154958 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/ui/webui/flags_ui.h b/chrome/browser/ui/webui/flags_ui.h
index 23089476..455bdab 100644
--- a/chrome/browser/ui/webui/flags_ui.h
+++ b/chrome/browser/ui/webui/flags_ui.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_
#include "content/public/browser/web_ui_controller.h"
+#include "ui/base/layout.h"
class PrefService;
@@ -17,7 +18,8 @@
public:
explicit FlagsUI(content::WebUI* web_ui);
- static base::RefCountedMemory* GetFaviconResourceBytes();
+ static base::RefCountedMemory* GetFaviconResourceBytes(
+ ui::ScaleFactor scale_factor);
static void RegisterPrefs(PrefService* prefs);
private: