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

Issue 11953021: Don't show the apps page on the NTP if the app launcher is installed. (Closed)

Created:
7 years, 11 months ago by jeremya
Modified:
7 years, 11 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org, arv (Not doing code reviews), pedrosimonetti+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

Reland: Don't show the apps page on the NTP if the app launcher is installed. R=benwells@chromium.org,estade@chromium.org BUG=170526 Originally committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178769 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179088

Patch Set 1 #

Patch Set 2 : Move getShouldShowApps handling into separate class #

Patch Set 3 : make shouldShowApps a pref #

Total comments: 8

Patch Set 4 : pref -> app_launcher #

Total comments: 14

Patch Set 5 : comments #

Total comments: 3

Patch Set 6 : Don't unconditionally inject AppLauncherHandler any more. #

Patch Set 7 : nit #

Patch Set 8 : don't try to check registry on ~OS_WIN #

Patch Set 9 : fix test #

Patch Set 10 : fix test better #

Patch Set 11 : forgot to initialise should_show_apps_page_ #

Patch Set 12 : move getShouldShowApps message to onLoad. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -21 lines) Patch
M chrome/browser/extensions/app_launcher.h View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/extensions/app_launcher.cc View 1 2 3 4 5 6 7 8 9 2 chunks +73 lines, -13 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui_default.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.js View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_page_handler.h View 1 2 3 4 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_page_handler.cc View 1 2 3 4 5 6 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +9 lines, -2 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
jeremya
7 years, 11 months ago (2013-01-22 05:20:10 UTC) #1
Evan Stade
It's not ok to delay the startup of the NTP. You should store whether the ...
7 years, 11 months ago (2013-01-22 18:58:14 UTC) #2
koz (OOO until 15th September)
Code looks good, but leaving for estade to review at a higher level.
7 years, 11 months ago (2013-01-23 06:30:15 UTC) #3
Evan Stade
https://codereview.chromium.org/11953021/diff/6001/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): https://codereview.chromium.org/11953021/diff/6001/chrome/browser/resources/ntp4/new_tab.js#newcode658 chrome/browser/resources/ntp4/new_tab.js:658: chrome.send('getShouldShowApps'); this should probably be a part of onLoad ...
7 years, 11 months ago (2013-01-23 23:34:23 UTC) #4
jeremya
Moved the pref into app_launcher. https://codereview.chromium.org/11953021/diff/6001/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): https://codereview.chromium.org/11953021/diff/6001/chrome/browser/resources/ntp4/new_tab.js#newcode658 chrome/browser/resources/ntp4/new_tab.js:658: chrome.send('getShouldShowApps'); On 2013/01/23 23:34:24, ...
7 years, 11 months ago (2013-01-24 02:40:04 UTC) #5
Evan Stade
https://codereview.chromium.org/11953021/diff/6001/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): https://codereview.chromium.org/11953021/diff/6001/chrome/browser/resources/ntp4/new_tab.js#newcode658 chrome/browser/resources/ntp4/new_tab.js:658: chrome.send('getShouldShowApps'); On 2013/01/24 02:40:04, jeremya wrote: > On 2013/01/23 ...
7 years, 11 months ago (2013-01-24 18:40:16 UTC) #6
jeremya
https://codereview.chromium.org/11953021/diff/6001/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): https://codereview.chromium.org/11953021/diff/6001/chrome/browser/resources/ntp4/new_tab.js#newcode658 chrome/browser/resources/ntp4/new_tab.js:658: chrome.send('getShouldShowApps'); On 2013/01/24 18:40:16, Evan Stade wrote: > On ...
7 years, 11 months ago (2013-01-25 00:06:19 UTC) #7
Evan Stade
lgtm https://codereview.chromium.org/11953021/diff/10003/chrome/browser/ui/webui/ntp/new_tab_page_handler.cc File chrome/browser/ui/webui/ntp/new_tab_page_handler.cc (right): https://codereview.chromium.org/11953021/diff/10003/chrome/browser/ui/webui/ntp/new_tab_page_handler.cc#newcode184 chrome/browser/ui/webui/ntp/new_tab_page_handler.cc:184: ^H https://codereview.chromium.org/11953021/diff/10003/chrome/browser/ui/webui/ntp/new_tab_ui.cc File chrome/browser/ui/webui/ntp/new_tab_ui.cc (left): https://codereview.chromium.org/11953021/diff/10003/chrome/browser/ui/webui/ntp/new_tab_ui.cc#oldcode121 chrome/browser/ui/webui/ntp/new_tab_ui.cc:121: if ...
7 years, 11 months ago (2013-01-25 00:11:02 UTC) #8
Bernhard Bauer
lgtm
7 years, 11 months ago (2013-01-25 00:18:13 UTC) #9
jeremya
https://codereview.chromium.org/11953021/diff/10003/chrome/browser/ui/webui/ntp/new_tab_ui.cc File chrome/browser/ui/webui/ntp/new_tab_ui.cc (left): https://codereview.chromium.org/11953021/diff/10003/chrome/browser/ui/webui/ntp/new_tab_ui.cc#oldcode121 chrome/browser/ui/webui/ntp/new_tab_ui.cc:121: if (ShouldShowApps()) { On 2013/01/25 00:11:02, Evan Stade wrote: ...
7 years, 11 months ago (2013-01-25 00:20:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/11953021/14003
7 years, 11 months ago (2013-01-25 00:22:38 UTC) #11
commit-bot: I haz the power
Failed to trigger a try job on linux_aura HTTP Error 400: Bad Request
7 years, 11 months ago (2013-01-25 00:40:24 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/11953021/13003
7 years, 11 months ago (2013-01-25 00:40:57 UTC) #13
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=92721
7 years, 11 months ago (2013-01-25 01:30:32 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/11953021/2034
7 years, 11 months ago (2013-01-25 02:20:36 UTC) #15
commit-bot: I haz the power
Failed to trigger a try job on mac_rel HTTP Error 400: Bad Request
7 years, 11 months ago (2013-01-25 02:47:30 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/11953021/6007
7 years, 11 months ago (2013-01-25 02:47:34 UTC) #17
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=92819
7 years, 11 months ago (2013-01-25 03:35:59 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/11953021/14022
7 years, 11 months ago (2013-01-25 04:45:35 UTC) #19
commit-bot: I haz the power
Change committed as 178769
7 years, 11 months ago (2013-01-25 06:54:14 UTC) #20
jeremya
7 years, 11 months ago (2013-01-27 07:39:56 UTC) #21
Message was sent while issue was closed.
I think this failed intermittently because sometimes gotShouldShowApps would be
fired before the loadTimeData structure was filled in. I've changed the code to
only fire getShouldShowApps once onLoad is called, fingers crossed that's the
issue (I couldn't get the failure to reproduce locally.)

Powered by Google App Engine
This is Rietveld 408576698