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

Unified Diff: chrome/browser/chrome_browser_application_mac.mm

Issue 7748042: Merge trunk r97497 and its many dependents to the 14.0.835 branch. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/835/src/
Patch Set: Created 9 years, 4 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 | « chrome/app/chrome_main.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_application_mac.mm
===================================================================
--- chrome/browser/chrome_browser_application_mac.mm (revision 98423)
+++ chrome/browser/chrome_browser_application_mac.mm (working copy)
@@ -5,7 +5,6 @@
#import "chrome/browser/chrome_browser_application_mac.h"
#import "base/logging.h"
-#import "base/mac/mac_util.h"
#import "base/mac/scoped_nsexception_enabler.h"
#import "base/metrics/histogram.h"
#import "base/memory/scoped_nsobject.h"
@@ -122,29 +121,6 @@
}
@end
-static IMP gOriginalNSBundleLoadIMP = NULL;
-
-@interface NSBundle (CrNSBundleSwizzle)
-- (BOOL)crLoad;
-@end
-
-@implementation NSBundle (CrNSBundleSwizzle)
-- (BOOL)crLoad {
- // Method only called when swizzled.
- DCHECK(_cmd == @selector(load));
-
- // MultiClutchInputManager is broken in Chrome on Lion.
- // http://crbug.com/90075.
- if (base::mac::IsOSLionOrLater() &&
- [[self bundleIdentifier]
- isEqualToString:@"net.wonderboots.multiclutchinputmanager"]) {
- return NO;
- }
-
- return gOriginalNSBundleLoadIMP(self, _cmd) != nil;
-}
-@end
-
namespace chrome_browser_application_mac {
// Maximum number of known named exceptions we'll support. There is
@@ -225,13 +201,6 @@
[NSException class],
@selector(initWithName:reason:userInfo:),
@selector(crInitWithName:reason:userInfo:));
-
- // Avoid loading broken input managers.
- gOriginalNSBundleLoadIMP =
- ObjcEvilDoers::SwizzleImplementedInstanceMethods(
- [NSBundle class],
- @selector(load),
- @selector(crLoad));
}
} // namespace
« no previous file with comments | « chrome/app/chrome_main.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698