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

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

Issue 8479042: UI polish for certificate viewer (Closed) Base URL: /usr/local/google/home/bshe/NoTouchChromium/../TouchChromium/src/@trunk
Patch Set: Edit comments. Created 9 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/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/js_modal_dialog_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/html_dialog_view.cc
diff --git a/chrome/browser/ui/views/html_dialog_view.cc b/chrome/browser/ui/views/html_dialog_view.cc
index e6995c209fcc8041b13f3be841a3950e3c697c1b..168f47febd860f93d96790604b992021f911af4c 100644
--- a/chrome/browser/ui/views/html_dialog_view.cc
+++ b/chrome/browser/ui/views/html_dialog_view.cc
@@ -31,13 +31,14 @@ namespace browser {
// Declared in browser_dialogs.h so that others don't need to depend on our .h.
gfx::NativeWindow ShowHtmlDialog(gfx::NativeWindow parent,
Profile* profile,
- HtmlDialogUIDelegate* delegate) {
+ HtmlDialogUIDelegate* delegate,
+ DialogStyle style) {
// It's not always safe to display an html dialog with an off the record
// profile. If the last browser with that profile is closed it will go
// away.
DCHECK(!profile->IsOffTheRecord() || delegate->IsDialogModal());
HtmlDialogView* html_view = new HtmlDialogView(profile, delegate);
- browser::CreateViewsWindow(parent, html_view);
+ browser::CreateViewsWindow(parent, html_view, style);
html_view->InitDialog();
html_view->GetWidget()->Show();
return html_view->GetWidget()->GetNativeWindow();
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/js_modal_dialog_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698