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

Unified Diff: content/public/browser/navigation_controller.cc

Issue 1243253004: Pass user gesture bit when chrome handles an intent fired by itself (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix findbugs warning Created 5 years, 4 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 | « content/public/browser/navigation_controller.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/navigation_controller.cc
diff --git a/content/public/browser/navigation_controller.cc b/content/public/browser/navigation_controller.cc
index 23b32d991fbdfa2f619a93b29a1a1d65b8f94684..6287fe5ab9492d52af3324a97173a798bcde787a 100644
--- a/content/public/browser/navigation_controller.cc
+++ b/content/public/browser/navigation_controller.cc
@@ -18,10 +18,11 @@ NavigationController::LoadURLParams::LoadURLParams(const GURL& url)
browser_initiated_post_data(nullptr),
can_load_local_resources(false),
should_replace_current_entry(false),
- should_clear_history_list(false) {
#if defined(OS_ANDROID)
- intent_received_timestamp = 0;
+ intent_received_timestamp(0),
+ has_user_gesture(false),
#endif
+ should_clear_history_list(false) {
}
NavigationController::LoadURLParams::~LoadURLParams() {
@@ -42,10 +43,11 @@ NavigationController::LoadURLParams::LoadURLParams(
virtual_url_for_data_url(other.virtual_url_for_data_url),
browser_initiated_post_data(other.browser_initiated_post_data),
should_replace_current_entry(false),
- should_clear_history_list(false) {
#if defined(OS_ANDROID)
- intent_received_timestamp = other.intent_received_timestamp;
+ intent_received_timestamp(other.intent_received_timestamp),
+ has_user_gesture(other.has_user_gesture),
#endif
+ should_clear_history_list(false) {
}
NavigationController::LoadURLParams&
@@ -68,6 +70,7 @@ NavigationController::LoadURLParams::operator=(
should_clear_history_list = other.should_clear_history_list;
#if defined(OS_ANDROID)
intent_received_timestamp = other.intent_received_timestamp;
+ has_user_gesture = other.has_user_gesture;
#endif
return *this;
« no previous file with comments | « content/public/browser/navigation_controller.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698