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

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

Issue 2000063004: MD Settings: fix favicon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « chrome/browser/ui/webui/settings_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/settings_utils.cc
diff --git a/chrome/browser/ui/webui/settings_utils.cc b/chrome/browser/ui/webui/settings_utils.cc
index ae35bf309a1bd6ccdc6dcc2dc3234f8f33859f7a..cc2a4f1c1d88ce5db1dd3243f15fe9a273aaa041 100644
--- a/chrome/browser/ui/webui/settings_utils.cc
+++ b/chrome/browser/ui/webui/settings_utils.cc
@@ -6,6 +6,8 @@
#include "chrome/browser/extensions/extension_tab_util.h"
#include "components/url_formatter/url_fixer.h"
+#include "grit/theme_resources.h"
+#include "ui/base/resource/resource_bundle.h"
#include "url/gurl.h"
namespace settings_utils {
@@ -19,4 +21,9 @@ bool FixupAndValidateStartupPage(const std::string& url_string,
return valid;
}
+base::RefCountedMemory* GetFaviconResourceBytes(ui::ScaleFactor scale_factor) {
+ return ui::ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale(
+ IDR_SETTINGS_FAVICON, scale_factor);
+}
+
} // namespace settings_utils
« no previous file with comments | « chrome/browser/ui/webui/settings_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698