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

Unified Diff: chrome/browser/chromeos/login/ui/shared_web_view.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
Index: chrome/browser/chromeos/login/ui/shared_web_view.cc
diff --git a/chrome/browser/chromeos/login/ui/shared_web_view.cc b/chrome/browser/chromeos/login/ui/shared_web_view.cc
index e2d14be44d2a8b11aff8d0f440750196f84aa2e2..597c71fe58e081dbf55a7ca1e12dc44233781fc7 100644
--- a/chrome/browser/chromeos/login/ui/shared_web_view.cc
+++ b/chrome/browser/chromeos/login/ui/shared_web_view.cc
@@ -16,7 +16,7 @@
namespace chromeos {
SharedWebView::SharedWebView(Profile* profile) : profile_(profile) {
- registrar_.Add(this, chrome::NOTIFICATION_CLOSE_ALL_BROWSERS_REQUEST,
+ registrar_.Add(this, chrome::NOTIFICATION_APP_TERMINATING,
content::NotificationService::AllSources());
memory_pressure_listener_ = base::MakeUnique<base::MemoryPressureListener>(
base::Bind(&SharedWebView::OnMemoryPressure, base::Unretained(this)));
@@ -62,7 +62,7 @@ bool SharedWebView::Get(const GURL& url,
void SharedWebView::Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
- DCHECK_EQ(chrome::NOTIFICATION_CLOSE_ALL_BROWSERS_REQUEST, type);
+ DCHECK_EQ(chrome::NOTIFICATION_APP_TERMINATING, type);
web_view_handle_ = nullptr;
}
« no previous file with comments | « chrome/browser/chromeos/login/ui/shared_web_view.h ('k') | chrome/browser/chromeos/login/ui/user_adding_screen_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698