Commit 609dcc16 authored by msw@chromium.org's avatar msw@chromium.org

Remove the crypto module password dialog extra border.

CryptoModulePasswordDialogView uses Widget::CreateWindow. 
Use DialogDelegate::CreateDialogWidget instead. 
See before/after pics at http://crbug.com/166075#c107 
Trigger with debug code in Patch Set 1. 

BUG=166075
TEST=Crtypo module password dialog does not have an extra border. 
R=sky@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15673004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202913 0039d316-1c4b-4281-b951-d872f2087c98
parent 4f986527
...@@ -156,7 +156,7 @@ void ShowCryptoModulePasswordDialog( ...@@ -156,7 +156,7 @@ void ShowCryptoModulePasswordDialog(
const CryptoModulePasswordCallback& callback) { const CryptoModulePasswordCallback& callback) {
CryptoModulePasswordDialogView* dialog = CryptoModulePasswordDialogView* dialog =
new CryptoModulePasswordDialogView(slot_name, reason, server, callback); new CryptoModulePasswordDialogView(slot_name, reason, server, callback);
views::Widget::CreateWindow(dialog)->Show(); views::DialogDelegate::CreateDialogWidget(dialog, NULL, NULL)->Show();
} }
} // namespace chrome } // namespace chrome
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment