diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/cocoa/dock_icon.mm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/cocoa/dock_icon.mm b/chrome/browser/cocoa/dock_icon.mm index 56e432e..330b88a 100644 --- a/chrome/browser/cocoa/dock_icon.mm +++ b/chrome/browser/cocoa/dock_icon.mm @@ -41,10 +41,8 @@ static const float kBadgeIndent = 5.0f; - (void)drawRect:(NSRect)dirtyRect { // Not -[NSApplication applicationIconImage]; that fails to return a pasted // custom icon. - NSWorkspace* workspace = [NSWorkspace sharedWorkspace]; - NSString* appPath = - [[workspace activeApplication] valueForKey:@"NSApplicationPath"]; - NSImage* appIcon = [workspace iconForFile:appPath]; + NSString* appPath = [[NSBundle mainBundle] bundlePath]; + NSImage* appIcon = [[NSWorkspace sharedWorkspace] iconForFile:appPath]; [appIcon drawInRect:[self bounds] fromRect:NSZeroRect operation:NSCompositeSourceOver |