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

Unified Diff: chrome/browser/sidebar/sidebar_container.cc

Issue 7096016: Remove JS dialog dependency from content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: now a tc delegate Created 9 years, 7 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/sidebar/sidebar_container.cc
diff --git a/chrome/browser/sidebar/sidebar_container.cc b/chrome/browser/sidebar/sidebar_container.cc
index d1e4a332b7a8d3c92c72392a11fe8a1e1624805b..4013537409aa23dd922e0fe1750e631cf3a0ac6c 100644
--- a/chrome/browser/sidebar/sidebar_container.cc
+++ b/chrome/browser/sidebar/sidebar_container.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_resource.h"
#include "chrome/common/extensions/extension_sidebar_defaults.h"
@@ -108,6 +109,11 @@ bool SidebarContainer::IsPopup(const TabContents* source) const {
return false;
}
+content::JavaScriptDialogCreator*
+SidebarContainer::GetJavaScriptDialogCreator() {
+ return GetJavaScriptDialogCreatorInstance();
+}
+
void SidebarContainer::OnImageLoaded(SkBitmap* image,
const ExtensionResource& resource,
int index) {

Powered by Google App Engine
This is Rietveld 408576698