| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/views/win/windows_session_change_observer.h" | 5 #include "ui/views/win/windows_session_change_observer.h" |
| 6 | 6 |
| 7 #include <wtsapi32.h> | 7 #include <wtsapi32.h> |
| 8 #pragma comment(lib, "wtsapi32.lib") | |
| 9 | 8 |
| 10 #include "base/bind.h" | 9 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 12 #include "base/callback.h" | 11 #include "base/callback.h" |
| 13 #include "base/location.h" | 12 #include "base/location.h" |
| 14 #include "base/macros.h" | 13 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/memory/singleton.h" | 16 #include "base/memory/singleton.h" |
| 18 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 } | 122 } |
| 124 | 123 |
| 125 void WindowsSessionChangeObserver::ClearCallback() { | 124 void WindowsSessionChangeObserver::ClearCallback() { |
| 126 if (!callback_.is_null()) { | 125 if (!callback_.is_null()) { |
| 127 callback_.Reset(); | 126 callback_.Reset(); |
| 128 WtsRegistrationNotificationManager::GetInstance()->RemoveObserver(this); | 127 WtsRegistrationNotificationManager::GetInstance()->RemoveObserver(this); |
| 129 } | 128 } |
| 130 } | 129 } |
| 131 | 130 |
| 132 } // namespace views | 131 } // namespace views |
| OLD | NEW |