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

Issue 40066: Branding of Chrome.app.... (Closed)

Created:
11 years, 9 months ago by John Grabowski
Modified:
9 years, 6 months ago
Reviewers:
Mark Mentovai, jonc, Mark Larson
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Branding of Chrome.app. To brand, do a "src/tools/gyp/gyp_dogfood -Dbranding=Chrome src/build/all.gyp" (Then build, of course.) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=10920

Patch Set 1 #

Total comments: 9

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Total comments: 2

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -6 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/app/app-Info.plist View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 3 chunks +36 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
John Grabowski
11 years, 9 months ago (2009-03-03 23:23:22 UTC) #1
Mark Mentovai
I'm glad you were able to figure this out without docs, even if it was ...
11 years, 9 months ago (2009-03-03 23:46:04 UTC) #2
John Grabowski
New diffs uploaded. http://codereview.chromium.org/40066/diff/1/2 File build/common.gypi (right): http://codereview.chromium.org/40066/diff/1/2#newcode11 Line 11: ['BRANDING=="Chromium"', { 'defines': ['CHROMIUM_BUILD'], } ...
11 years, 9 months ago (2009-03-04 00:00:30 UTC) #3
Mark Mentovai
John, do we want to brand as Google Chrome or just Chrome? No need to ...
11 years, 9 months ago (2009-03-04 02:00:43 UTC) #4
John Grabowski
Applied all your suggestions but having trouble with the last one (please advise). http://codereview.chromium.org/40066/diff/1003/16 File ...
11 years, 9 months ago (2009-03-04 02:28:02 UTC) #5
Mark Mentovai
> This is borderline magical (i.e. if I see the error about empty dict it ...
11 years, 9 months ago (2009-03-04 02:47:33 UTC) #6
Mark Mentovai
Also, lgtm if you fix the extra curlies and don't want to wait for me ...
11 years, 9 months ago (2009-03-04 02:48:32 UTC) #7
John Grabowski
On 2009/03/04 02:48:32, Mark Mentovai wrote: > Also, lgtm if you fix the extra curlies ...
11 years, 9 months ago (2009-03-04 19:05:57 UTC) #8
Mark Mentovai
Also, I recommend fixing the CL desc so that it says branding instead of BRANDING. ...
11 years, 9 months ago (2009-03-04 19:16:09 UTC) #9
John Grabowski
Thanks for catching this. CL desc updated. On 2009/03/04 19:16:09, Mark Mentovai wrote: > Also, ...
11 years, 9 months ago (2009-03-04 19:29:34 UTC) #10
John Grabowski
CL desc updated. http://codereview.chromium.org/40066/diff/3001/3004 File chrome/chrome.gyp (right): http://codereview.chromium.org/40066/diff/3001/3004#newcode1363 Line 1363: # TODO(jrg): Why doesn't this ...
11 years, 9 months ago (2009-03-04 19:30:04 UTC) #11
Mark Mentovai
http://codereview.chromium.org/40066/diff/27/1012 File chrome/chrome.gyp (right): http://codereview.chromium.org/40066/diff/27/1012#newcode1365 Line 1365: ['OS=="mac"', { 'product_name': '<(branding)', }], This still duplicates ...
11 years, 9 months ago (2009-03-04 19:32:19 UTC) #12
John Grabowski
http://codereview.chromium.org/40066/diff/27/1012 File chrome/chrome.gyp (right): http://codereview.chromium.org/40066/diff/27/1012#newcode1365 Line 1365: ['OS=="mac"', { 'product_name': '<(branding)', }], On 2009/03/04 19:32:20, ...
11 years, 9 months ago (2009-03-04 20:31:44 UTC) #13
Mark Mentovai
This version is perfect.
11 years, 9 months ago (2009-03-04 20:35:48 UTC) #14
Mark Larson
11 years, 9 months ago (2009-03-11 01:38:22 UTC) #15
On 2009/03/04 02:00:43, Mark Mentovai wrote:
> John, do we want to brand as Google Chrome or just Chrome?  No need to get
this
> right just yet, but it's as good a time as any to think about it.


The product name is Google Chrome.


> 
> http://codereview.chromium.org/40066/diff/1003/14
> File build/common.gypi (right):
> 
> http://codereview.chromium.org/40066/diff/1003/14#newcode12
> Line 12: ['branding=="Chromium"', {
> I'd put Chrome first because it's "special" and it's "everyone else" that
should
> get the generic case.
> 
> http://codereview.chromium.org/40066/diff/1003/14#newcode14
> Line 14: }, { # else
> I usually write
> 
> }, {  # else: branding!="Chrome"
> 
> so that a grep using the same format that you have to use for the conditional
> itself will still find this.
> 
> http://codereview.chromium.org/40066/diff/1003/15
> File chrome/app/app-Info.plist (right):
> 
> http://codereview.chromium.org/40066/diff/1003/15#newcode10
> Line 10: <string>${PRODUCT_NAME:identifier}</string>
> (fyi) In my version of heaven, we'd have app.icns in both branding forms, and
we
> could just set this to <string>app</string>.  But I appreciate that we're just
> borrowing the .ico names Windows uses for our .icns names, and it's probably
> more important to be consistent with Windows than for me to be 100% content
with
> minor details like this.
> 
> http://codereview.chromium.org/40066/diff/1003/16
> File chrome/chrome.gyp (right):
> 
> http://codereview.chromium.org/40066/diff/1003/16#newcode1366
> Line 1366: 'product_name': 'Chromium',
> Let's do
> 
> ['OS=="mac"', {
>   'product_name': '<(branding)',  # after my thing is in
>   'conditions': [
>     ['branding=="Chrome"', {
>       'mac_bundle_resources': ['app/theme/google_chrome/chrome.icns'],
>     }, {  # else: branding!="Chrome"
>       'mac_bundle_resources': ['app/theme/chromium/chromium.icns'],
>     }],
>   ],
> }],
> 
> Coupla reasons:
> 
> 1. The branding var is already perfectly suitable for use directly (but I know
I
> won't get any argument from you since you fought against my bug to do it this
> way)
> 
> 2. The fact that Python " and " works in conditions is a pet peeve of mine.
> 
> 3. It gives us a regression test case for nested conditions.
> 
> http://codereview.chromium.org/40066/diff/1003/16#newcode1454
> Line 1454: { 'conditions': [
> This seems right, right?  But it's no good, if OS!="mac" then this will wind
up
> an empty dict (after the "conditions" is ripped out.)  GYP will come across an
> empty target dict and promptly throw.
> 
> What we need to do is, after the 'targets': [{}, {}, {}] list, put a
> 'conditions' section that contains its own 'targets'.  When it's evaluated,
the
> 'targets' in the 'conditions' will be appended to the unconditional list of
> 'targets'.

Powered by Google App Engine
This is Rietveld 408576698