Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 3d376c9b05bb2bc204c46f14d33e67610a3a90da..92f9f7928498fe02b3ea87d4bc43420d52c39322 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -1695,17 +1695,19 @@ bool Browser::ShouldCreateWebContents( |
return true; |
} |
-void Browser::WebContentsCreated(WebContents* source_contents, |
- int opener_render_process_id, |
- int opener_render_frame_id, |
- const std::string& frame_name, |
- const GURL& target_url, |
- WebContents* new_contents) { |
+void Browser::WebContentsCreated( |
+ WebContents* source_contents, |
+ int opener_render_process_id, |
+ int opener_render_frame_id, |
+ const std::string& frame_name, |
+ const GURL& target_url, |
+ WebContents* new_contents, |
+ const base::Optional<WebContents::CreateParams>& create_params) { |
// Adopt the WebContents now, so all observers are in place, as the network |
// requests for its initial navigation will start immediately. The WebContents |
// will later be inserted into this browser using Browser::Navigate via |
// AddNewContents. |
- TabHelpers::AttachTabHelpers(new_contents); |
+ TabHelpers::AttachTabHelpers(new_contents, create_params); |
// Make the tab show up in the task manager. |
task_manager::WebContentsTags::CreateForTabContents(new_contents); |