Index: content/public/test/content_browser_test_utils.cc |
diff --git a/content/public/test/content_browser_test_utils.cc b/content/public/test/content_browser_test_utils.cc |
index 3fc0971cef12990d8d827549de6a9540095cdbe7..ff323c41145a02b9394867072e36e22360718f6e 100644 |
--- a/content/public/test/content_browser_test_utils.cc |
+++ b/content/public/test/content_browser_test_utils.cc |
@@ -136,11 +136,13 @@ WebContentsAddedObserver::WebContentsAddedObserver() |
&WebContentsAddedObserver::WebContentsCreated, |
base::Unretained(this))), |
web_contents_(NULL) { |
- WebContentsImpl::AddCreatedCallback(web_contents_created_callback_); |
+ WebContentsImpl::FriendZone::AddCreatedCallbackForTesting( |
+ web_contents_created_callback_); |
} |
WebContentsAddedObserver::~WebContentsAddedObserver() { |
- WebContentsImpl::RemoveCreatedCallback(web_contents_created_callback_); |
+ WebContentsImpl::FriendZone::RemoveCreatedCallbackForTesting( |
+ web_contents_created_callback_); |
} |
void WebContentsAddedObserver::WebContentsCreated(WebContents* web_contents) { |