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

Issue 178011: Parameterize the Google Update appid at build time instead of hard coding it ... (Closed)

Created:
11 years, 3 months ago by robertshield
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, kuchhal
Visibility:
Public.

Description

Parameterize the Google Update appid at build time instead of hard coding it in the source.

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -12 lines) Patch
M app/app.gyp View 1 1 chunk +46 lines, -1 line 1 comment Download
M build/common.gypi View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/app/chrome_exe_main.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/chrome.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/installer.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/mini_installer.gyp View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/installer/mini_installer/mini_installer.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/installer/mini_installer/mini_installer.cc View 1 5 chunks +14 lines, -4 lines 0 comments Download
M chrome/installer/util/google_update_constants.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
A chrome/tools/build/appid.py View 1 chunk +52 lines, -0 lines 1 comment Download

Messages

Total messages: 13 (0 generated)
robertshield
11 years, 3 months ago (2009-08-28 00:57:38 UTC) #1
bradn
LGTM http://codereview.chromium.org/178011/diff/1/6 File app/app.gyp (right): http://codereview.chromium.org/178011/diff/1/6#newcode300 Line 300: }, Might be better to put this ...
11 years, 3 months ago (2009-08-28 07:33:43 UTC) #2
kuchhal
I think you will need to remove this guid from chrome/installer/util/google_update_constants.cc as well. http://codereview.chromium.org/178011/diff/1/8 File ...
11 years, 3 months ago (2009-08-28 17:03:37 UTC) #3
kuchhal
Ignore my previous comment. I saw that you already have google_update_constants.cc in this change. lgtm.
11 years, 3 months ago (2009-08-28 17:04:25 UTC) #4
robertshield
Thanks! http://codereview.chromium.org/178011/diff/1/6 File app/app.gyp (right): http://codereview.chromium.org/178011/diff/1/6#newcode300 Line 300: }, On 2009/08/28 07:33:43, bradn wrote: > ...
11 years, 3 months ago (2009-08-31 14:43:29 UTC) #5
kuchhal
+cpu Can you check if this change causes the size of mini_installer.exe to >> > ...
11 years, 3 months ago (2009-08-31 15:48:45 UTC) #6
cpu_(ooo_6.6-7.5)
512 extra bytes is ok. On 2009/08/31 15:48:45, kuchhal wrote: > +cpu > > Can ...
11 years, 3 months ago (2009-09-01 00:12:28 UTC) #7
sgk
http://codereview.chromium.org/178011/diff/3003/5006 File app/app.gyp (right): http://codereview.chromium.org/178011/diff/3003/5006#newcode330 Line 330: 'tools/build/_always_run_appid_py.marker', There's a problem here. You're using a ...
11 years, 3 months ago (2009-09-03 00:25:23 UTC) #8
M-A Ruel
You forgot to update svn:ignore. Will commit as soon as the tree opens.
11 years, 3 months ago (2009-09-03 21:15:46 UTC) #9
Finnur
> http://codereview.chromium.org/178011/diff/3003/5004#newcode27 > Line 27: output_file.write(contents) > ...you're writing out the .h file contents *every ...
11 years, 3 months ago (2009-09-04 21:15:17 UTC) #10
sgk1
A fix for this was submitted, r25290: http://codereview.chromium.org/199001/show http://src.chromium.org/viewvc/chrome?view=rev&revision=25290 You should see appid run every ...
11 years, 3 months ago (2009-09-04 22:15:38 UTC) #11
cpu_(ooo_6.6-7.5)
Can we close this issue? On 2009/09/04 22:15:38, sgk_google.com wrote: > A fix for this ...
11 years, 3 months ago (2009-09-18 18:09:54 UTC) #12
bradn
11 years, 3 months ago (2009-09-18 18:10:57 UTC) #13
I think so.
-BradN

On Fri, Sep 18, 2009 at 11:09 AM, <cpu@chromium.org> wrote:

> Can we close this issue?
>
> On 2009/09/04 22:15:38, sgk_google.com wrote:
>
>> A fix for this was submitted, r25290:
>> http://codereview.chromium.org/199001/show
>>
>
>  http://src.chromium.org/viewvc/chrome?view=rev&revision=25290
>>
>
>  You should see appid run every time, but it shouldn't cause any downstream
>> rebuilds (specifically of chrome.dll).
>>
>
>  If you're still seeing unnecessary rebuilds after r25290, it's probably
>> due
>> to some other dependency problem.  Let me know the specifics (build log,
>> what target, etc.) and I can look into it.
>>
>
>          --SK
>>
>
>  On Fri, Sep 4, 2009 at 2:14 PM, Finnur Thorarinsson
>>
> <finnur@chromium.org>wrote:
>
>  >
>> > > http://codereview.chromium.org/178011/diff/3003/5004#newcode27
>> > > Line 27: output_file.write(contents)
>> > > ...you're writing out the .h file contents *every time* even if the id
>> > > is the same as last time.  This is causing the timestamp on the
>> > > generated .h file to change every time, which causes installer_util to
>> > > recompile google_update_constants.cc every time, which causes
>> chrome.dll
>> > > to relink *every* build, even when nothing has changed.
>> >
>> > > When you're running an action like this every build, you *must*
>> compare
>> > > the output you would generate against the current contents of file,
>> and
>> > > only write it out if there's a difference.
>> >
>> > > I'm prepping a CL to fix this.
>> > Any word on a CL to fix this? This problem is really annoying... :)
>> >
>> >
>> >
>> > On Wed, Sep 2, 2009 at 17:25, <mailto:sgk@chromium.org> wrote:
>> >
>> >>
>> >>
>> >> http://codereview.chromium.org/178011/diff/3003/5006
>> >> File app/app.gyp (right):
>> >>
>> >> http://codereview.chromium.org/178011/diff/3003/5006#newcode330
>> >> Line 330: 'tools/build/_always_run_appid_py.marker',
>> >> There's a problem here.
>> >>
>> >> You're using a .marker file to make sure that the appid update runs
>> >> every single time you build.  That's fine, but... (see next comment...)
>> >>
>> >> http://codereview.chromium.org/178011/diff/3003/5004
>> >> File chrome/tools/build/appid.py (right):
>> >>
>> >> http://codereview.chromium.org/178011/diff/3003/5004#newcode27
>> >> Line 27: output_file.write(contents)
>> >> ...you're writing out the .h file contents *every time* even if the id
>> >> is the same as last time.  This is causing the timestamp on the
>> >> generated .h file to change every time, which causes installer_util to
>> >> recompile google_update_constants.cc every time, which causes
>> chrome.dll
>> >> to relink *every* build, even when nothing has changed.
>> >>
>> >> When you're running an action like this every build, you *must* compare
>> >> the output you would generate against the current contents of file, and
>> >> only write it out if there's a difference.
>> >>
>> >> I'm prepping a CL to fix this.
>> >>
>> >>
>> >> http://codereview.chromium.org/178011
>> >>
>> >
>> >
>>
>
>
>
>
> http://codereview.chromium.org/178011
>

Powered by Google App Engine
This is Rietveld 408576698