Redoing Issue 36073011: Allowing file:/// in Instant Extended's Most Visited links.
commitabd6c4d1193f47459c819948694d024bb796314f
authorhuangs@chromium.org <huangs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 17 Mar 2014 06:48:17 +0000 (17 06:48 +0000)
committerhuangs@chromium.org <huangs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 17 Mar 2014 06:48:17 +0000 (17 06:48 +0000)
tree280f09175131f8287a4862dee0585261bcebce18
parentf80e22f7fd8692fac935e3ea4f832c7a5f48d4fb
Redoing Issue 36073011: Allowing file:/// in Instant Extended's Most Visited links.

The previous change was rolled back because it prevented the NTP ping, which was needed for UMA. 3 main parts of this CL are:

(1) Redo Issue 36073011, adjusted to code changes. This fixes the file:/// issue, and changes NTP outgoing page transition to AUTO_BOOKMARK (instead of LINK).
(2) Adding logNavigation(pos, provider), which is called on click.
(3) Deprecate ping and chrome://log.html pages.

Caveat: keyboard navigation is not properly handled, since it involves the NTP rather than the iframe.  This will be fixed in a follow-up CL.

For (1):
- Unlike Issue 36073011, we're not enabling LocalNTPTest.LocalNTPJavascriptTest, because recent cleanups causes more failure modes of this test.
- Using IDR_MOST_VISITED_WINDOW_DISPOSITION_UTIL_JS instead of IDR_CLICK_UTIL_JS.
- In local_ntp.js: init(): skipping change to the "recentTabsText" block, since it got deleted.

BUG=306137

Review URL: https://codereview.chromium.org/178253008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257389 0039d316-1c4b-4281-b951-d872f2087c98
25 files changed:
chrome/browser/browser_resources.grd
chrome/browser/resources/local_ntp/local_ntp.js
chrome/browser/resources/local_ntp/most_visited_thumbnail.js
chrome/browser/resources/local_ntp/most_visited_title.js
chrome/browser/resources/local_ntp/most_visited_util.js
chrome/browser/resources/local_ntp/window_disposition_util.js [new file with mode: 0644]
chrome/browser/search/most_visited_iframe_source.cc
chrome/browser/search/most_visited_iframe_source.h
chrome/browser/search/most_visited_iframe_source_unittest.cc
chrome/browser/ui/search/search_ipc_router.cc
chrome/browser/ui/search/search_ipc_router.h
chrome/browser/ui/search/search_ipc_router_unittest.cc
chrome/browser/ui/search/search_tab_helper.cc
chrome/browser/ui/search/search_tab_helper.h
chrome/browser/ui/search/search_tab_helper_unittest.cc
chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc
chrome/browser/ui/webui/ntp/ntp_user_data_logger.h
chrome/browser/ui/webui/ntp/ntp_user_data_logger_unittest.cc
chrome/common/render_messages.h
chrome/renderer/resources/extensions/searchbox_api.js
chrome/renderer/searchbox/searchbox.cc
chrome/renderer/searchbox/searchbox.h
chrome/renderer/searchbox/searchbox_extension.cc
chrome/test/data/local_ntp_browsertest.html
chrome/test/data/local_ntp_browsertest.js