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

Unified Diff: chrome/browser/plugins/flash_download_interception_unittest.cc

Issue 2499313003: Set user_gesture bit at NavigationHandle creation time. (Closed)
Patch Set: rebase Created 4 years 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: chrome/browser/plugins/flash_download_interception_unittest.cc
diff --git a/chrome/browser/plugins/flash_download_interception_unittest.cc b/chrome/browser/plugins/flash_download_interception_unittest.cc
index ff89e7c145681ee2a4314d6c556c1e93952d76ad..2db60902a89e8a22d944cb1d59b372519cb01540 100644
--- a/chrome/browser/plugins/flash_download_interception_unittest.cc
+++ b/chrome/browser/plugins/flash_download_interception_unittest.cc
@@ -88,9 +88,10 @@ TEST_F(FlashDownloadInterceptionTest, NavigationThrottleCancelsNavigation) {
std::unique_ptr<NavigationHandle> handle =
NavigationHandle::CreateNavigationHandleForTesting(
- GURL("https://get.adobe.com/flashplayer"), main_rfh());
+ GURL("https://get.adobe.com/flashplayer"), main_rfh(),
+ false /* committed */, net::OK, true /* has_user_gesture */);
- handle->CallWillStartRequestForTesting(true, content::Referrer(), true,
+ handle->CallWillStartRequestForTesting(true, content::Referrer(),
ui::PAGE_TRANSITION_LINK, false);
std::unique_ptr<NavigationThrottle> throttle =
FlashDownloadInterception::MaybeCreateThrottleFor(handle.get());

Powered by Google App Engine
This is Rietveld 408576698