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

Unified Diff: chrome/browser/automation/automation_provider.cc

Issue 8186: Plumb the referrer throughout the OpenURL APIs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 | « no previous file | chrome/browser/back_forward_menu_model_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_provider.cc
===================================================================
--- chrome/browser/automation/automation_provider.cc (revision 3991)
+++ chrome/browser/automation/automation_provider.cc (working copy)
@@ -824,7 +824,7 @@
Browser* browser = browser_tracker_->GetResource(handle);
observer = AddTabStripObserver(browser, message.routing_id());
TabContents* tab_contents =
- browser->AddTabWithURL(url, PageTransition::TYPED, true, NULL);
+ browser->AddTabWithURL(url, GURL(), PageTransition::TYPED, true, NULL);
if (tab_contents) {
append_tab_response =
GetIndexForNavigationController(tab_contents->controller(), browser);
@@ -864,7 +864,7 @@
new AutomationMsg_NavigateToURLResponse(
message.routing_id(), AUTOMATION_MSG_NAVIGATION_AUTH_NEEDED));
// TODO(darin): avoid conversion to GURL
- browser->OpenURL(url, CURRENT_TAB, PageTransition::TYPED);
+ browser->OpenURL(url, GURL(), CURRENT_TAB, PageTransition::TYPED);
return;
}
}
@@ -886,7 +886,7 @@
if (browser) {
// Don't add any listener unless a callback mechanism is desired.
// TODO(vibhor): Do this if such a requirement arises in future.
- browser->OpenURL(url, CURRENT_TAB, PageTransition::TYPED);
+ browser->OpenURL(url, GURL(), CURRENT_TAB, PageTransition::TYPED);
status = true;
}
}
@@ -2002,7 +2002,7 @@
if (tab_tracker_->ContainsHandle(handle)) {
NavigationController* tab = tab_tracker_->GetResource(handle);
- tab->LoadURL(url, PageTransition::TYPED);
+ tab->LoadURL(url, GURL(), PageTransition::TYPED);
status = true;
}
« no previous file with comments | « no previous file | chrome/browser/back_forward_menu_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698