| Index: ui/views/controls/webview/webview.cc
|
| diff --git a/ui/views/controls/webview/webview.cc b/ui/views/controls/webview/webview.cc
|
| index eb7846ba6c99d39d147be11fb74e3b1bcd6e3540..902ec5661b06251ca7287916d38791a26891e94b 100644
|
| --- a/ui/views/controls/webview/webview.cc
|
| +++ b/ui/views/controls/webview/webview.cc
|
| @@ -46,11 +46,7 @@ content::WebContents* WebView::GetWebContents() {
|
| void WebView::CreateWebContentsWithSiteInstance(
|
| content::SiteInstance* site_instance) {
|
| if (!web_contents_) {
|
| - wc_owner_.reset(content::WebContents::Create(browser_context_,
|
| - site_instance,
|
| - MSG_ROUTING_NONE,
|
| - NULL,
|
| - NULL));
|
| + wc_owner_.reset(CreateWebContents(browser_context_, site_instance));
|
| web_contents_ = wc_owner_.get();
|
| web_contents_->SetDelegate(this);
|
| AttachWebContents();
|
| @@ -171,6 +167,19 @@ void WebView::WebContentsFocused(content::WebContents* web_contents) {
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| +// WebView, protected:
|
| +
|
| +content::WebContents* WebView::CreateWebContents(
|
| + content::BrowserContext* browser_context,
|
| + content::SiteInstance* site_instance) {
|
| + return content::WebContents::Create(browser_context,
|
| + site_instance,
|
| + MSG_ROUTING_NONE,
|
| + NULL,
|
| + NULL);
|
| +}
|
| +
|
| +////////////////////////////////////////////////////////////////////////////////
|
| // WebView, private:
|
|
|
| void WebView::AttachWebContents() {
|
|
|