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

Unified Diff: chrome/browser/cocoa/tab_view.mm

Issue 2821011: Removes phantom tabs. (Closed)
Patch Set: Created 10 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/cocoa/tab_view.mm
diff --git a/chrome/browser/cocoa/tab_view.mm b/chrome/browser/cocoa/tab_view.mm
index 8e4c8e37eb6571d520ec400bb1f7f99ebe8c2ed9..9a2267685a765781790829ed932a4d436c5f1b76 100644
--- a/chrome/browser/cocoa/tab_view.mm
+++ b/chrome/browser/cocoa/tab_view.mm
@@ -598,11 +598,6 @@ const CGFloat kRapidCloseDist = 2.5;
}
- (void)drawRect:(NSRect)rect {
- // If this tab is phantom, do not draw the tab background itself. The only UI
- // element that will represent this tab is the favicon.
- if ([controller_ phantom])
- return;
-
NSGraphicsContext* context = [NSGraphicsContext currentContext];
[context saveGraphicsState];
rect = [self bounds];
« no previous file with comments | « chrome/browser/cocoa/tab_strip_model_observer_bridge.mm ('k') | chrome/browser/cocoa/tab_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698