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

Unified Diff: chrome/browser/themes/theme_service.cc

Issue 2726793004: [Resources] Use the new product logo in several places
Patch Set: Remove top margin on newtab logo Created 3 years, 9 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/themes/theme_service.cc
diff --git a/chrome/browser/themes/theme_service.cc b/chrome/browser/themes/theme_service.cc
index 77549f419546b8feaac74f794bdafe4105f94d06..63735ff8e8aba56d216c787dad797f8ed7465ef9 100644
--- a/chrome/browser/themes/theme_service.cc
+++ b/chrome/browser/themes/theme_service.cc
@@ -744,11 +744,6 @@ int ThemeService::GetDisplayProperty(int id) const {
base::RefCountedMemory* ThemeService::GetRawData(
int id,
ui::ScaleFactor scale_factor) const {
- // Check to see whether we should substitute some images.
- int ntp_alternate = GetDisplayProperty(ThemeProperties::NTP_LOGO_ALTERNATE);
- if (id == IDR_PRODUCT_LOGO && ntp_alternate != 0)
Evan Stade 2017/03/08 17:56:30 are you sure this code is dead? It seems to be hit
Mathieu 2017/03/08 18:20:22 I am certain. I instrumented the codepaths in this
- id = IDR_PRODUCT_LOGO_WHITE;
-
base::RefCountedMemory* data = nullptr;
if (theme_supplier_)
data = theme_supplier_->GetRawData(id, scale_factor);
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.html ('k') | chrome/browser/ui/views/payments/payment_sheet_view_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698