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

Unified Diff: chrome/browser/ui/cocoa/download/download_item_controller.mm

Issue 1125423002: Dismiss context menu when download bar is closed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unneeded scoped ptrs. Created 5 years, 7 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
Index: chrome/browser/ui/cocoa/download/download_item_controller.mm
diff --git a/chrome/browser/ui/cocoa/download/download_item_controller.mm b/chrome/browser/ui/cocoa/download/download_item_controller.mm
index 801e739b3074804b64b7aa86894f1bf777e9266e..7ffaf4e05044fd26455e6af31c1ca681d8e09ec5 100644
--- a/chrome/browser/ui/cocoa/download/download_item_controller.mm
+++ b/chrome/browser/ui/cocoa/download/download_item_controller.mm
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -370,13 +370,7 @@ class DownloadShelfContextMenuMac : public DownloadShelfContextMenu {
}
- (IBAction)showContextMenu:(id)sender {
- base::scoped_nsobject<DownloadShelfContextMenuController> menuController(
- [[DownloadShelfContextMenuController alloc]
- initWithItemController:self
- withDelegate:nil]);
- [NSMenu popUpContextMenu:[menuController menu]
- withEvent:[NSApp currentEvent]
- forView:[self view]];
+ [progressView_ showContextMenu];
}
@end

Powered by Google App Engine
This is Rietveld 408576698