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

Issue 178253008: Redoing Issue 36073011: Allowing file:/// in Instant Extended's Most Visited links. (Closed)

Created:
6 years, 10 months ago by huangs
Modified:
5 years, 3 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, arv+watch_chromium.org, samarth+watch_chromium.org, chromium-apps-reviews_chromium.org, kmadhusu+watch_chromium.org, Jered
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257389

Patch Set 1 : Simply Redo CL 36073011, adjusted to code changes. #

Patch Set 2 : Adding and using logNavigation(); updating tests; removing ping and the log.html page. #

Total comments: 9

Patch Set 3 : Comment fixes; more symmetry to logImpression() and logNavigation(). #

Total comments: 2

Patch Set 4 : Renaming logImpression and logNavigation to logMostVisited*. #

Patch Set 5 : Trying to fix Linux compile error involving string16() conversion. #

Patch Set 6 : Another attempt to fix string16() conversion in test. #

Patch Set 7 : Sync. #

Patch Set 8 : Remove unused consts. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+468 lines, -263 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/local_ntp/local_ntp.js View 4 chunks +5 lines, -25 lines 0 comments Download
M chrome/browser/resources/local_ntp/most_visited_thumbnail.js View 1 2 3 5 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/resources/local_ntp/most_visited_title.js View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/local_ntp/most_visited_util.js View 1 2 3 4 5 6 6 chunks +19 lines, -20 lines 0 comments Download
A chrome/browser/resources/local_ntp/window_disposition_util.js View 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/browser/search/most_visited_iframe_source.h View 1 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/search/most_visited_iframe_source.cc View 1 2 3 4 5 6 7 3 chunks +1 line, -43 lines 0 comments Download
M chrome/browser/search/most_visited_iframe_source_unittest.cc View 1 1 chunk +0 lines, -79 lines 1 comment Download
M chrome/browser/ui/search/search_ipc_router.h View 1 2 3 2 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/ui/search/search_ipc_router.cc View 1 2 3 3 chunks +38 lines, -14 lines 0 comments Download
M chrome/browser/ui/search/search_ipc_router_unittest.cc View 1 2 3 2 chunks +27 lines, -5 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 1 2 3 1 chunk +9 lines, -3 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper_unittest.cc View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_user_data_logger.h View 1 2 3 3 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc View 1 2 3 4 chunks +78 lines, -12 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_user_data_logger_unittest.cc View 1 2 3 4 5 5 chunks +72 lines, -15 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 1 chunk +8 lines, -1 line 0 comments Download
M chrome/renderer/resources/extensions/searchbox_api.js View 1 2 3 3 chunks +23 lines, -3 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 1 chunk +10 lines, -2 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.cc View 1 2 3 9 chunks +68 lines, -11 lines 0 comments Download
M chrome/test/data/local_ntp_browsertest.html View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/local_ntp_browsertest.js View 1 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (0 generated)
huangs
Redoing the issue. First upload is CL 36073011 adapted to new codebase. Second upload is ...
6 years, 9 months ago (2014-03-04 20:00:03 UTC) #1
beaudoin
LGTM with some nits and one security question that maybe someone can answer better than ...
6 years, 9 months ago (2014-03-04 21:33:15 UTC) #2
huangs
Updated. https://codereview.chromium.org/178253008/diff/20001/chrome/browser/ui/search/search_ipc_router.cc File chrome/browser/ui/search/search_ipc_router.cc (right): https://codereview.chromium.org/178253008/diff/20001/chrome/browser/ui/search/search_ipc_router.cc#newcode14 chrome/browser/ui/search/search_ipc_router.cc:14: // Only allow string of 8 alphanumeric characters ...
6 years, 9 months ago (2014-03-04 22:10:43 UTC) #3
huangs
OWNER review for samarth@ for: chrome\browser\resources\local_ntp\* chrome\browser\search\* chrome\browser\ui\search\* chrome\renderer\resources\extensions\searchbox_api.js chrome\renderer\searchbox\* PTAL.
6 years, 9 months ago (2014-03-06 20:47:16 UTC) #4
samarth
Overall looks good, thanks for doing this! https://codereview.chromium.org/178253008/diff/40001/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://codereview.chromium.org/178253008/diff/40001/chrome/renderer/searchbox/searchbox.cc#newcode170 chrome/renderer/searchbox/searchbox.cc:170: void SearchBox::LogNavigation(int ...
6 years, 9 months ago (2014-03-06 21:01:21 UTC) #5
huangs
I chose "Navigation" over "Click" because we the routine should also handle keyboard (right-click, escape, ...
6 years, 9 months ago (2014-03-06 21:35:02 UTC) #6
huangs
Updated, PTAL.
6 years, 9 months ago (2014-03-07 00:32:49 UTC) #7
huangs
https://chromiumcodereview.appspot.com/178253008/diff/40001/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://chromiumcodereview.appspot.com/178253008/diff/40001/chrome/renderer/searchbox/searchbox.cc#newcode170 chrome/renderer/searchbox/searchbox.cc:170: void SearchBox::LogNavigation(int position, const base::string16& provider) { Done, but ...
6 years, 9 months ago (2014-03-07 00:33:40 UTC) #8
samarth
lgtm No you're right: LogMostVisitedNavigation is better. Thanks! Samarth
6 years, 9 months ago (2014-03-07 03:22:53 UTC) #9
huangs
OWNER review to: jhawkins@ for: chrome\browser\browser_resources.grd chrome\browser\resources\local_ntp\* chrome\browser\search\most_visited_iframe_source*.* chrome\browser\ui\search\* chrome\browser\ui\webui\ntp\ntp_user_data_logger*.* chrome\renderer\resources\extensions\searchbox_api.js chrome\renderer\searchbox\* dcheng@ for: chrome\common\render_messages.h ...
6 years, 9 months ago (2014-03-07 03:59:52 UTC) #10
James Hawkins
Can those 3 pieces of this CL be landed separately? This CL is really large.
6 years, 9 months ago (2014-03-07 22:11:32 UTC) #11
huangs
This is an "end-to-end plumbing" CL with: - JS frontend, - Routines passing data, with ...
6 years, 9 months ago (2014-03-07 22:33:40 UTC) #12
huangs
Ping samarth@ and dcheng@.
6 years, 9 months ago (2014-03-12 15:06:27 UTC) #13
huangs
Ping jhawkins@. OWNER review to tsepez@ for chrome\common\render_messages.h
6 years, 9 months ago (2014-03-14 17:51:26 UTC) #14
James Hawkins
On 2014/03/07 03:59:52, huangs1 wrote: > OWNER review to: > > jhawkins@ for: > chrome\browser\browser_resources.grd ...
6 years, 9 months ago (2014-03-14 17:53:51 UTC) #15
huangs
Oh sorry. Was following "git cl owners", but should double check!
6 years, 9 months ago (2014-03-14 17:59:13 UTC) #16
huangs
Ping thakis@ for OWNER review.
6 years, 9 months ago (2014-03-14 18:06:28 UTC) #17
Tom Sepez
Messages LGTM.
6 years, 9 months ago (2014-03-14 18:13:01 UTC) #18
Nico
On 2014/03/14 18:06:28, huangs1 wrote: > Ping thakis@ for OWNER review. Which files? Everything?
6 years, 9 months ago (2014-03-14 18:27:14 UTC) #19
huangs
Specifically: chrome\browser\browser_resources.grd chrome\browser\resources\local_ntp\* chrome\browser\search\* chrome\browser\ui\search\* chrome\browser\ui\webui\ntp\* chrome\renderer\resources\extensions\searchbox_api.js chrome\renderer\searchbox\*
6 years, 9 months ago (2014-03-14 20:17:25 UTC) #20
Nico
lgtm
6 years, 9 months ago (2014-03-14 22:14:52 UTC) #21
huangs
The CQ bit was checked by huangs@chromium.org
6 years, 9 months ago (2014-03-15 00:05:25 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/178253008/100001
6 years, 9 months ago (2014-03-15 00:05:54 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-15 00:06:24 UTC) #24
commit-bot: I haz the power
Failed to apply patch for chrome/browser/resources/local_ntp/most_visited_util.js: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-15 00:06:25 UTC) #25
huangs
The CQ bit was checked by huangs@chromium.org
6 years, 9 months ago (2014-03-15 20:14:04 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/178253008/120001
6 years, 9 months ago (2014-03-15 20:14:10 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-15 20:45:41 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-15 20:45:42 UTC) #29
huangs
The CQ bit was checked by huangs@chromium.org
6 years, 9 months ago (2014-03-16 16:45:55 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/178253008/130026
6 years, 9 months ago (2014-03-16 16:46:05 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-16 18:09:17 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 9 months ago (2014-03-16 18:09:17 UTC) #33
huangs
The CQ bit was checked by huangs@chromium.org
6 years, 9 months ago (2014-03-16 18:36:01 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/178253008/130026
6 years, 9 months ago (2014-03-16 18:36:06 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-16 18:46:00 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 9 months ago (2014-03-16 18:46:01 UTC) #37
huangs
The CQ bit was checked by huangs@chromium.org
6 years, 9 months ago (2014-03-16 20:41:34 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/178253008/130026
6 years, 9 months ago (2014-03-16 20:41:43 UTC) #39
huangs
The CQ bit was unchecked by huangs@chromium.org
6 years, 9 months ago (2014-03-17 05:15:11 UTC) #40
huangs
The CQ bit was checked by huangs@chromium.org
6 years, 9 months ago (2014-03-17 05:15:32 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/178253008/130026
6 years, 9 months ago (2014-03-17 05:15:42 UTC) #42
commit-bot: I haz the power
Change committed as 257389
6 years, 9 months ago (2014-03-17 06:48:20 UTC) #43
Lei Zhang
5 years, 3 months ago (2015-09-24 02:07:14 UTC) #44
Message was sent while issue was closed.
https://codereview.chromium.org/178253008/diff/130026/chrome/browser/search/m...
File chrome/browser/search/most_visited_iframe_source_unittest.cc (left):

https://codereview.chromium.org/178253008/diff/130026/chrome/browser/search/m...
chrome/browser/search/most_visited_iframe_source_unittest.cc:12: class
MostVisitedIframeSourceTest : public testing::Test {
BTW, you removed all the tests, but not the test class. (I'm removing this now)

Powered by Google App Engine
This is Rietveld 408576698