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

Issue 7776001: ntp4: improved app install, try 2 (Closed)

Created:
9 years, 4 months ago by Evan Stade
Modified:
9 years, 3 months ago
Reviewers:
Rick Byers
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, arv (Not doing code reviews), mihaip+watch_chromium.org, estade+watch_chromium.org, Dan Beam
Visibility:
Public.

Description

ntp4: improved app install, try 2 1. install to the correct page (0 -> -1 in crx_installer) 2. scroll to show the app (scrollTop change in apps_page.js) 3. reset tiles after trashing an app (trash.js change) 4. fix install-display for already-open NTPs. The old technique of always navigating stacked up history entries when the NTP had already been open. It was also flaky (seemed to be vulnerable to some race). Now we use an install notification which the NTP in question will be listening for. BUG=92995, 91583 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98715

Patch Set 1 #

Patch Set 2 : remove dbg line #

Patch Set 3 : fix trash change #

Total comments: 9

Patch Set 4 : remove #app-id altogether #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -48 lines) Patch
M chrome/browser/extensions/crx_installer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_install_ui.cc View 1 2 3 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/resources/ntp4/apps_page.js View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.js View 1 2 3 6 chunks +15 lines, -32 lines 0 comments Download
M chrome/browser/resources/ntp4/trash.js View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 2 3 8 chunks +33 lines, -10 lines 2 comments Download
M chrome/common/chrome_notification_types.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Evan Stade
9 years, 4 months ago (2011-08-27 04:23:56 UTC) #1
Rick Byers
http://codereview.chromium.org/7776001/diff/3001/chrome/browser/extensions/extension_install_ui.cc File chrome/browser/extensions/extension_install_ui.cc (right): http://codereview.chromium.org/7776001/diff/3001/chrome/browser/extensions/extension_install_ui.cc#newcode235 chrome/browser/extensions/extension_install_ui.cc:235: "%s#app-id=%s", chrome::kChromeUINewTabURL, app_id.c_str()); Why do you still need the ...
9 years, 3 months ago (2011-08-29 16:01:00 UTC) #2
Evan Stade
http://codereview.chromium.org/7776001/diff/3001/chrome/browser/extensions/extension_install_ui.cc File chrome/browser/extensions/extension_install_ui.cc (right): http://codereview.chromium.org/7776001/diff/3001/chrome/browser/extensions/extension_install_ui.cc#newcode235 chrome/browser/extensions/extension_install_ui.cc:235: "%s#app-id=%s", chrome::kChromeUINewTabURL, app_id.c_str()); On 2011/08/29 16:01:00, Rick Byers wrote: ...
9 years, 3 months ago (2011-08-29 18:15:16 UTC) #3
Evan Stade
updated; #app-id removed. Had to move the new notification registration to Attach() (so we would ...
9 years, 3 months ago (2011-08-29 19:07:20 UTC) #4
Rick Byers
LGTM http://codereview.chromium.org/7776001/diff/3001/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): http://codereview.chromium.org/7776001/diff/3001/chrome/browser/resources/ntp4/new_tab.js#newcode373 chrome/browser/resources/ntp4/new_tab.js:373: highlightAppId = appId; On 2011/08/29 18:15:16, Evan Stade ...
9 years, 3 months ago (2011-08-29 19:51:12 UTC) #5
Evan Stade
9 years, 3 months ago (2011-08-29 20:30:51 UTC) #6
http://codereview.chromium.org/7776001/diff/8002/chrome/browser/ui/webui/ntp/...
File chrome/browser/ui/webui/ntp/app_launcher_handler.cc (right):

http://codereview.chromium.org/7776001/diff/8002/chrome/browser/ui/webui/ntp/...
chrome/browser/ui/webui/ntp/app_launcher_handler.cc:281:
SetAppToBeHighlighted();
On 2011/08/29 19:51:12, Rick Byers wrote:
> I assume we can't do this unconditionally because it may be too early for the
> setAppToBeHighlighted function to even run, right?  It seems a shame to have
an
> "app to highlight" here, which at some later point gets pushed to JS and
cached
> again, which at some later point actually causes a behavior change.  But if we
> really can't reliably call into the JS this early, then I don't see an
obviously
> simpler option.

yes, the js isn't ready yet.

Powered by Google App Engine
This is Rietveld 408576698