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

Unified Diff: chrome/browser/ui/webui/chromeos/mobile_setup_dialog.cc

Issue 1610823003: Migrate call sites LoginDisplayHostImpl::default_host to LoginDisplayHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-add-supervised-user
Patch Set: Created 4 years, 11 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
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();
}

Powered by Google App Engine
This is Rietveld 408576698