Fix API changes of Chrome37.

This commit is contained in:
Cheng Zhao 2014-08-31 18:43:01 +08:00
parent f0e46a4728
commit dca1c51b32
9 changed files with 30 additions and 86 deletions

View file

@ -156,8 +156,7 @@ void InspectableWebContentsImpl::ShowDevTools() {
embedder_message_dispatcher_.reset(
new DevToolsEmbedderMessageDispatcher(this));
auto create_params = content::WebContents::CreateParams(
web_contents_->GetBrowserContext());
content::WebContents::CreateParams create_params(web_contents_->GetBrowserContext());
devtools_web_contents_.reset(content::WebContents::Create(create_params));
Observe(devtools_web_contents_.get());