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

Issue 7517019: Show crashed apps on NTP, desaturated. Click to reload. (Closed)

Created:
9 years, 4 months ago by Yoyo Zhou
Modified:
9 years, 4 months ago
Reviewers:
jstritar, Evan Stade
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, estade+watch_chromium.org, kkania, Paweł Hajdan Jr., asargent_no_longer_on_chrome
Visibility:
Public.

Description

Show crashed apps on NTP, desaturated. Click to reload. Also refactored CreateAppInfo a bit. BUG=90433 TEST=Crash a packaged app with a background page. It appears on the NTP, and clicking its icon relaunches it. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95009

Patch Set 1 #

Patch Set 2 : singlify extension_service_ #

Patch Set 3 : handle terminated && disabled #

Patch Set 4 : / #

Patch Set 5 : ^^ #

Total comments: 14

Patch Set 6 : nitted #

Total comments: 2

Patch Set 7 : freshen #

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -82 lines) Patch
M chrome/browser/automation/automation_provider_observers.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/extension_icon_source.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 2 3 4 5 6 28 chunks +82 lines, -73 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Yoyo Zhou
9 years, 4 months ago (2011-07-27 21:52:13 UTC) #1
jstritar
http://codereview.chromium.org/7517019/diff/7001/chrome/browser/ui/webui/ntp/app_launcher_handler.cc File chrome/browser/ui/webui/ntp/app_launcher_handler.cc (right): http://codereview.chromium.org/7517019/diff/7001/chrome/browser/ui/webui/ntp/app_launcher_handler.cc#newcode117 chrome/browser/ui/webui/ntp/app_launcher_handler.cc:117: } You don't need these { } braces, but ...
9 years, 4 months ago (2011-07-28 15:05:26 UTC) #2
Evan Stade
LGTM, just nits http://codereview.chromium.org/7517019/diff/7001/chrome/browser/ui/webui/ntp/app_launcher_handler.cc File chrome/browser/ui/webui/ntp/app_launcher_handler.cc (right): http://codereview.chromium.org/7517019/diff/7001/chrome/browser/ui/webui/ntp/app_launcher_handler.cc#newcode117 chrome/browser/ui/webui/ntp/app_launcher_handler.cc:117: } actually, you can't keep them ...
9 years, 4 months ago (2011-07-28 16:33:21 UTC) #3
Yoyo Zhou
http://codereview.chromium.org/7517019/diff/7001/chrome/browser/ui/webui/ntp/app_launcher_handler.cc File chrome/browser/ui/webui/ntp/app_launcher_handler.cc (right): http://codereview.chromium.org/7517019/diff/7001/chrome/browser/ui/webui/ntp/app_launcher_handler.cc#newcode117 chrome/browser/ui/webui/ntp/app_launcher_handler.cc:117: } On 2011/07/28 16:33:21, Evan Stade wrote: > actually, ...
9 years, 4 months ago (2011-07-28 17:02:49 UTC) #4
Yoyo Zhou
http://codereview.chromium.org/7517019/diff/7001/chrome/browser/ui/webui/ntp/app_launcher_handler.cc File chrome/browser/ui/webui/ntp/app_launcher_handler.cc (right): http://codereview.chromium.org/7517019/diff/7001/chrome/browser/ui/webui/ntp/app_launcher_handler.cc#newcode773 chrome/browser/ui/webui/ntp/app_launcher_handler.cc:773: } On 2011/07/28 17:02:49, Yoyo Zhou wrote: > On ...
9 years, 4 months ago (2011-07-28 17:15:00 UTC) #5
Evan Stade
http://codereview.chromium.org/7517019/diff/7001/chrome/browser/ui/webui/ntp/app_launcher_handler.cc File chrome/browser/ui/webui/ntp/app_launcher_handler.cc (right): http://codereview.chromium.org/7517019/diff/7001/chrome/browser/ui/webui/ntp/app_launcher_handler.cc#newcode773 chrome/browser/ui/webui/ntp/app_launcher_handler.cc:773: } On 2011/07/28 17:15:00, Yoyo Zhou wrote: > On ...
9 years, 4 months ago (2011-07-28 17:35:16 UTC) #6
jstritar
http://codereview.chromium.org/7517019/diff/2006/chrome/browser/ui/webui/ntp/app_launcher_handler.cc File chrome/browser/ui/webui/ntp/app_launcher_handler.cc (right): http://codereview.chromium.org/7517019/diff/2006/chrome/browser/ui/webui/ntp/app_launcher_handler.cc#newcode790 chrome/browser/ui/webui/ntp/app_launcher_handler.cc:790: GetExtensionInstallUI()->ConfirmReEnable(this, extension); what about the extension pointer here, if ...
9 years, 4 months ago (2011-07-28 17:47:23 UTC) #7
Yoyo Zhou
9 years, 4 months ago (2011-07-28 18:10:28 UTC) #8
http://codereview.chromium.org/7517019/diff/2006/chrome/browser/ui/webui/ntp/...
File chrome/browser/ui/webui/ntp/app_launcher_handler.cc (right):

http://codereview.chromium.org/7517019/diff/2006/chrome/browser/ui/webui/ntp/...
chrome/browser/ui/webui/ntp/app_launcher_handler.cc:790:
GetExtensionInstallUI()->ConfirmReEnable(this, extension);
On 2011/07/28 17:47:24, jstritar wrote:
> what about the extension pointer here, if its invalidated from the
> ReloadExtension above?

I just saw this too -- this is the mythical "terminated and disabled" case, but
just in case it happens, I freshened the extension pointer instead of NULLing
it.

Powered by Google App Engine
This is Rietveld 408576698