Index: chrome/browser/extensions/extension_install_prompt.cc |
diff --git a/chrome/browser/extensions/extension_install_prompt.cc b/chrome/browser/extensions/extension_install_prompt.cc |
index 9a90a37a8121499141040c9d8b9b96e33f35a7ee..ce874322f86f235114facded3c1d7dcb0a3a4f7f 100644 |
--- a/chrome/browser/extensions/extension_install_prompt.cc |
+++ b/chrome/browser/extensions/extension_install_prompt.cc |
@@ -407,6 +407,13 @@ bool ExtensionInstallPrompt::Prompt::ShouldShowPermissions() const { |
type_ == POST_INSTALL_PERMISSIONS_PROMPT; |
} |
+bool ExtensionInstallPrompt::Prompt::ShouldUseTabModalDialog() const { |
+ // For inline install, we want the install prompt to be tab modal so that the |
+ // dialog is always clearly associated with the page that made the inline |
+ // install request. |
+ return type_ == INLINE_INSTALL_PROMPT; |
+} |
+ |
void ExtensionInstallPrompt::Prompt::AppendRatingStars( |
StarAppender appender, void* data) const { |
CHECK(appender); |