summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/automation_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/automation/automation_provider.cc')
-rw-r--r--chrome/browser/automation/automation_provider.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc
index 2d73a9c..471b4bc 100644
--- a/chrome/browser/automation/automation_provider.cc
+++ b/chrome/browser/automation/automation_provider.cc
@@ -993,8 +993,9 @@ void AutomationProvider::AppendTab(int handle, const GURL& url,
Browser* browser = browser_tracker_->GetResource(handle);
observer = AddTabStripObserver(browser, reply_message->routing_id(),
reply_message);
- TabContents* tab_contents =
- browser->AddTabWithURL(url, GURL(), PageTransition::TYPED, true, NULL);
+ TabContents* tab_contents = browser->AddTabWithURL(url, GURL(),
+ PageTransition::TYPED,
+ true, -1, NULL);
if (tab_contents) {
append_tab_response =
GetIndexForNavigationController(tab_contents->controller(), browser);