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

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

Issue 11358027: Move constrained web dialog code back to chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros fix2 Created 8 years, 1 month 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/tab_modal_confirm_dialog_webui.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.cc
diff --git a/chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.cc b/chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.cc
index b6845190d5a29a42386f4f2c7ac7136ade2c2304..fe50560a198bbe673f7ee2c7eedc3f8be9ef0146 100644
--- a/chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.cc
+++ b/chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.cc
@@ -19,6 +19,7 @@
#include "chrome/browser/ui/tab_modal_confirm_dialog_delegate.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
#include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
+#include "chrome/browser/ui/webui/constrained_web_dialog_ui.h"
#include "chrome/common/jstemplate_builder.h"
#include "chrome/common/url_constants.h"
#include "grit/browser_resources.h"
@@ -26,7 +27,6 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/size.h"
-#include "ui/web_dialogs/constrained_web_dialog_ui.h"
using content::WebContents;
using content::WebUIMessageHandler;
@@ -52,10 +52,10 @@ TabModalConfirmDialogWebUI::TabModalConfirmDialogWebUI(
ChromeURLDataManager::AddDataSource(profile, data_source);
constrained_web_dialog_delegate_ =
- ui::CreateConstrainedWebDialog(profile,
- this,
- NULL,
- tab_contents);
+ CreateConstrainedWebDialog(profile,
+ this,
+ NULL,
+ tab_contents->web_contents());
delegate_->set_window(constrained_web_dialog_delegate_->window());
}
« no previous file with comments | « chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698