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

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

Issue 59603009: Removed GetActiveEntry from several tabs related files in chrome/browser/ui. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT Created 6 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 | « no previous file | chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/applescript/tab_applescript.mm
diff --git a/chrome/browser/ui/cocoa/applescript/tab_applescript.mm b/chrome/browser/ui/cocoa/applescript/tab_applescript.mm
index 7602e394b3a7d32b147fe47170e2db11fbff3836..9a2fa9c69ab56711e91968229797bf07fef077aa 100644
--- a/chrome/browser/ui/cocoa/applescript/tab_applescript.mm
+++ b/chrome/browser/ui/cocoa/applescript/tab_applescript.mm
@@ -113,7 +113,7 @@ void ResumeAppleEventAndSendReply(NSAppleEventManagerSuspensionID suspension_id,
return nil;
}
- NavigationEntry* entry = webContents_->GetController().GetActiveEntry();
+ NavigationEntry* entry = webContents_->GetController().GetVisibleEntry();
if (!entry) {
return nil;
}
@@ -136,7 +136,8 @@ void ResumeAppleEventAndSendReply(NSAppleEventManagerSuspensionID suspension_id,
return;
}
- NavigationEntry* entry = webContents_->GetController().GetActiveEntry();
+ NavigationEntry* entry =
+ webContents_->GetController().GetLastCommittedEntry();
if (!entry)
return;
@@ -150,7 +151,8 @@ void ResumeAppleEventAndSendReply(NSAppleEventManagerSuspensionID suspension_id,
}
- (NSString*)title {
- NavigationEntry* entry = webContents_->GetController().GetActiveEntry();
+ NavigationEntry* entry =
+ webContents_->GetController().GetVisibleEntry();
if (!entry)
return nil;
« no previous file with comments | « no previous file | chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698