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

Unified Diff: chrome/browser/ui/webui/repost_form_warning_ui.cc

Issue 7867007: content: Resubmit "Move constrained html windows to TabContentsWrapper." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « chrome/browser/ui/webui/constrained_html_ui_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/repost_form_warning_ui.cc
diff --git a/chrome/browser/ui/webui/repost_form_warning_ui.cc b/chrome/browser/ui/webui/repost_form_warning_ui.cc
index 2b94d652343f55d9d92255c12e97f6eb4a1f9f83..9244b58cd27466584c309c60c2b19c20a775ea49 100644
--- a/chrome/browser/ui/webui/repost_form_warning_ui.cc
+++ b/chrome/browser/ui/webui/repost_form_warning_ui.cc
@@ -13,6 +13,7 @@
#include "base/values.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/repost_form_warning_controller.h"
+#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
#include "chrome/browser/ui/webui/constrained_html_ui.h"
#include "chrome/browser/ui/webui/html_dialog_ui.h"
@@ -140,13 +141,13 @@ class RepostFormWarningHtmlDelegate : public HtmlDialogUIDelegate {
RepostFormWarningUI::RepostFormWarningUI(gfx::NativeWindow parent_window,
TabContents* tab_contents)
: controller_(new RepostFormWarningController(tab_contents)) {
- Profile* profile =
- Profile::FromBrowserContext(tab_contents->browser_context());
+ TabContentsWrapper* wrapper =
+ TabContentsWrapper::GetCurrentWrapperForContents(tab_contents);
+ Profile* profile = wrapper->profile();
RepostFormWarningSource::RegisterDataSource(profile);
RepostFormWarningHtmlDelegate* delegate =
new RepostFormWarningHtmlDelegate(this);
- ConstrainedHtmlUI::CreateConstrainedHtmlDialog(
- profile, delegate, tab_contents);
+ ConstrainedHtmlUI::CreateConstrainedHtmlDialog(profile, delegate, wrapper);
}
RepostFormWarningUI::~RepostFormWarningUI() {}
« no previous file with comments | « chrome/browser/ui/webui/constrained_html_ui_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698