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

Unified Diff: chrome/browser/ui/cocoa/history_menu_bridge.h

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 6 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/history_menu_bridge.h
diff --git a/chrome/browser/ui/cocoa/history_menu_bridge.h b/chrome/browser/ui/cocoa/history_menu_bridge.h
index 8f4582e6fe1a3a637c18b7e2784710e0efc8f9a6..2ab76ed1eab9137744271a7542ac53b5728059b2 100644
--- a/chrome/browser/ui/cocoa/history_menu_bridge.h
+++ b/chrome/browser/ui/cocoa/history_menu_bridge.h
@@ -9,8 +9,8 @@
#include <map>
#include <vector>
+#include "base/mac/scoped_nsobject.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_nsobject.h"
#include "chrome/browser/common/cancelable_request.h"
#import "chrome/browser/favicon/favicon_service.h"
#include "chrome/browser/history/history_service.h"
@@ -75,7 +75,7 @@ class HistoryMenuBridge : public content::NotificationObserver,
// The URL that will be navigated to if the user selects this item.
GURL url;
// Favicon for the URL.
- scoped_nsobject<NSImage> icon;
+ base::scoped_nsobject<NSImage> icon;
// If the icon is being requested from the FaviconService, |icon_requested|
// will be true and |icon_task_id| will be valid. If this is false, then
@@ -89,7 +89,7 @@ class HistoryMenuBridge : public content::NotificationObserver,
// quickly), the NSMenu can release the item before the HistoryItem has
// been fully deleted. If this were a weak pointer, it would result in a
// zombie.
- scoped_nsobject<NSMenuItem> menu_item;
+ base::scoped_nsobject<NSMenuItem> menu_item;
// This ID is unique for a browser session and can be passed to the
// TabRestoreService to re-open the closed window or tab that this
@@ -204,7 +204,7 @@ class HistoryMenuBridge : public content::NotificationObserver,
friend class ::HistoryMenuBridgeTest;
friend class HistoryMenuCocoaControllerTest;
- scoped_nsobject<HistoryMenuCocoaController> controller_; // strong
+ base::scoped_nsobject<HistoryMenuCocoaController> controller_; // strong
Profile* profile_; // weak
HistoryService* history_service_; // weak
@@ -229,7 +229,7 @@ class HistoryMenuBridge : public content::NotificationObserver,
bool need_recreate_;
// The default favicon if a HistoryItem does not have one.
- scoped_nsobject<NSImage> default_favicon_;
+ base::scoped_nsobject<NSImage> default_favicon_;
DISALLOW_COPY_AND_ASSIGN(HistoryMenuBridge);
};

Powered by Google App Engine
This is Rietveld 408576698