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
diff --git a/chrome/browser/browser_resources.grd b/chrome/browser/browser_resources.grd
index d6af25b4..b0a23961 100644
--- a/chrome/browser/browser_resources.grd
+++ b/chrome/browser/browser_resources.grd
@@ -206,6 +206,7 @@
<include name="IDR_MOST_VISITED_THUMBNAIL_CSS" file="resources\local_ntp\most_visited_thumbnail.css" type="BINDATA" />
<include name="IDR_MOST_VISITED_THUMBNAIL_JS" file="resources\local_ntp\most_visited_thumbnail.js" type="BINDATA" />
<include name="IDR_MOST_VISITED_UTIL_JS" file="resources\local_ntp\most_visited_util.js" type="BINDATA" flattenhtml="true" />
+ <include name="IDR_MOST_VISITED_WINDOW_DISPOSITION_UTIL_JS" file="resources\local_ntp\window_disposition_util.js" type="BINDATA" />
<include name="IDR_OMNIBOX_HTML" file="resources\omnibox\omnibox.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" />
<include name="IDR_OMNIBOX_CSS" file="resources\omnibox\omnibox.css" type="BINDATA" />