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

Unified Diff: chrome/browser/ui/cocoa/applescript/window_applescript.mm

Issue 8585010: Properly destroy tabs via AppleScript. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/applescript/window_applescript.mm
diff --git a/chrome/browser/ui/cocoa/applescript/window_applescript.mm b/chrome/browser/ui/cocoa/applescript/window_applescript.mm
index b17a8761d8f0c6b199865ef54633c25380f8be1d..fcc1148627f00a2ab4ba8831121feff6345b8c43 100644
--- a/chrome/browser/ui/cocoa/applescript/window_applescript.mm
+++ b/chrome/browser/ui/cocoa/applescript/window_applescript.mm
@@ -201,10 +201,10 @@
}
- (void)removeFromTabsAtIndex:(int)index {
- browser_->tabstrip_model()->DetachTabContentsAt(index);
+ browser_->CloseTabContents(browser_->GetTabContentsAt(index));
}
-- (NSNumber*)orderedIndex{
+- (NSNumber*)orderedIndex {
return [NSNumber numberWithInt:[[self nativeHandle] orderedIndex]];
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698