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

Unified Diff: chrome/browser/chromeos/login/lock/webui_screen_locker.cc

Issue 2583593003: cros: Various fixes needed for preloading lock screen. (Closed)
Patch Set: Created 4 years 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 | chrome/browser/chromeos/login/ui/shared_web_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/lock/webui_screen_locker.cc
diff --git a/chrome/browser/chromeos/login/lock/webui_screen_locker.cc b/chrome/browser/chromeos/login/lock/webui_screen_locker.cc
index df0ef9d180da68b7e90a6553d7f2fce0bf1d91f5..cf9824bda8468b709cab8da80d17efd852ff3c43 100644
--- a/chrome/browser/chromeos/login/lock/webui_screen_locker.cc
+++ b/chrome/browser/chromeos/login/lock/webui_screen_locker.cc
@@ -106,7 +106,8 @@ void WebUIScreenLocker::Preload() {
SharedWebViewFactory::GetForProfile(ProfileHelper::GetSigninProfile());
scoped_refptr<WebViewHandle> web_view_handle;
- if (!shared_web_view->Get(GURL(kLoginURL), &web_view_handle)) {
+ if (!shared_web_view->has_web_view() &&
+ !shared_web_view->Get(GURL(kLoginURL), &web_view_handle)) {
web_view_handle->web_view()->LoadInitialURL(GURL(kLoginURL));
InitializeWebView(
web_view_handle->web_view(),
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/ui/shared_web_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698