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

Unified Diff: ui/views/win/windows_session_change_observer.cc

Issue 1159033008: Refactor ViewsDelegate singleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments Created 5 years, 6 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: ui/views/win/windows_session_change_observer.cc
diff --git a/ui/views/win/windows_session_change_observer.cc b/ui/views/win/windows_session_change_observer.cc
index dbbe91d1456b1f35cd6979a4f8809075519dca40..ef22e9ea74647000444e9e6136b9c8818618a83f 100644
--- a/ui/views/win/windows_session_change_observer.cc
+++ b/ui/views/win/windows_session_change_observer.cc
@@ -67,8 +67,8 @@ class WindowsSessionChangeObserver::WtsRegistrationNotificationManager {
base::Bind(&WtsRegistrationNotificationManager::OnWndProc,
base::Unretained(this))));
scoped_refptr<base::TaskRunner> task_runner;
- if (ViewsDelegate::views_delegate) {
- task_runner = ViewsDelegate::views_delegate->GetBlockingPoolTaskRunner();
+ if (ViewsDelegate::GetInstance()) {
+ task_runner = ViewsDelegate::GetInstance()->GetBlockingPoolTaskRunner();
}
base::Closure wts_register =

Powered by Google App Engine
This is Rietveld 408576698