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

Unified Diff: content/browser/frame_host/navigator_impl.cc

Issue 2084953003: Fix clicks on NTP tiles not contributing to Most Visited tiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index c63d436dd916555d18149a188b5df67d3b9ca79c..83ee5e9bcc802598c84a37afb0e1f1b9fd4d28a9 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -720,6 +720,14 @@ void NavigatorImpl::RequestOpenURL(
// Navigations in Web UI pages count as browser-initiated navigations.
params.is_renderer_initiated = false;
+ } else if (source_site_instance &&
+ source_site_instance->GetSiteURL().spec() ==
+ "chrome-search://remote-ntp/" &&
Marc Treib 2016/06/22 12:36:34 Oh man, we have too many NTP URLs. I didn't even k
+ ui::PageTransitionCoreTypeIs(params.transition,
+ ui::PAGE_TRANSITION_LINK)) {
+ // Make any click on the new tab page a AUTO_BOOKMARK, consistently with
+ // native implementations like Android's.
+ params.transition = ui::PAGE_TRANSITION_AUTO_BOOKMARK;
}
if (delegate_)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698