Chromium Code Reviews| Index: chrome/browser/ui/webui/chromeos/mobile_setup_dialog.cc |
| diff --git a/chrome/browser/ui/webui/chromeos/mobile_setup_dialog.cc b/chrome/browser/ui/webui/chromeos/mobile_setup_dialog.cc |
| index a7b64f57503977d648b64188054c8d0159b6b5a4..5519d580130a800243c50c4024238dd84ac1ed01 100644 |
| --- a/chrome/browser/ui/webui/chromeos/mobile_setup_dialog.cc |
| +++ b/chrome/browser/ui/webui/chromeos/mobile_setup_dialog.cc |
| @@ -9,7 +9,7 @@ |
| #include "base/memory/singleton.h" |
| #include "base/strings/utf_string_conversions.h" |
| #include "chrome/browser/browser_shutdown.h" |
| -#include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" |
| +#include "chrome/browser/chromeos/login/ui/login_display_host.h" |
| #include "chrome/browser/chromeos/login/ui/webui_login_view.h" |
| #include "chrome/browser/chromeos/mobile/mobile_activator.h" |
| #include "chrome/browser/platform_util.h" |
| @@ -86,11 +86,9 @@ void MobileSetupDialogDelegate::ShowDialog(const std::string& service_path) { |
| gfx::NativeWindow parent = NULL; |
|
achuithb
2016/01/21 23:14:31
nullptr since you're here
jdufault
2016/01/22 21:14:11
Done.
|
| // If we're on the login screen. |
| - if (chromeos::LoginDisplayHostImpl::default_host()) { |
| - chromeos::LoginDisplayHostImpl* webui_host = |
| - static_cast<chromeos::LoginDisplayHostImpl*>( |
| - chromeos::LoginDisplayHostImpl::default_host()); |
| - chromeos::WebUILoginView* login_view = webui_host->GetWebUILoginView(); |
| + if (chromeos::LoginDisplayHost::default_host()) { |
| + chromeos::WebUILoginView* login_view = |
| + chromeos::LoginDisplayHost::default_host()->GetWebUILoginView(); |
| if (login_view) |
| parent = login_view->GetNativeWindow(); |
| } |