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

Unified Diff: chrome/browser/ui/webui/html_dialog_tab_contents_delegate.cc

Issue 6881073: Cleanup popup related browser navigation code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and merge with avi's popup block changes. Created 9 years, 8 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: chrome/browser/ui/webui/html_dialog_tab_contents_delegate.cc
diff --git a/chrome/browser/ui/webui/html_dialog_tab_contents_delegate.cc b/chrome/browser/ui/webui/html_dialog_tab_contents_delegate.cc
index 88239cb082568013e51507fce34cef1b33075d06..45fff806b0cd8898ad1ddf61d4da94534edf1b60 100644
--- a/chrome/browser/ui/webui/html_dialog_tab_contents_delegate.cc
+++ b/chrome/browser/ui/webui/html_dialog_tab_contents_delegate.cc
@@ -44,6 +44,7 @@ void HtmlDialogTabContentsDelegate::OpenURLFromTab(
else
params.disposition = disposition;
params.window_action = browser::NavigateParams::SHOW_WINDOW;
+ params.user_gesture = true;
browser::Navigate(&params);
}
}
@@ -71,6 +72,7 @@ void HtmlDialogTabContentsDelegate::AddNewContents(
params.disposition = disposition;
params.window_bounds = initial_pos;
params.window_action = browser::NavigateParams::SHOW_WINDOW;
+ params.user_gesture = true;
browser::Navigate(&params);
}
}

Powered by Google App Engine
This is Rietveld 408576698