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

Unified Diff: content/browser/theme_helper_mac.mm

Issue 1863513002: Mac: Remove some remaining 10.6 logic for absent overlay scrollbar APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Zap notification, import appkit rather than forward decs Created 4 years, 8 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/sdk_forward_declarations.mm ('k') | third_party/WebKit/Source/platform/mac/NSScrollerImpDetails.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/theme_helper_mac.mm
diff --git a/content/browser/theme_helper_mac.mm b/content/browser/theme_helper_mac.mm
index 8ae332ed6e04af3afc1af8a9567577d865080126..7cc95a70aafd4867d6a629882cddc742232404b3 100644
--- a/content/browser/theme_helper_mac.mm
+++ b/content/browser/theme_helper_mac.mm
@@ -8,7 +8,6 @@
#include "base/command_line.h"
#include "base/mac/mac_util.h"
-#include "base/mac/sdk_forward_declarations.h"
#include "base/strings/sys_string_conversions.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
#include "content/common/view_messages.h"
@@ -125,12 +124,10 @@ ViewMsg_SystemColorsChanged* CreateSystemColorsChangedMessage() {
switches::kSingleProcess)) {
NSNotificationCenter* center = [NSNotificationCenter defaultCenter];
- if ([NSScroller respondsToSelector:@selector(preferredScrollerStyle)]) {
- [center addObserver:self
- selector:@selector(behaviorPrefsChanged:)
- name:NSPreferredScrollerStyleDidChangeNotification
- object:nil];
- }
+ [center addObserver:self
+ selector:@selector(behaviorPrefsChanged:)
+ name:NSPreferredScrollerStyleDidChangeNotification
+ object:nil];
[center addObserver:self
selector:@selector(systemColorsChanged:)
@@ -182,8 +179,6 @@ ThemeHelperMac* ThemeHelperMac::GetInstance() {
// static
blink::ScrollerStyle ThemeHelperMac::GetPreferredScrollerStyle() {
- if (![NSScroller respondsToSelector:@selector(preferredScrollerStyle)])
- return blink::ScrollerStyleLegacy;
return static_cast<blink::ScrollerStyle>([NSScroller preferredScrollerStyle]);
}
« no previous file with comments | « base/mac/sdk_forward_declarations.mm ('k') | third_party/WebKit/Source/platform/mac/NSScrollerImpDetails.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698