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

Unified Diff: chrome/browser/chromeos/login/ui/shared_web_view.h

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
Index: chrome/browser/chromeos/login/ui/shared_web_view.h
diff --git a/chrome/browser/chromeos/login/ui/shared_web_view.h b/chrome/browser/chromeos/login/ui/shared_web_view.h
index abe936f872deac7e161517c56717eab5b16a174c..39300becf0324ef8ed873b4cfe6e78866478086b 100644
--- a/chrome/browser/chromeos/login/ui/shared_web_view.h
+++ b/chrome/browser/chromeos/login/ui/shared_web_view.h
@@ -37,6 +37,9 @@ class SharedWebView : public KeyedService,
// was freshly created.
bool Get(const GURL& url, scoped_refptr<WebViewHandle>* out_handle);
+ // Returns true if there is an attached views::WebView instance.
+ bool has_web_view() const { return !!web_view_handle_; }
+
private:
// content::NotificationObserver:
void Observe(int type,
« no previous file with comments | « chrome/browser/chromeos/login/lock/webui_screen_locker.cc ('k') | chrome/browser/chromeos/login/ui/shared_web_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698