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

Unified Diff: chrome/browser/chromeos/power/idle_action_warning_dialog_view.cc

Issue 16032008: Remove the idle action warning dialog extra border. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove debugging code. Created 7 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/power/idle_action_warning_dialog_view.cc
diff --git a/chrome/browser/chromeos/power/idle_action_warning_dialog_view.cc b/chrome/browser/chromeos/power/idle_action_warning_dialog_view.cc
index 2c221741e20727d2f148f0779a494eab058d40b5..b1fa93e5dcb7a61bd8806f3b0f3494901f09027d 100644
--- a/chrome/browser/chromeos/power/idle_action_warning_dialog_view.cc
+++ b/chrome/browser/chromeos/power/idle_action_warning_dialog_view.cc
@@ -69,9 +69,8 @@ IdleActionWarningDialogView::IdleActionWarningDialogView() : closing_(false) {
AddChildView(content);
SetLayoutManager(new views::FillLayout());
- views::Widget::CreateWindowWithContext(this,
- ash::Shell::GetPrimaryRootWindow());
- GetWidget()->Show();
+ views::DialogDelegate::CreateDialogWidget(
+ this, ash::Shell::GetPrimaryRootWindow(), NULL)->Show();
}
void IdleActionWarningDialogView::Close() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698