| Index: content/test/web_contents_observer_sanity_checker.cc
|
| diff --git a/content/test/web_contents_observer_sanity_checker.cc b/content/test/web_contents_observer_sanity_checker.cc
|
| index eedbb8909b13d36e920c1661630ae08ec19da275..0389fbf07ed758ca94d282c61a4f1e696ed46288 100644
|
| --- a/content/test/web_contents_observer_sanity_checker.cc
|
| +++ b/content/test/web_contents_observer_sanity_checker.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "content/test/web_contents_observer_sanity_checker.h"
|
|
|
| +#include "base/memory/ptr_util.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "build/build_config.h"
|
| #include "content/browser/frame_host/render_frame_host_impl.h"
|
| @@ -35,8 +36,9 @@ GlobalRoutingID GetRoutingPair(RenderFrameHost* host) {
|
| void WebContentsObserverSanityChecker::Enable(WebContents* web_contents) {
|
| if (web_contents->GetUserData(&kWebContentsObserverSanityCheckerKey))
|
| return;
|
| - web_contents->SetUserData(&kWebContentsObserverSanityCheckerKey,
|
| - new WebContentsObserverSanityChecker(web_contents));
|
| + web_contents->SetUserData(
|
| + &kWebContentsObserverSanityCheckerKey,
|
| + base::WrapUnique(new WebContentsObserverSanityChecker(web_contents)));
|
| }
|
|
|
| void WebContentsObserverSanityChecker::RenderFrameCreated(
|
|
|