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

Unified Diff: base/mac/mac_util.mm

Issue 681713002: Update from chromium https://crrev.com/301315 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « base/mac/mac_util.h ('k') | base/memory/discardable_memory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/mac_util.mm
diff --git a/base/mac/mac_util.mm b/base/mac/mac_util.mm
index 55c4b7d4a4424d8ae9c74bcfcc833edb04efce39..bdf45deb5bd2014d90a27879dcc79f8811a8cb59 100644
--- a/base/mac/mac_util.mm
+++ b/base/mac/mac_util.mm
@@ -225,19 +225,6 @@ void SetCursorVisibility(bool visible) {
[NSCursor hide];
}
-bool ShouldWindowsMiniaturizeOnDoubleClick() {
- // We use an undocumented method in Cocoa; if it doesn't exist, default to
- // |true|. If it ever goes away, we can do (using an undocumented pref key):
- // NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
- // return ![defaults objectForKey:@"AppleMiniaturizeOnDoubleClick"] ||
- // [defaults boolForKey:@"AppleMiniaturizeOnDoubleClick"];
- BOOL methodImplemented =
- [NSWindow respondsToSelector:@selector(_shouldMiniaturizeOnDoubleClick)];
- DCHECK(methodImplemented);
- return !methodImplemented ||
- [NSWindow performSelector:@selector(_shouldMiniaturizeOnDoubleClick)];
-}
-
void ActivateProcess(pid_t pid) {
ProcessSerialNumber process;
OSStatus status = GetProcessForPID(pid, &process);
« no previous file with comments | « base/mac/mac_util.h ('k') | base/memory/discardable_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698