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

Issue 7792024: Show app disable and enable on NTP, and desaturate non-offline-enabled apps when offline. (Closed)

Created:
9 years, 3 months ago by Yoyo Zhou
Modified:
9 years, 3 months ago
Reviewers:
zel, Evan Stade
CC:
chromium-reviews, estade+watch_chromium.org, arv (Not doing code reviews), kkania, Paweł Hajdan Jr.
Visibility:
Public.

Description

Show app disable and enable on NTP, and desaturate non-offline-enabled apps when offline. Refactor to put the logic for NTP app grayscaling in Javascript. Disabled and terminated apps don't disappear from the NTP. Update the NTP apps when offline status changes. Caveat: the webstore icon doesn't get desaturated. BUG=89655, 94322, 90433 TEST=Open NTP with packaged apps in disabled/enabled state; observe them changing color when disabled/enabled via chrome://extensions page. Observe color changes when network interface is unplugged. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98908

Patch Set 1 #

Patch Set 2 : merge #

Patch Set 3 : u #

Total comments: 12

Patch Set 4 : estade comments #

Patch Set 5 : + #

Patch Set 6 : ++ #

Patch Set 7 : merge #

Patch Set 8 : , #

Patch Set 9 : apps #

Patch Set 10 : window #

Patch Set 11 : > #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -21 lines) Patch
M chrome/browser/resources/ntp4/apps_page.js View 1 2 3 4 5 6 7 8 9 10 5 chunks +25 lines, -4 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.js View 1 2 3 4 5 6 7 8 9 6 chunks +38 lines, -12 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 2 3 4 5 6 3 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Yoyo Zhou
This is my revised, more efficient approach -- you can disregard the earlier CL I ...
9 years, 3 months ago (2011-08-30 02:13:27 UTC) #1
Evan Stade
cool, just nits http://codereview.chromium.org/7792024/diff/5001/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): http://codereview.chromium.org/7792024/diff/5001/chrome/browser/resources/ntp4/new_tab.js#newcode370 chrome/browser/resources/ntp4/new_tab.js:370: if (app) { no curlies http://codereview.chromium.org/7792024/diff/5001/chrome/browser/resources/ntp4/new_tab.js#newcode383 ...
9 years, 3 months ago (2011-08-30 03:34:14 UTC) #2
Yoyo Zhou
I just was able to sync past your fix to crbug.com/94095 (darn git mirrors), so ...
9 years, 3 months ago (2011-08-30 17:37:10 UTC) #3
Evan Stade
lgtm
9 years, 3 months ago (2011-08-30 19:25:58 UTC) #4
Yoyo Zhou
9 years, 3 months ago (2011-08-30 20:51:14 UTC) #5
On 2011/08/30 19:25:58, Evan Stade wrote:
> lgtm

FYI, I had to add this line to updateOfflineEnabledApps:
    var apps = document.querySelectorAll('.app');

trybots don't seem to want to start right now.

Powered by Google App Engine
This is Rietveld 408576698