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

Issue 2493973003: Display "Restart to update" dialog to Chrome OS users. (Closed)

Created:
4 years, 1 month ago by Greg K
Modified:
4 years ago
Reviewers:
waffles, James Cook, Nico
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Display "Restart to update" dialog to Chrome OS users. This displays the "restart to update" message in the system tray to Chrome OS users when a flash update is available. BUG=630420 Committed: https://crrev.com/5aa7ae3264bd376e48eb283a4977dfc86b98dc11 Cr-Commit-Position: refs/heads/master@{#436782}

Patch Set 1 #

Patch Set 2 : Display "Restart to update" dialog to Chrome OS users. #

Total comments: 19

Patch Set 3 : Display "Restart to update" dialog to Chrome OS users. #

Total comments: 12

Patch Set 4 : Display "Restart to update" dialog to Chrome OS users. #

Patch Set 5 : Display "Restart to update" dialog to Chrome OS users. #

Total comments: 6

Patch Set 6 : Display "Restart to update" dialog to Chrome OS users. #

Total comments: 8

Patch Set 7 : Display "Restart to update" dialog to Chrome OS users. #

Total comments: 3

Patch Set 8 : Display "Restart to update" dialog to Chrome OS users. #

Patch Set 9 : Rebased CL #

Patch Set 10 : Rebased CL #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -7 lines) Patch
M chrome/browser/component_updater/pepper_flash_component_installer.cc View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/lifetime/application_lifetime.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/lifetime/application_lifetime.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_client.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 3 4 5 6 7 5 chunks +30 lines, -0 lines 1 comment Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos_browsertest_chromeos.cc View 1 2 3 4 5 6 2 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 74 (42 generated)
Greg K
PTAL. Thanks, Greg
4 years, 1 month ago (2016-11-17 00:19:17 UTC) #2
Greg K
waffles@chromium.org: Please review changes in component_updater/pepper_flash_component_installer.cc Thanks, Greg
4 years, 1 month ago (2016-11-17 00:21:24 UTC) #4
Greg K
waffles@chromium.org: Please review changes in component_updater/pepper_flash_component_installer.cc Thanks, Greg
4 years, 1 month ago (2016-11-17 00:21:25 UTC) #5
waffles
lgtm https://codereview.chromium.org/2493973003/diff/20001/chrome/browser/component_updater/pepper_flash_component_installer.cc File chrome/browser/component_updater/pepper_flash_component_installer.cc (right): https://codereview.chromium.org/2493973003/diff/20001/chrome/browser/component_updater/pepper_flash_component_installer.cc#newcode72 chrome/browser/component_updater/pepper_flash_component_installer.cc:72: bool result) { Maybe it's time to add ...
4 years, 1 month ago (2016-11-17 00:39:56 UTC) #6
James Cook
https://codereview.chromium.org/2493973003/diff/20001/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc File chrome/browser/ui/ash/system_tray_delegate_chromeos.cc (right): https://codereview.chromium.org/2493973003/diff/20001/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc#newcode185 chrome/browser/ui/ash/system_tray_delegate_chromeos.cc:185: g_instance = this; DCHECK(!g_instance) above just to make sure ...
4 years, 1 month ago (2016-11-17 00:43:43 UTC) #7
James Cook
For the test you probably want something like ash::Shell::GetInstance()->GetPrimarySystemTray()->GetTrayUpdateForTesting();
4 years, 1 month ago (2016-11-17 00:48:09 UTC) #8
Greg K
To explain why so many more files are being touched here, it turned out that ...
4 years ago (2016-11-30 19:30:30 UTC) #10
James Cook
Thanks for sticking with this. Sorry about the SystemTrayClient / SystemTrayDelegate awkwardness -- the code ...
4 years ago (2016-11-30 23:01:41 UTC) #15
Greg K
https://codereview.chromium.org/2493973003/diff/60001/chrome/browser/browser_shutdown.cc File chrome/browser/browser_shutdown.cc (right): https://codereview.chromium.org/2493973003/diff/60001/chrome/browser/browser_shutdown.cc#newcode278 chrome/browser/browser_shutdown.cc:278: chrome::NotifyAndTerminate(/*fast_path=*/false,/*always_reboot=*/false); On 2016/11/30 23:01:41, James Cook wrote: > nit: ...
4 years ago (2016-12-01 19:44:43 UTC) #21
James Cook
LGTM with nits https://codereview.chromium.org/2493973003/diff/100001/chrome/browser/ui/ash/system_tray_client.cc File chrome/browser/ui/ash/system_tray_client.cc (right): https://codereview.chromium.org/2493973003/diff/100001/chrome/browser/ui/ash/system_tray_client.cc#newcode321 chrome/browser/ui/ash/system_tray_client.cc:321: #if defined(OS_CHROMEOS) These ifdefs are not ...
4 years ago (2016-12-01 20:41:13 UTC) #25
waffles
(lgtm sustained)
4 years ago (2016-12-02 00:15:00 UTC) #26
Greg K
thakis@chromium.org: Please review changes in chrome/ Thanks, Greg https://codereview.chromium.org/2493973003/diff/100001/chrome/browser/ui/ash/system_tray_client.cc File chrome/browser/ui/ash/system_tray_client.cc (right): https://codereview.chromium.org/2493973003/diff/100001/chrome/browser/ui/ash/system_tray_client.cc#newcode321 chrome/browser/ui/ash/system_tray_client.cc:321: #if ...
4 years ago (2016-12-02 01:07:32 UTC) #30
Nico
lgtm (Mr Cook, wanna be a chrome/ owner?) https://codereview.chromium.org/2493973003/diff/120001/chrome/browser/lifetime/application_lifetime.h File chrome/browser/lifetime/application_lifetime.h (right): https://codereview.chromium.org/2493973003/diff/120001/chrome/browser/lifetime/application_lifetime.h#newcode81 chrome/browser/lifetime/application_lifetime.h:81: // ...
4 years ago (2016-12-02 01:20:07 UTC) #31
James Cook
On 2016/12/02 01:20:07, Nico wrote: > lgtm > > (Mr Cook, wanna be a chrome/ ...
4 years ago (2016-12-02 03:34:22 UTC) #34
Nico
I'll take what I can get :-) want to send a cl? On Dec 1, ...
4 years ago (2016-12-02 03:38:40 UTC) #35
Greg K
https://codereview.chromium.org/2493973003/diff/120001/chrome/browser/lifetime/application_lifetime.h File chrome/browser/lifetime/application_lifetime.h (right): https://codereview.chromium.org/2493973003/diff/120001/chrome/browser/lifetime/application_lifetime.h#newcode81 chrome/browser/lifetime/application_lifetime.h:81: // component flash update was applied. On 2016/12/02 01:20:07, ...
4 years ago (2016-12-03 00:05:42 UTC) #40
James Cook
Still LGTM but I have a small naming suggestion https://codereview.chromium.org/2493973003/diff/140001/chrome/browser/lifetime/application_lifetime.h File chrome/browser/lifetime/application_lifetime.h (right): https://codereview.chromium.org/2493973003/diff/140001/chrome/browser/lifetime/application_lifetime.h#newcode83 chrome/browser/lifetime/application_lifetime.h:83: ...
4 years ago (2016-12-03 00:18:20 UTC) #41
Nico
https://codereview.chromium.org/2493973003/diff/140001/chrome/browser/lifetime/application_lifetime.h File chrome/browser/lifetime/application_lifetime.h (right): https://codereview.chromium.org/2493973003/diff/140001/chrome/browser/lifetime/application_lifetime.h#newcode83 chrome/browser/lifetime/application_lifetime.h:83: enum class ApplicationLifetime { kForceReboot, kOptionalReboot }; On 2016/12/03 ...
4 years ago (2016-12-03 00:23:13 UTC) #42
Greg K
https://codereview.chromium.org/2493973003/diff/140001/chrome/browser/lifetime/application_lifetime.h File chrome/browser/lifetime/application_lifetime.h (right): https://codereview.chromium.org/2493973003/diff/140001/chrome/browser/lifetime/application_lifetime.h#newcode83 chrome/browser/lifetime/application_lifetime.h:83: enum class ApplicationLifetime { kForceReboot, kOptionalReboot }; On 2016/12/03 ...
4 years ago (2016-12-06 00:13:15 UTC) #43
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/2493973003/160001
4 years ago (2016-12-06 00:13:41 UTC) #46
James Cook
still lgtm
4 years ago (2016-12-06 00:14:15 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/79883)
4 years ago (2016-12-06 01:32:42 UTC) #49
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/2493973003/160001
4 years ago (2016-12-06 18:07:26 UTC) #51
commit-bot: I haz the power
Failed to apply patch for chrome/browser/component_updater/pepper_flash_component_installer.cc: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-12-06 18:17:09 UTC) #53
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/2493973003/180001
4 years ago (2016-12-06 19:41:39 UTC) #63
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/2493973003/200001
4 years ago (2016-12-06 22:43:55 UTC) #66
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years ago (2016-12-07 00:36:59 UTC) #68
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/5aa7ae3264bd376e48eb283a4977dfc86b98dc11 Cr-Commit-Position: refs/heads/master@{#436782}
4 years ago (2016-12-07 00:40:37 UTC) #70
James Cook
Greg, I'm working in the update code right now and I noticed this. Let me ...
4 years ago (2016-12-09 00:11:40 UTC) #71
Greg K
Thanks for bringing that up, and if you don't mind fixing it as long as ...
4 years ago (2016-12-09 00:12:30 UTC) #72
chanli
On 2016/12/09 00:12:30, Greg K wrote: > Thanks for bringing that up, and if you ...
4 years ago (2016-12-10 20:17:19 UTC) #73
James Cook
4 years ago (2016-12-12 16:43:52 UTC) #74
Message was sent while issue was closed.
On 2016/12/10 20:17:19, chanli wrote:
> On 2016/12/09 00:12:30, Greg K wrote:
> > Thanks for bringing that up, and if you don't mind fixing it as long as
> > you're in there, I would really appreciate. Otherwise I'm happy to do it.
> > 
> > - Greg
> > 
> > On Thu, Dec 8, 2016 at 4:11 PM, <mailto:jamescook@chromium.org> wrote:
> > 
> > > Greg, I'm working in the update code right now and I noticed this.
> > >
> > > Let me know if you'd like me to fix it in the CL I'm working on.
> > >
> > >
> > >
> > > https://codereview.chromium.org/2493973003/diff/200001/
> > > chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
> > > File chrome/browser/ui/ash/system_tray_delegate_chromeos.cc (right):
> > >
> > > https://codereview.chromium.org/2493973003/diff/200001/
> > > chrome/browser/ui/ash/system_tray_delegate_chromeos.cc#newcode334
> > > chrome/browser/ui/ash/system_tray_delegate_chromeos.cc:334:
> > > info->update_required = true;
> > > Hey, I just thought of something. If the only update pending is the
> > > flash update then the ash::UpdateInfo::severity will be UPDATE_NONE.
> > > Luckily the icon still shows in this case, but it's the lowest-priority
> > > update color.
> > >
> > > I think this should explicitly set UPDATE_LOW (or whatever severity you
> > > think is appropriate).
> > >
> > > https://codereview.chromium.org/2493973003/
> > >
> > 
> > -- 
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-reviews" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> email
> > to mailto:chromium-reviews+unsubscribe@chromium.org.
> 
> Hi,
> 
> This is Chan Li from Findit team. I am looking for possible cause for flaky
test
> AppMenuControllerTest.RecentTabsFavIcon, could you help me and check if this
> change could cause the flakiness? Thank you so much!

I don't think that's related. RecentTabsFavIcon seems to be Mac-only, and this
code only affects Chrome OS.

Powered by Google App Engine
This is Rietveld 408576698