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

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

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
Index: content/public/browser/navigation_controller.h
diff --git a/content/public/browser/navigation_controller.h b/content/public/browser/navigation_controller.h
index 9faceb48c870acee1796d45aff5e97240db97ce2..c0c18994ad652ca1859c92e10c2cd5d33a5bbf13 100644
--- a/content/public/browser/navigation_controller.h
+++ b/content/public/browser/navigation_controller.h
@@ -177,6 +177,17 @@ class NavigationController {
// navigated. This is currently only used in tests.
std::string frame_name;
+#if defined(OS_ANDROID)
+ // On Android, for a load triggered by an intent, the time Chrome received
+ // the original intent that prompted the load (in milliseconds active time
+ // since boot).
+ int64 intent_received_timestamp;
+
+ // When Chrome launches the intent chooser, user can select Chrome itself to
+ // open the intent. In this case, we should carry over the user gesture.
+ bool has_user_gesture;
+#endif
+
// Indicates that during this navigation, the session history should be
// cleared such that the resulting page is the first and only entry of the
// session history.
@@ -185,13 +196,6 @@ class NavigationController {
// commits.
bool should_clear_history_list;
-#if defined(OS_ANDROID)
- // On Android, for a load triggered by an intent, the time Chrome received
- // the original intent that prompted the load (in milliseconds active time
- // since boot).
- int64 intent_received_timestamp;
-#endif
-
explicit LoadURLParams(const GURL& url);
~LoadURLParams();

Powered by Google App Engine
This is Rietveld 408576698