| Index: chrome/browser/ui/cocoa/download/download_item_cell.mm
|
| diff --git a/chrome/browser/ui/cocoa/download/download_item_cell.mm b/chrome/browser/ui/cocoa/download/download_item_cell.mm
|
| index cb18b487c3c19551cc30f70663222a034eb8926b..f2d983065f01078b11e728f7c9e1928f0a11058f 100644
|
| --- a/chrome/browser/ui/cocoa/download/download_item_cell.mm
|
| +++ b/chrome/browser/ui/cocoa/download/download_item_cell.mm
|
| @@ -19,6 +19,7 @@
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "ui/base/text/text_elider.h"
|
| #include "ui/gfx/canvas_skia_paint.h"
|
| +#include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
|
|
|
| namespace {
|
|
|
| @@ -653,7 +654,7 @@ NSGradient* BackgroundTheme::GetNSGradient(int id) const {
|
| [triangle closePath];
|
|
|
| NSGraphicsContext* context = [NSGraphicsContext currentContext];
|
| - [context saveGraphicsState];
|
| + gfx::ScopedNSGraphicsContextSaveGState scopedGState(context);
|
|
|
| scoped_nsobject<NSShadow> shadow([[NSShadow alloc] init]);
|
| [shadow.get() setShadowColor:[NSColor whiteColor]];
|
| @@ -665,8 +666,6 @@ NSGradient* BackgroundTheme::GetNSGradient(int id) const {
|
| [fill setFill];
|
|
|
| [triangle fill];
|
| -
|
| - [context restoreGraphicsState];
|
| }
|
|
|
| - (NSRect)imageRectForBounds:(NSRect)cellFrame {
|
|
|