| Index: content/browser/web_contents/web_contents_impl.cc
|
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
| index 56e1ffd450cef66d2a66aa57d82aae5747b99de0..7b9afd473e88540514fee1d82fa82f1f7b1287c4 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -308,6 +308,7 @@ WebContentsImpl::WebContentsImpl(
|
| controller_(this, browser_context),
|
| render_view_host_delegate_view_(NULL),
|
| opener_(opener),
|
| + created_with_opener_(opener != NULL),
|
| #if defined(OS_WIN)
|
| accessible_parent_(NULL),
|
| #endif
|
| @@ -2049,6 +2050,10 @@ bool WebContentsImpl::HasOpener() const {
|
| return opener_ != NULL;
|
| }
|
|
|
| +bool WebContentsImpl::CreatedWithOpener() const {
|
| + return created_with_opener_;
|
| +}
|
| +
|
| void WebContentsImpl::DidChooseColorInColorChooser(SkColor color) {
|
| Send(new ViewMsg_DidChooseColorResponse(
|
| GetRoutingID(), color_chooser_identifier_, color));
|
| @@ -3544,7 +3549,8 @@ bool WebContentsImpl::CreateRenderViewForRenderManager(
|
| if (!static_cast<RenderViewHostImpl*>(
|
| render_view_host)->CreateRenderView(base::string16(),
|
| opener_route_id,
|
| - max_page_id)) {
|
| + max_page_id,
|
| + created_with_opener_)) {
|
| return false;
|
| }
|
|
|
|
|