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

Unified Diff: chrome/browser/ui/intents/web_intent_picker.cc

Issue 11035017: Mac Web Intents Part 15: Inline extension install prompt (model) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix merge Created 8 years, 2 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/intents/web_intent_picker.cc
diff --git a/chrome/browser/ui/intents/web_intent_picker.cc b/chrome/browser/ui/intents/web_intent_picker.cc
index 7d526e5c896c94cc2b03bc610d89935cf3f748f0..3a280e1fa12ddc019d0d03f26b73c149142885ee 100644
--- a/chrome/browser/ui/intents/web_intent_picker.cc
+++ b/chrome/browser/ui/intents/web_intent_picker.cc
@@ -7,6 +7,7 @@
#include <cmath>
#include "base/utf_string_conversions.h"
+#include "chrome/browser/extensions/extension_install_prompt.h"
#include "chrome/browser/intents/web_intents_util.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view.h"
@@ -23,6 +24,15 @@ const int kMaxInlineDispositionHeight = 900;
} // namespace
+void WebIntentPicker::OnShowExtensionInstallDialog(
+ gfx::NativeWindow parent,
+ content::PageNavigator* navigator,
+ ExtensionInstallPrompt::Delegate* delegate,
+ const ExtensionInstallPrompt::Prompt& prompt) {
+ ExtensionInstallPrompt::GetDefaultShowDialogCallback().Run(
+ parent, navigator, delegate, prompt);
+}
+
gfx::Size WebIntentPicker::GetMinInlineDispositionSize() {
return gfx::Size(1, 1);
}
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker.h ('k') | chrome/browser/ui/intents/web_intent_picker_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698