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

Unified Diff: chrome/browser/ui/views/external_tab_container_win.cc

Issue 11644059: Change infobar creation to use a public static Create() method on the infobar delegate classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/views/external_tab_container_win.cc
===================================================================
--- chrome/browser/ui/views/external_tab_container_win.cc (revision 175396)
+++ chrome/browser/ui/views/external_tab_container_win.cc (working copy)
@@ -25,6 +25,7 @@
#include "chrome/browser/file_select_helper.h"
#include "chrome/browser/history/history_tab_helper.h"
#include "chrome/browser/history/history_types.h"
+#include "chrome/browser/intents/register_intent_handler_infobar_delegate.h"
#include "chrome/browser/pepper_broker_infobar_delegate.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/repost_form_warning_controller.h"
@@ -34,6 +35,7 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_tab_contents.h"
#include "chrome/browser/ui/browser_window.h"
+#include "chrome/browser/ui/media_stream_infobar_delegate.h"
#include "chrome/browser/ui/tab_modal_confirm_dialog.h"
#include "chrome/browser/ui/views/infobars/infobar_container_view.h"
#include "chrome/browser/ui/views/tab_contents/render_view_context_menu_win.h"
@@ -800,7 +802,7 @@
WebContents* tab,
const webkit_glue::WebIntentServiceData& data,
bool user_gesture) {
- Browser::RegisterIntentHandlerHelper(tab, data, user_gesture);
+ RegisterIntentHandlerInfoBarDelegate::Create(tab, data);
}
void ExternalTabContainerWin::WebIntentDispatch(
@@ -825,7 +827,7 @@
content::WebContents* web_contents,
const content::MediaStreamRequest& request,
const content::MediaResponseCallback& callback) {
- Browser::RequestMediaAccessPermissionHelper(web_contents, request, callback);
+ MediaStreamInfoBarDelegate::Create(web_contents, request, callback);
}
bool ExternalTabContainerWin::RequestPpapiBrokerPermission(
@@ -833,7 +835,7 @@
const GURL& url,
const FilePath& plugin_path,
const base::Callback<void(bool)>& callback) {
- PepperBrokerInfoBarDelegate::Show(web_contents, url, plugin_path, callback);
+ PepperBrokerInfoBarDelegate::Create(web_contents, url, plugin_path, callback);
return true;
}
« no previous file with comments | « chrome/browser/ui/views/collected_cookies_views.cc ('k') | chrome/browser/ui/website_settings/website_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698