summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/automation/automation_provider_win.cc3
-rw-r--r--chrome/browser/external_tab_container.cc6
-rw-r--r--chrome/browser/external_tab_container.h3
3 files changed, 8 insertions, 4 deletions
diff --git a/chrome/browser/automation/automation_provider_win.cc b/chrome/browser/automation/automation_provider_win.cc
index 5ba80f4..6069708 100644
--- a/chrome/browser/automation/automation_provider_win.cc
+++ b/chrome/browser/automation/automation_provider_win.cc
@@ -342,7 +342,8 @@ void AutomationProvider::CreateExternalTab(
// which is released when the window is destroyed.
external_tab_container->Init(profile, settings.parent, settings.dimensions,
settings.style, settings.load_requests_via_automation,
- settings.handle_top_level_requests, NULL, settings.initial_url);
+ settings.handle_top_level_requests, NULL, settings.initial_url,
+ settings.referrer);
if (AddExternalTab(external_tab_container)) {
TabContents* tab_contents = external_tab_container->tab_contents();
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc
index 2897520..153c5f9a 100644
--- a/chrome/browser/external_tab_container.cc
+++ b/chrome/browser/external_tab_container.cc
@@ -59,7 +59,8 @@ bool ExternalTabContainer::Init(Profile* profile,
bool load_requests_via_automation,
bool handle_top_level_requests,
TabContents* existing_contents,
- const GURL& initial_url) {
+ const GURL& initial_url,
+ const GURL& referrer) {
if (IsWindow()) {
NOTREACHED();
return false;
@@ -129,7 +130,7 @@ bool ExternalTabContainer::Init(Profile* profile,
MessageLoop::current()->PostTask(
FROM_HERE,
external_method_factory_.NewRunnableMethod(
- &ExternalTabContainer::Navigate, initial_url, GURL()));
+ &ExternalTabContainer::Navigate, initial_url, referrer));
}
// We need WS_POPUP to be on the window during initialization, but
@@ -318,6 +319,7 @@ void ExternalTabContainer::AddNewContents(TabContents* source,
load_requests_via_automation_,
handle_top_level_requests_,
new_contents,
+ GURL(),
GURL());
if (result) {
diff --git a/chrome/browser/external_tab_container.h b/chrome/browser/external_tab_container.h
index 760505f..7388177 100644
--- a/chrome/browser/external_tab_container.h
+++ b/chrome/browser/external_tab_container.h
@@ -57,7 +57,8 @@ class ExternalTabContainer : public TabContentsDelegate,
bool load_requests_via_automation,
bool handle_top_level_requests,
TabContents* existing_tab_contents,
- const GURL& initial_url);
+ const GURL& initial_url,
+ const GURL& referrer);
// Unhook the keystroke listener and notify about the closing TabContents.
// This function gets called from three places, which is fine.