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

Unified Diff: components/constrained_window/constrained_window_views.cc

Issue 2469853003: Revert of Use a standard message box for DesktopCastingWarningView. (Closed)
Patch Set: Created 4 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/simple_message_box_views.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/constrained_window/constrained_window_views.cc
diff --git a/components/constrained_window/constrained_window_views.cc b/components/constrained_window/constrained_window_views.cc
index 1568c72dde694ea6257cbdc271024b2cfc5a567e..ccdfdd1606700fa05b4f4d4cfdd5ab52e98489c2 100644
--- a/components/constrained_window/constrained_window_views.cc
+++ b/components/constrained_window/constrained_window_views.cc
@@ -28,7 +28,7 @@
namespace constrained_window {
namespace {
-ConstrainedWindowViewsClient* constrained_window_views_client = nullptr;
+ConstrainedWindowViewsClient* constrained_window_views_client = NULL;
// The name of a key to store on the window handle to associate
// WidgetModalDialogHostObserverViews with the Widget.
@@ -56,7 +56,7 @@
if (host_)
host_->RemoveObserver(this);
target_widget_->RemoveObserver(this);
- target_widget_->SetNativeWindowProperty(native_window_property_, nullptr);
+ target_widget_->SetNativeWindowProperty(native_window_property_, NULL);
}
// WidgetObserver overrides
@@ -69,7 +69,7 @@
void OnHostDestroying() override {
host_->RemoveObserver(this);
- host_ = nullptr;
+ host_ = NULL;
}
private:
@@ -200,13 +200,13 @@
gfx::NativeWindow parent) {
DCHECK_NE(ui::MODAL_TYPE_CHILD, dialog->GetModalType());
DCHECK_NE(ui::MODAL_TYPE_NONE, dialog->GetModalType());
- DCHECK(!parent || constrained_window_views_client);
-
+
+ DCHECK(constrained_window_views_client);
gfx::NativeView parent_view =
parent ? constrained_window_views_client->GetDialogHostView(parent)
: nullptr;
views::Widget* widget =
- views::DialogDelegate::CreateDialogWidget(dialog, nullptr, parent_view);
+ views::DialogDelegate::CreateDialogWidget(dialog, NULL, parent_view);
bool requires_positioning = dialog->ShouldUseCustomFrame();
@@ -219,9 +219,8 @@
if (!requires_positioning)
return widget;
- ModalDialogHost* host =
- parent ? constrained_window_views_client->GetModalDialogHost(parent)
- : nullptr;
+ ModalDialogHost* host = constrained_window_views_client->
+ GetModalDialogHost(parent);
if (host) {
DCHECK_EQ(parent_view, host->GetHostView());
ModalDialogHostObserver* dialog_host_observer =
« no previous file with comments | « chrome/browser/ui/views/simple_message_box_views.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698