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

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

Issue 2377833002: Block navigations in extensions via ShouldTransferNavigation (not via OpenURL). (Closed)
Patch Set: Add missing files under chrome/test/data/extensions/api_test/browser_action/popup_with_form/ Created 4 years, 3 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/browser/frame_host/navigator_delegate.cc
diff --git a/content/browser/frame_host/navigator_delegate.cc b/content/browser/frame_host/navigator_delegate.cc
index 0c812b73ff2c4d13fc36c84d1ad62d7d40478d0f..95deec6d903c13c54026ec47ba220d4ddf98adbc 100644
--- a/content/browser/frame_host/navigator_delegate.cc
+++ b/content/browser/frame_host/navigator_delegate.cc
@@ -10,7 +10,8 @@ bool NavigatorDelegate::CanOverscrollContent() const {
return false;
}
-bool NavigatorDelegate::ShouldTransferNavigation() {
+bool NavigatorDelegate::ShouldTransferNavigation(
+ bool is_main_frame_navigation) {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698