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

Issue 2726793004: [Resources] Use the new product logo in several places

Created:
3 years, 9 months ago by Mathieu
Modified:
3 years, 9 months ago
Reviewers:
Evan Stade
CC:
chromium-reviews, oshima+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Resources] Use the new product logo in several places * Move the newer-style product_logo_name_22.png to components/resources * Change the resource ID to better reflect file name * Remove outdated product_logo.png in components/resources * Remove product_logo_name_white.png and supporting codepath, because the code path was dead and unneeded(even with a dark theme). * Remove product_logo_name_48.png because it's unused. As a result, the size of the Chrome logo in chrome://apps, chrome://version and the old ChromeOS first run experience will change from 32px to 22px height. See the bug for more information. BUG=697607 TEST=manual CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Patch Set 1 #

Patch Set 2 : 200 percent too #

Total comments: 4

Patch Set 3 : Move product logo with name to components #

Patch Set 4 : rebase #

Patch Set 5 : Remove top margin on newtab logo #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -19 lines) Patch
D chrome/app/theme/default_100_percent/chromium/product_logo_name_22.png View 1 2 Binary file 0 comments Download
D chrome/app/theme/default_100_percent/chromium/product_logo_name_48.png View 1 2 Binary file 0 comments Download
D chrome/app/theme/default_100_percent/chromium/product_logo_white.png View 1 2 Binary file 0 comments Download
D chrome/app/theme/default_200_percent/chromium/product_logo_name_22.png View 1 2 Binary file 0 comments Download
D chrome/app/theme/default_200_percent/chromium/product_logo_name_48.png View 1 2 Binary file 0 comments Download
D chrome/app/theme/default_200_percent/chromium/product_logo_white.png View 1 2 Binary file 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 2 3 4 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_container.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_user_manager/shared_styles.html View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.css View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/resources/ntp4/new_tab.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/themes/theme_service.cc View 1 2 1 chunk +0 lines, -5 lines 2 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D components/resources/default_100_percent/chromium/product_logo.png View Binary file 0 comments Download
A + components/resources/default_100_percent/chromium/product_logo_name_22.png View 1 2 Binary file 0 comments Download
D components/resources/default_200_percent/chromium/product_logo.png View 1 Binary file 0 comments Download
A + components/resources/default_200_percent/chromium/product_logo_name_22.png View 1 2 Binary file 0 comments Download
M components/resources/version_ui_scaled_resources.grdp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M components/version_ui/resources/about_version.html View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
Mathieu
Hi: Greg: theme_resources Evan: overall I've sent the internal changes removing default_{100,200}_percent/google_chrome/product_logo.png to Evan Thanks
3 years, 9 months ago (2017-03-01 21:56:25 UTC) #8
Mathieu
On 2017/03/01 21:56:25, Mathieu Perreault wrote: > Hi: > > Greg: theme_resources > Evan: overall ...
3 years, 9 months ago (2017-03-01 22:03:03 UTC) #9
Evan Stade
https://codereview.chromium.org/2726793004/diff/20001/chrome/app/theme/theme_resources.grd File chrome/app/theme/theme_resources.grd (right): https://codereview.chromium.org/2726793004/diff/20001/chrome/app/theme/theme_resources.grd#newcode352 chrome/app/theme/theme_resources.grd:352: <structure type="chrome_scaled_image" name="IDR_PRODUCT_LOGO" file="chromium/product_logo_name_22.png" /> this doesn't seem like ...
3 years, 9 months ago (2017-03-01 22:14:06 UTC) #12
Mathieu
Hi Evan, So it had to stay in components (iOS). I found several other issues ...
3 years, 9 months ago (2017-03-02 14:36:08 UTC) #16
Mathieu
On 2017/03/02 14:36:08, Mathieu Perreault wrote: > Hi Evan, > > So it had to ...
3 years, 9 months ago (2017-03-02 14:39:56 UTC) #17
Mathieu
On 2017/03/02 14:39:56, Mathieu Perreault wrote: > On 2017/03/02 14:36:08, Mathieu Perreault wrote: > > ...
3 years, 9 months ago (2017-03-08 14:07:18 UTC) #18
Evan Stade
can you update the CL description to reflect the fact you're changing the size of ...
3 years, 9 months ago (2017-03-08 17:56:30 UTC) #19
Mathieu
Thanks, updated the description. https://codereview.chromium.org/2726793004/diff/100001/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (left): https://codereview.chromium.org/2726793004/diff/100001/chrome/browser/themes/theme_service.cc#oldcode749 chrome/browser/themes/theme_service.cc:749: if (id == IDR_PRODUCT_LOGO && ...
3 years, 9 months ago (2017-03-08 18:20:22 UTC) #21
Evan Stade
3 years, 9 months ago (2017-03-09 03:10:46 UTC) #22
On 2017/03/08 18:20:22, Mathieu Perreault wrote:
> Thanks, updated the description.
> 
>
https://codereview.chromium.org/2726793004/diff/100001/chrome/browser/themes/...
> File chrome/browser/themes/theme_service.cc (left):
> 
>
https://codereview.chromium.org/2726793004/diff/100001/chrome/browser/themes/...
> chrome/browser/themes/theme_service.cc:749: if (id == IDR_PRODUCT_LOGO &&
> ntp_alternate != 0)
> On 2017/03/08 17:56:30, Evan Stade wrote:
> > are you sure this code is dead? It seems to be hit when I open the app page
> with
> > a custom theme.
> > 
> > If this code is dead, we also don't need NTP_LOGO_ALTERNATE any more do we?
> > 
> 
> I am certain. I instrumented the codepaths in this file and theme_source.cc
and
> the image fetch goes through ThemeSource::SendThemeBitmap (which just gets it
> from the resource bundle). 

When I add logging to the conditional you deleted, I find that it is hit for
certain themes.

> 
> NTP_LOGO_ALTERNATE as a property is still used by the current NTP [1].
> 
> [1]
>
https://cs.chromium.org/chromium/src/chrome/browser/search/instant_service.cc...

I don't see where the chrome logo appears in the ntp.

Powered by Google App Engine
This is Rietveld 408576698