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

Issue 11038014: [Android] Upstream remaining changes to NTP UI code. (Closed)

Created:
8 years, 2 months ago by newt (away)
Modified:
8 years, 2 months ago
Reviewers:
brettw, sky, nilesh, Evan Stade
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org
Visibility:
Public.

Description

[Android] Upstream remaining changes to NTP UI code. This disables the NTP suggestions subpage on Android, adds an NTP-ready handler on Android, removes the catch-all NTP handler on Android, and adds a JS hook to clear the recently closed tabs list. BUG=137011 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=160894

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : extracted EnsureTabRestoreService, added comments #

Total comments: 2

Patch Set 4 : fixed indentation nit #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -38 lines) Patch
M chrome/browser/browser_resources.grd View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 2 chunks +1 line, -1 line 0 comments Download
A chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.h View 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc View 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/most_visited_handler.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 1 7 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache_android.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.cc View 1 2 3 5 chunks +35 lines, -22 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 3 chunks +17 lines, -4 lines 0 comments Download
M chrome/common/chrome_notification_types.h View 1 1 chunk +11 lines, -0 lines 3 comments Download

Messages

Total messages: 13 (0 generated)
newt (away)
PTAL. Thank you! http://codereview.chromium.org/11038014/diff/1011/chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.cc File chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.cc (right): http://codereview.chromium.org/11038014/diff/1011/chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.cc#newcode118 chrome/browser/ui/webui/ntp/recently_closed_tabs_handler.cc:118: if (tab_restore_service_) Not totally sure about ...
8 years, 2 months ago (2012-10-02 13:07:31 UTC) #1
Evan Stade
mostly lg http://codereview.chromium.org/11038014/diff/1011/chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc File chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc (right): http://codereview.chromium.org/11038014/diff/1011/chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc#newcode24 chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc:24: web_ui()->RegisterMessageCallback("NTPUnexpectedNavigation", base::Bind( why does this exist? just ...
8 years, 2 months ago (2012-10-02 14:42:43 UTC) #2
newt (away)
Comments addressed. PTAL. http://codereview.chromium.org/11038014/diff/1011/chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc File chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc (right): http://codereview.chromium.org/11038014/diff/1011/chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc#newcode24 chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc:24: web_ui()->RegisterMessageCallback("NTPUnexpectedNavigation", base::Bind( Yes, it's for tests. ...
8 years, 2 months ago (2012-10-05 13:31:05 UTC) #3
Evan Stade
lgtm http://codereview.chromium.org/11038014/diff/1011/chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc File chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc (right): http://codereview.chromium.org/11038014/diff/1011/chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc#newcode24 chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc:24: web_ui()->RegisterMessageCallback("NTPUnexpectedNavigation", base::Bind( On 2012/10/05 13:31:05, newt wrote: > ...
8 years, 2 months ago (2012-10-05 15:16:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/newt@chromium.org/11038014/1012
8 years, 2 months ago (2012-10-05 15:25:45 UTC) #5
commit-bot: I haz the power
Presubmit check for 11038014-1012 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-05 15:25:51 UTC) #6
newt (away)
+brettw for chrome/chrome_browser_ui.gypi chrome/browser/browser_resources.grd chrome/common/chrome_notification_types.h http://codereview.chromium.org/11038014/diff/1011/chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc File chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc (right): http://codereview.chromium.org/11038014/diff/1011/chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc#newcode24 chrome/browser/ui/webui/ntp/android/new_tab_page_ready_handler.cc:24: web_ui()->RegisterMessageCallback("NTPUnexpectedNavigation", base::Bind( On 2012/10/05 ...
8 years, 2 months ago (2012-10-05 15:38:33 UTC) #7
nilesh
Scott, Will you be able to help with the review? for chrome/chrome_browser_ui.gypi chrome/browser/browser_resources.grd chrome/common/chrome_notification_types.h
8 years, 2 months ago (2012-10-09 00:17:24 UTC) #8
sky
http://codereview.chromium.org/11038014/diff/1012/chrome/common/chrome_notification_types.h File chrome/common/chrome_notification_types.h (right): http://codereview.chromium.org/11038014/diff/1012/chrome/common/chrome_notification_types.h#newcode154 chrome/common/chrome_notification_types.h:154: #if defined(OS_ANDROID) Why is this android specific?
8 years, 2 months ago (2012-10-09 00:35:25 UTC) #9
newt (away)
http://codereview.chromium.org/11038014/diff/1012/chrome/common/chrome_notification_types.h File chrome/common/chrome_notification_types.h (right): http://codereview.chromium.org/11038014/diff/1012/chrome/common/chrome_notification_types.h#newcode154 chrome/common/chrome_notification_types.h:154: #if defined(OS_ANDROID) On 2012/10/09 00:35:25, sky wrote: > Why ...
8 years, 2 months ago (2012-10-09 09:49:26 UTC) #10
sky
LGTM http://codereview.chromium.org/11038014/diff/1012/chrome/common/chrome_notification_types.h File chrome/common/chrome_notification_types.h (right): http://codereview.chromium.org/11038014/diff/1012/chrome/common/chrome_notification_types.h#newcode154 chrome/common/chrome_notification_types.h:154: #if defined(OS_ANDROID) On 2012/10/09 09:49:27, newt wrote: > ...
8 years, 2 months ago (2012-10-09 15:59:13 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/newt@chromium.org/11038014/1012
8 years, 2 months ago (2012-10-09 17:19:58 UTC) #12
commit-bot: I haz the power
8 years, 2 months ago (2012-10-09 19:42:59 UTC) #13
Change committed as 160894

Powered by Google App Engine
This is Rietveld 408576698