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

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

Issue 22882007: Remove GetActiveEntry usage from chrome/browser/ui. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased on ToT. Created 7 years, 2 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/browser_commands.cc ('k') | chrome/browser/ui/search/instant_controller.cc » ('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 4bc6df9793b5cb2d040386b5f809886365f1dda6..2d27712a82098d9676e2aa4ae5888013ed251fc0 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,7 @@ void ResumeAppleEventAndSendReply(NSAppleEventManagerSuspensionID suspension_id,
return;
}
- NavigationEntry* entry = webContents_->GetController().GetActiveEntry();
+ NavigationEntry* entry = webContents_->GetController().GetVisibleEntry();
if (!entry)
return;
@@ -150,7 +150,7 @@ 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 | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/search/instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698