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

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

Issue 8772041: Remove deprecated TabContentsDelegate::OpenURLFromTab variant (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years 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_navigator.cc ('k') | chrome/browser/ui/cocoa/constrained_html_delegate_mac.mm » ('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 04b6ebc5c0fa9a07cf9619dccae33077d366ef80..888e6cafbd751a832626dfb2b68d81acecec800a 100644
--- a/chrome/browser/ui/cocoa/applescript/tab_applescript.mm
+++ b/chrome/browser/ui/cocoa/applescript/tab_applescript.mm
@@ -213,10 +213,12 @@ static NSAppleEventDescriptor* valueToDescriptor(Value* value) {
return;
const GURL& previousURL = entry->virtual_url();
- tabContents_->tab_contents()->OpenURL(url,
- previousURL,
- CURRENT_TAB,
- content::PAGE_TRANSITION_TYPED);
+ tabContents_->tab_contents()->OpenURL(OpenURLParams(
+ url,
+ content::Referrer(previousURL, WebKit::WebReferrerPolicyDefault),
+ CURRENT_TAB,
+ content::PAGE_TRANSITION_TYPED,
+ false));
}
- (NSString*)title {
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/browser/ui/cocoa/constrained_html_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698