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

Unified Diff: ui/gfx/screen_mac.mm

Issue 641453003: Add metrics for the number of attached displays. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ENUMERATION -> COUNTS_100 Created 6 years, 2 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/gfx/screen_mac.mm
diff --git a/ui/gfx/screen_mac.mm b/ui/gfx/screen_mac.mm
index 0b1f41f61d2aee0f9f33c2da94f09b9e5bc07543..1c7638e8b918b6bb59f0c09e3505425da020635a 100644
--- a/ui/gfx/screen_mac.mm
+++ b/ui/gfx/screen_mac.mm
@@ -91,6 +91,11 @@ class ScreenMac : public gfx::Screen {
ScreenMac::DisplayReconfigurationCallBack, this);
}
+ virtual ~ScreenMac() {
+ CGDisplayRemoveReconfigurationCallback(
+ ScreenMac::DisplayReconfigurationCallBack, this);
+ }
+
virtual bool IsDIPEnabled() OVERRIDE {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698