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

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

Issue 66993003: Most references to GetActiveEntry removed from chrome/browser/ui. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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 a8afbb87f7add57287e2c0b4f19d0bfe7afb5547..593a5f5638fe25eb184c7b0cb698697b27132690 100644
--- a/chrome/browser/ui/cocoa/applescript/tab_applescript.mm
+++ b/chrome/browser/ui/cocoa/applescript/tab_applescript.mm
@@ -113,7 +113,8 @@ void ResumeAppleEventAndSendReply(NSAppleEventManagerSuspensionID suspension_id,
return nil;
}
- NavigationEntry* entry = webContents_->GetController().GetActiveEntry();
+ NavigationEntry* entry =
+ webContents_->GetController().GetLastCommittedEntry();
if (!entry) {
return nil;
}
@@ -136,7 +137,8 @@ void ResumeAppleEventAndSendReply(NSAppleEventManagerSuspensionID suspension_id,
return;
}
- NavigationEntry* entry = webContents_->GetController().GetActiveEntry();
+ NavigationEntry* entry =
+ webContents_->GetController().GetLastCommittedEntry();
if (!entry)
return;
@@ -150,7 +152,8 @@ void ResumeAppleEventAndSendReply(NSAppleEventManagerSuspensionID suspension_id,
}
- (NSString*)title {
- NavigationEntry* entry = webContents_->GetController().GetActiveEntry();
+ NavigationEntry* entry =
+ webContents_->GetController().GetLastCommittedEntry();
if (!entry)
return nil;

Powered by Google App Engine
This is Rietveld 408576698