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

Issue 2897593003: Generalize Active Setup triggering. (Closed)

Created:
3 years, 7 months ago by grt (UTC plus 2)
Modified:
3 years, 7 months ago
Reviewers:
gab
CC:
chromium-reviews, grt+watch_chromium.org, pennymac+watch_chromium.org, wfh+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Generalize Active Setup triggering. This is largely a rename of the OS_UPGRADES component to SELECTIVE_TRIGGER. This makes it suitable for use with other features that need to trigger active setup. It also resets all components to 0 when the major version is bumped. BUG=717091 R=gab@chromium.org Review-Url: https://codereview.chromium.org/2897593003 Cr-Commit-Position: refs/heads/master@{#474035} Committed: https://chromium.googlesource.com/chromium/src/+/e02735002943e6b687a5d976ad1036fd600dd38d

Patch Set 1 #

Patch Set 2 : test fixins #

Total comments: 6

Messages

Total messages: 18 (11 generated)
grt (UTC plus 2)
PTAL
3 years, 7 months ago (2017-05-19 20:57:52 UTC) #2
gab
lgtm % weird macros? https://codereview.chromium.org/2897593003/diff/20001/chrome/installer/setup/update_active_setup_version_work_item.cc File chrome/installer/setup/update_active_setup_version_work_item.cc (right): https://codereview.chromium.org/2897593003/diff/20001/chrome/installer/setup/update_active_setup_version_work_item.cc#newcode27 chrome/installer/setup/update_active_setup_version_work_item.cc:27: #define AsChar16String(m) AsChar16String2(m) ?? How ...
3 years, 7 months ago (2017-05-23 16:07:07 UTC) #10
grt (UTC plus 2)
https://codereview.chromium.org/2897593003/diff/20001/chrome/installer/setup/update_active_setup_version_work_item.cc File chrome/installer/setup/update_active_setup_version_work_item.cc (right): https://codereview.chromium.org/2897593003/diff/20001/chrome/installer/setup/update_active_setup_version_work_item.cc#newcode27 chrome/installer/setup/update_active_setup_version_work_item.cc:27: #define AsChar16String(m) AsChar16String2(m) On 2017/05/23 16:07:06, gab wrote: > ...
3 years, 7 months ago (2017-05-23 19:46:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2897593003/20001
3 years, 7 months ago (2017-05-23 19:46:52 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/e02735002943e6b687a5d976ad1036fd600dd38d
3 years, 7 months ago (2017-05-23 20:24:24 UTC) #16
gab
https://codereview.chromium.org/2897593003/diff/20001/chrome/installer/setup/update_active_setup_version_work_item.cc File chrome/installer/setup/update_active_setup_version_work_item.cc (right): https://codereview.chromium.org/2897593003/diff/20001/chrome/installer/setup/update_active_setup_version_work_item.cc#newcode27 chrome/installer/setup/update_active_setup_version_work_item.cc:27: #define AsChar16String(m) AsChar16String2(m) On 2017/05/23 19:46:03, grt (UTC plus ...
3 years, 7 months ago (2017-05-23 22:09:50 UTC) #17
grt (UTC plus 2)
3 years, 7 months ago (2017-05-24 12:00:39 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/2897593003/diff/20001/chrome/installer/setup/...
File chrome/installer/setup/update_active_setup_version_work_item.cc (right):

https://codereview.chromium.org/2897593003/diff/20001/chrome/installer/setup/...
chrome/installer/setup/update_active_setup_version_work_item.cc:27: #define
AsChar16String(m) AsChar16String2(m)
On 2017/05/23 22:09:50, gab wrote:
> On 2017/05/23 19:46:03, grt (UTC plus 2) wrote:
> > On 2017/05/23 16:07:06, gab wrote:
> > > ?? How does that itoa?
> > 
> > It creates a string literal containing the expansion of the macro. The extra
> > level of indirection is needed due to the way macro substitution works.
> 
> Interesting... how does that get the quotes in place?!

The # operator:
http://en.cppreference.com/w/cpp/preprocessor/replace#.23_and_.23.23_operators

https://codereview.chromium.org/2897593003/diff/20001/chrome/installer/setup/...
chrome/installer/setup/update_active_setup_version_work_item.cc:33: #undef
AsString2
On 2017/05/23 22:09:50, gab wrote:
> #undef is undefining wrong thing

Ooops. Fixing in a followon CL.

Powered by Google App Engine
This is Rietveld 408576698