|
|
Chromium Code Reviews|
Created:
4 years, 1 month ago by cfredric (do not use) Modified:
4 years, 1 month ago CC:
chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionMake the SVN commit number an optional part of X-Mod-Pagespeed header.
Currently, the X-Mod-Pagespeed header format is expected to be
"<major>.<minor>.<branch>.<point>-<commit>", where <commit> is the SVN commit
number. This should not be required; i.e. the format should also be allowed to
be "<major>.<minor>.<branch>.<point>".
BUG=660950
Committed: https://crrev.com/b3028617e93ab30b34c34f5e12008b6e171f909e
Cr-Commit-Position: refs/heads/master@{#429075}
Patch Set 1 #Patch Set 2 : remove unneeded comment #
Total comments: 1
Patch Set 3 : Avoid parsing twice, when possible. #Patch Set 4 : Simplify format string. #Patch Set 5 : Add mod_pagespeed/OWNERS file. #
Messages
Total messages: 33 (17 generated)
Description was changed from ========== Make SVN commit number an optional part of X-Mod-Pagespeed header. BUG= ========== to ========== Make SVN commit number an optional part of X-Mod-Pagespeed header. BUG= ==========
cfredric@google.com changed reviewers: + csharrison@chromium.org
Looks good! Could you: 1. Update the BUG= line with a bug # from crbug.com. 2. Write a short description for this change. Keep in mind the description and title of the CL should be wrapped to 80 cols. https://codereview.chromium.org/2465023002/diff/20001/chrome/browser/mod_page... File chrome/browser/mod_pagespeed/mod_pagespeed_metrics.cc (right): https://codereview.chromium.org/2465023002/diff/20001/chrome/browser/mod_page... chrome/browser/mod_pagespeed/mod_pagespeed_metrics.cc:46: int num_parsed = sscanf(version_string, "%d.%d.%d.%d-%d", &unused_major, I wonder if you could do sscanf(version_string, "%d.%d.%d.%d%c%d"), and if we match 6 successfully, just double check that the character was a '-'. This way if we don't have the commit we don't have to re-parse the version string.
Description was changed from ========== Make SVN commit number an optional part of X-Mod-Pagespeed header. BUG= ========== to ========== Make the SVN commit number an optional part of X-Mod-Pagespeed header. Currently, the X-Mod-Pagespeed header format is expected to be "<major>.<minor>.<branch>.<point>-<commit>", where <commit> is the SVN commit number. This should not be required; i.e. the format should also be allowed to be "<major>.<minor>.<branch>.<point>". BUG=660950 ==========
Description was changed from ========== Make the SVN commit number an optional part of X-Mod-Pagespeed header. Currently, the X-Mod-Pagespeed header format is expected to be "<major>.<minor>.<branch>.<point>-<commit>", where <commit> is the SVN commit number. This should not be required; i.e. the format should also be allowed to be "<major>.<minor>.<branch>.<point>". BUG=660950 ========== to ========== Make the SVN commit number an optional part of X-Mod-Pagespeed header. Currently, the X-Mod-Pagespeed header format is expected to be "<major>.<minor>.<branch>.<point>-<commit>", where <commit> is the SVN commit number. This should not be required; i.e. the format should also be allowed to be "<major>.<minor>.<branch>.<point>". BUG=660950 ==========
On 2016/10/31 20:29:00, Charlie Harrison wrote: > Looks good! > > Could you: > 1. Update the BUG= line with a bug # from http://crbug.com. > 2. Write a short description for this change. > > Keep in mind the description and title of the CL should be wrapped to 80 cols. > > https://codereview.chromium.org/2465023002/diff/20001/chrome/browser/mod_page... > File chrome/browser/mod_pagespeed/mod_pagespeed_metrics.cc (right): > > https://codereview.chromium.org/2465023002/diff/20001/chrome/browser/mod_page... > chrome/browser/mod_pagespeed/mod_pagespeed_metrics.cc:46: int num_parsed = > sscanf(version_string, "%d.%d.%d.%d-%d", &unused_major, > I wonder if you could do > sscanf(version_string, "%d.%d.%d.%d%c%d"), and if we match 6 successfully, just > double check that the character was a '-'. This way if we don't have the commit > we don't have to re-parse the version string. Done.
lgtm!
cfredric@google.com changed reviewers: + sky@chromium.org
sky@chromium.org changed reviewers: + davidben@chromium.org
I'm not at all familiar with this code. It looks like davidben moved it. Hopefully he can review this.
lgtm deferring to csharrison. (This code is unowned, sadly. Hopefully cfredric and co can take up ownership of it since it's for their stuff. My only involvement was moving it out of chrome/browser/prerender, where it was put because the original author just happened to OWNERS bits there.)
The CQ bit was checked by cfredric@google.com
The patchset sent to the CQ was uploaded after l-g-t-m from csharrison@chromium.org Link to the patchset: https://codereview.chromium.org/2465023002/#ps60001 (title: "Simplify format string.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
Can you please add an OWNERS file in this patch?
On 2016/11/01 16:16:12, sky wrote: > Can you please add an OWNERS file in this patch? Sorry about that - done.
still lgtm
The CQ bit was checked by csharrison@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
LGTM
The CQ bit was checked by cfredric@google.com
The patchset sent to the CQ was uploaded after l-g-t-m from davidben@chromium.org Link to the patchset: https://codereview.chromium.org/2465023002/#ps80001 (title: "Add mod_pagespeed/OWNERS file.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Make the SVN commit number an optional part of X-Mod-Pagespeed header. Currently, the X-Mod-Pagespeed header format is expected to be "<major>.<minor>.<branch>.<point>-<commit>", where <commit> is the SVN commit number. This should not be required; i.e. the format should also be allowed to be "<major>.<minor>.<branch>.<point>". BUG=660950 ========== to ========== Make the SVN commit number an optional part of X-Mod-Pagespeed header. Currently, the X-Mod-Pagespeed header format is expected to be "<major>.<minor>.<branch>.<point>-<commit>", where <commit> is the SVN commit number. This should not be required; i.e. the format should also be allowed to be "<major>.<minor>.<branch>.<point>". BUG=660950 ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001)
Message was sent while issue was closed.
Description was changed from ========== Make the SVN commit number an optional part of X-Mod-Pagespeed header. Currently, the X-Mod-Pagespeed header format is expected to be "<major>.<minor>.<branch>.<point>-<commit>", where <commit> is the SVN commit number. This should not be required; i.e. the format should also be allowed to be "<major>.<minor>.<branch>.<point>". BUG=660950 ========== to ========== Make the SVN commit number an optional part of X-Mod-Pagespeed header. Currently, the X-Mod-Pagespeed header format is expected to be "<major>.<minor>.<branch>.<point>-<commit>", where <commit> is the SVN commit number. This should not be required; i.e. the format should also be allowed to be "<major>.<minor>.<branch>.<point>". BUG=660950 Committed: https://crrev.com/b3028617e93ab30b34c34f5e12008b6e171f909e Cr-Commit-Position: refs/heads/master@{#429075} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/b3028617e93ab30b34c34f5e12008b6e171f909e Cr-Commit-Position: refs/heads/master@{#429075} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
