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

Unified Diff: chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm

Issue 2646863003: Delete third_party/apple_sample_code/ (Closed)
Patch Set: Delete third_party/apple_sample_code/ Created 3 years, 11 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/browser/ui/cocoa/DEPS ('k') | third_party/apple_sample_code/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm
diff --git a/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm b/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm
index 11a102bc2f68d754fa5ba5e82eeb018fe8c604d0..8bec045c1a1c7550c5b94e7462a5cf6b7ba4a975 100644
--- a/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm
+++ b/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm
@@ -28,7 +28,6 @@
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_source.h"
#include "content/public/browser/web_contents.h"
-#include "third_party/apple_sample_code/ImageAndTextCell.h"
#import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h"
#import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTweaker.h"
#include "ui/base/l10n/l10n_util_mac.h"
@@ -284,25 +283,6 @@ void CollectedCookiesMac::OnConstrainedWindowClosed(
return blockedTreeModel_.get();
}
-- (void)outlineView:(NSOutlineView*)outlineView
- willDisplayCell:(id)cell
- forTableColumn:(NSTableColumn*)tableColumn
- item:(id)item {
- CocoaCookieTreeNode* node = [item representedObject];
- int index;
- if (outlineView == allowedOutlineView_)
- index = allowedTreeModel_->GetIconIndex([node treeNode]);
- else
- index = blockedTreeModel_->GetIconIndex([node treeNode]);
- NSImage* icon = nil;
- if (index >= 0)
- icon = [icons_ objectAtIndex:index];
- else
- icon = [icons_ lastObject];
- DCHECK([cell isKindOfClass:[ImageAndTextCell class]]);
- [static_cast<ImageAndTextCell*>(cell) setImage:icon];
-}
-
- (void)outlineViewSelectionDidChange:(NSNotification*)notif {
BOOL isAllowedOutlineView;
if ([notif object] == allowedOutlineView_) {
« no previous file with comments | « chrome/browser/ui/cocoa/DEPS ('k') | third_party/apple_sample_code/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698